-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ded8c2
commit c50ae28
Showing
2 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Table: ovh_cloud_region | ||
|
||
Regions available for a cloud project. | ||
|
||
The `ovh_cloud_region` table can be used to query information about regions and **you must specify which cloud project** in the where or join clause (`where project_id=`, `join ovh_cloud_project on id=`). | ||
|
||
## Examples | ||
|
||
### List regions of a cloud project | ||
|
||
```sql | ||
select | ||
name, | ||
type, | ||
status | ||
from | ||
ovh_cloud_region | ||
where | ||
project_id='27c5a6d3dfez87893jfd88fdsfmvnqb8' | ||
``` | ||
|
||
### List regions not UP | ||
|
||
```sql | ||
select | ||
name | ||
from | ||
ovh_cloud_postgres | ||
where | ||
project_id='27c5a6d3dfez87893jfd88fdsfmvnqb8' | ||
and status!='UP' | ||
``` | ||
|
||
### Get specific region | ||
|
||
```sql | ||
select | ||
name, | ||
type, | ||
status | ||
from | ||
ovh_cloud_region | ||
where | ||
project_id='27c5a6d3dfez87893jfd88fdsfmvnqb8' | ||
and name='GRA' | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters