-
Notifications
You must be signed in to change notification settings - Fork 51
Region Zone Info Guide
powerkimhub edited this page Mar 20, 2026
·
3 revisions
- CB-Spider provides Region and Zone information for each CSP through a unified API.
- Region/Zone APIs are available in two modes:
-
Before connection configuration: Query using only
DriverNameandCredentialName(no ConnectionConfig required)- Primarily used to check the list of Regions provided by the target CSP when registering a Region during Connection Management
-
After connection configuration: Query using
ConnectionName
-
Before connection configuration: Query using only
- The original Region/Zone data from the CSP is also available via the
OrgRegionandOrgZoneAPIs. - Supported CSPs: AWS, Azure, GCP, Alibaba, Tencent, OpenStack, NCP, NHN, KT, KTCLASSIC
┌──────────────────────────────────────────────────────────────────┐
│ CB-Spider Region/Zone Info │
│ │
│ ① Before Connection Configuration │
│ DriverName + CredentialName │
│ ├── ListRegionZone() → All Region+Zone list │
│ ├── GetRegionZone() → Specific Region+Zone info │
│ └── ListOrgRegion() → Original CSP Region list │
│ │
│ ② After Connection Configuration │
│ ConnectionName │
│ ├── ListRegionZone() → All Region+Zone list │
│ ├── GetRegionZone() → Specific Region+Zone info │
│ ├── ListOrgRegion() → Original CSP Region list │
│ └── ListOrgZone() → Original CSP Zone list │
└──────────────────────────────────────────────────────────────────┘
- The target CSP Driver and Credential must be registered in CB-Spider.
- For post-config APIs, the Connection Configuration (
ConnectionName) must also be registered.
- These CSPs require a target Region to be specified when calling their APIs.
- AWS, Alibaba: The target Region is mandatory for CSP API execution requests.
- Tencent: The driver verifies whether a Zone setting is configured before Connection setup (not required in the Tencent API itself, but enforced for driver stability).
- For pre-config Region/Zone queries, a default Region/Zone is set in
cloudos_meta.yaml. - The default is currently set to each CSP's Seoul Region and first Zone, and can be changed as needed.
- References:
- Region/Zone information is available via the CB-Spider REST API.
# ① Before Connection Configuration (DriverName + CredentialName required)
GET /spider/preconfig/regionzone - List all RegionZones
GET /spider/preconfig/regionzone/{RegionName} - Get a specific RegionZone
GET /spider/preconfig/orgregion - List original CSP Regions
# ② After Connection Configuration (ConnectionName required)
GET /spider/regionzone - List all RegionZones
GET /spider/regionzone/{RegionName} - Get a specific RegionZone
GET /spider/orgregion - List original CSP Regions
GET /spider/orgzone - List original CSP Zones
① Before Connection Configuration
| Parameter | Description | Example |
|---|---|---|
DriverName |
Registered cloud driver name | aws-driver01 |
CredentialName |
Registered credential name | aws-credential01 |
② After Connection Configuration
| Parameter | Description | Example |
|---|---|---|
ConnectionName |
Registered connection configuration name | aws-config01 |
RegionZone (per region entry)
| Field | Description | Example |
|---|---|---|
Name |
Region identifier used in CB-Spider | ap-northeast-2 |
DisplayName |
Region display name used in CB-Spider | South Korea, Seoul |
CSPDisplayName |
Region display name provided by the CSP | Asia Pacific (Seoul) |
ZoneList |
List of zones within the region | See ZoneInfo below |
ZoneInfo (per zone entry in ZoneList)
| Field | Description | Example |
|---|---|---|
Name |
Zone identifier | ap-northeast-2a |
DisplayName |
Zone display name used in CB-Spider | South Korea, Seoul |
CSPDisplayName |
Zone display name provided by the CSP | Asia Pacific (Seoul) |
Status |
Zone availability status | Available |
Note
OrgRegionandOrgZoneresponses are passed through from the CSP as-is, and their structure varies per CSP.- The
OrgZoneAPI (GET /spider/orgzone) is only available in post-config mode.
curl -sX GET "http://localhost:1024/spider/preconfig/regionzone?DriverName=aws-driver01&CredentialName=aws-credential01" | json_ppResponse example:
{
"regionzone" : [
{
"CSPDisplayName" : "Asia Pacific (Seoul)",
"DisplayName" : "South Korea, Seoul",
"Name" : "ap-northeast-2",
"ZoneList" : [
{
"CSPDisplayName" : "Asia Pacific (Seoul)",
"DisplayName" : "South Korea, Seoul",
"Name" : "ap-northeast-2a",
"Status" : "Available"
},
{
"CSPDisplayName" : "Asia Pacific (Seoul)",
"DisplayName" : "South Korea, Seoul",
"Name" : "ap-northeast-2b",
"Status" : "Available"
}
]
}
]
}curl -sX GET "http://localhost:1024/spider/preconfig/regionzone/ap-northeast-2?DriverName=aws-driver01&CredentialName=aws-credential01" | json_ppResponse example:
{
"CSPDisplayName" : "Asia Pacific (Seoul)",
"DisplayName" : "South Korea, Seoul",
"Name" : "ap-northeast-2",
"ZoneList" : [
{
"CSPDisplayName" : "Asia Pacific (Seoul)",
"DisplayName" : "South Korea, Seoul",
"Name" : "ap-northeast-2a",
"Status" : "Available"
}
]
}curl -sX GET "http://localhost:1024/spider/preconfig/orgregion?DriverName=aws-driver01&CredentialName=aws-credential01" | json_ppResponse example:
{
"RegionInfo" : {
"Regions" : [
{
"Endpoint" : "ec2.ap-south-1.amazonaws.com",
"OptInStatus" : "opt-in-not-required",
"RegionName" : "ap-south-1"
},
{
"Endpoint" : "ec2.eu-south-1.amazonaws.com",
"OptInStatus" : "opted-in",
"RegionName" : "eu-south-1"
}
]
}
}curl -sX GET "http://localhost:1024/spider/regionzone?ConnectionName=aws-config01" | json_ppcurl -sX GET "http://localhost:1024/spider/regionzone/ap-northeast-2?ConnectionName=aws-config01" | json_ppcurl -sX GET "http://localhost:1024/spider/orgregion?ConnectionName=aws-config01" | json_ppcurl -sX GET "http://localhost:1024/spider/orgzone?ConnectionName=aws-config01" | json_ppResponse example:
{
"ZoneInfo" : [
{
"AvailabilityZones" : [
{
"GroupName" : "ap-south-1",
"Messages" : null,
"NetworkBorderGroup" : "ap-south-1",
"OptInStatus" : "opt-in-not-required",
"ParentZoneId" : null,
"ParentZoneName" : null,
"RegionName" : "ap-south-1",
"State" : "available",
"ZoneId" : "aps1-az1",
"ZoneName" : "ap-south-1a",
"ZoneType" : "availability-zone"
}
]
}
]
}- For pre-config Region/Zone queries, AWS and Alibaba require a target Region, and Tencent also requires a Zone setting.
- CB-Spider handles this by reading a default Region/Zone from
cloudos_meta.yamlbefore invoking the CSP API. - The defaults can be changed to any desired Region/Zone in
cloudos_meta.yaml.
- The
OrgZoneAPI (GET /spider/orgzone) is only available in post-config mode (requiresConnectionName). - There is no pre-config equivalent for
OrgZone.
- The
OrgRegionandOrgZoneresponses are passed through from each CSP as-is. - The response structure and field names vary per CSP and are not normalized by CB-Spider.
| HTTP Status Code | Description |
|---|---|
200 OK |
Successful response |
400 Bad Request |
Request parameter error (missing required parameter or invalid value) |
500 Internal Server Error |
Server error or CSP API call failure |
-
Install & Start Guide
-
Usage Guide
- Usage Overview
- Connection Management
- Region/Zone Info
- Quota Info
- VM Price Info
- VM Image Info
- VM Spec Info
- VPC/Subnet Management
- Security Group Management
- KeyPair Management
- VM Management
- Disk Management
- Network Load Balancer(NLB) Management
- Kubernetes Cluster Management
- Object Storage(S3) Management
- Tag Management
- Cloud Driver Capability Info
- Function Menu
- MetaDB Auto Backup
- How to get CSP Credentials
- Tutorials
- Developer Guide
- Cloud Driver Developer Guide
- CB‐Spider Multi‐Cloud Driver Developer Team Skill
- Cloud Driver Developer Guide-WIP
- VM SSH Key Development Guide-WIP
- VM User Development Guide
- What is the CSP SDK API Version of drivers
- Region Zone Info and Driver API
- (StartVM TerminateVM) API Call Counts and Waiting
- StartVM and TerminateVM Main Flow of drivers
- VM Root Disk Configuration Guide
- Security Group Rules and Driver API
- Network Load Balancer and Driver API
- VM Snapshot, MyImage and Disk Overview
- Kubernetes and Driver API(PMKS, K8S)
- Tag and Cloud Driver API
- AnyCall API Extension Guide
- How to ...
- How to Use AWS S3 with Credentials
- How to Use Alibaba ECS i1.* Instance Types
- How to provision GPU VMs
- How to test CB Spider with Mock Driver
- How to install CB Spider on WSL2 under 공유기/사설망
- How to install CB Spider on macOS
- How to run CB Spider Container on macOS
- How to get Azure available Regions
- How to profile memory usage in Golang
- [For Cloud-Migrator]