Region #
A Region is a resource storing regional information from each cloud service provider. Regional data stored by the resource includes the latitude and longitude of the region.
Package : spaceone.api.inventory.v2
Region #
Region Methods:
Method | Request | Response |
---|---|---|
create | CreateRegionRequest | RegionInfo |
update | UpdateRegionRequest | RegionInfo |
delete | RegionRequest | Empty |
get | RegionRequest | RegionInfo |
list | RegionQuery | RegionsInfo |
stat | RegionStatQuery | Struct |
create #
Creates a new Region. As the parameter region_key
, which is automatically created when a Region is created, is in a form of {provider}.{region_code}
, it is unique regardless of providers. You can also specify the latitude, longitude, and continent information in tags
.
POST /inventory/v2/region/create
update #
Updates a specific Region. You can make changes in Region settings, including name
and tags
. The tags
contain the continent, latitude, and longitude.
POST /inventory/v2/region/update
delete #
Deletes a specific Region. You must specify the region_id
of the Region to delete.
POST /inventory/v2/region/delete
get #
Gets a specific Region. Prints detailed information about the Region, including name
, region_code
, and a location coordinate.
POST /inventory/v2/region/get
list #
Gets a list of all Regions. You can use a query to get a filtered list of Regions.
POST /inventory/v2/region/list
stat #
POST /inventory/v2/region/stat
Message #
CreateRegionRequest #
name (string)
Required
region_code (string)
Required
provider (string)
tags (Struct)
RegionInfo #
region_id (string)
Required
name (string)
Required
region_key (string)
Required
region_code (string)
Required
provider (string)
Required
tags (Struct)
Required
domain_id (string)
Required
created_at (string)
Required
updated_at (string)
Required
RegionQuery #
query (Query)
region_id (string)
name (string)
region_key (string)
region_code (string)
provider (string)
RegionRequest #
region_id (string)
Required
RegionStatQuery #
query (StatisticsQuery)
Required
RegionsInfo #
results (RegionInfo)
Repeated
Required
total_count (int32)
Required
UpdateRegionRequest #
region_id (string)
Required
name (string)
tags (Struct)