Reviewed-by: Hajba, László Antal <laszlo-antal.hajba@t-systems.com> Co-authored-by: fanqinying <fanqinying@huawei.com> Co-committed-by: fanqinying <fanqinying@huawei.com>
44 KiB
Querying Central Network Capabilities
Function
This API is used to query central network capabilities.
URI
GET /v3/{domain_id}/gcn/capabilities
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
domain_id |
Yes |
String |
Account ID. |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
capability |
No |
Array of strings |
Capabilities. Multiple capabilities can be queried. |
limit |
No |
Integer |
Number of records returned on each page. The value ranges from 1 to 2000. |
marker |
No |
String |
Pagination query information. You can obtain the marker values from the response of the last API call. You can enter the marker value of the previous page or the next page. If you enter the marker value of the previous page, the previous page will be queried. If you enter the marker value of the next page, the next page will be queried. During pagination query, the query criteria, including the filters, sorting criteria, and the limit value, cannot be modified. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
X-Auth-Token |
No |
String |
User token. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
|---|---|---|
request_id |
String |
Request ID. |
page_info |
PageInfo object |
Pagination query information. |
capabilities |
Array of CentralNetworkCapabilityEntry objects |
List of central network capabilities. |
Parameter |
Type |
Description |
|---|---|---|
next_marker |
String |
Backward pagination identifier. |
previous_marker |
String |
Forward pagination identifier. |
current_count |
Integer |
Number of the resources in the current list. |
Parameter |
Type |
Description |
|---|---|---|
is_support |
Boolean |
Whether central network specifications are supported. |
size_range |
ConnectionBandwidthSizeRange object |
JSON |
charge_mode |
Array of strings |
List |
free_lines |
Array of ConnectionBandwidthFreeLine objects |
List of free lines. |
support_regions |
Array of strings |
List |
support_ipv6_regions |
Array of strings |
List |
support_dscp_regions |
Array of strings |
List |
support_sts5_regions |
Array of strings |
List |
support_sites |
Array of SiteSpecifications objects |
List |
support_freeze_regions |
Array of strings |
List |
Example Requests
Querying central network capabilities
GET https://{cc_endpoint}/v3/{domain_id}/gcn/capabilities
Example Responses
Status code: 200
Central network capabilities have been queried.
{
"request_id" : "a3bad420-33b8-4e26-9e9b-bdf67aa8e72b",
"page_info" : {
"current_count" : 1
},
"capabilities" : [ {
"id" : "a3bad420-33b8-4e26-9e9b-bdf67aa8e72b",
"domain_id" : "XXX",
"capability" : "central-network.is-support",
"specifications" : {
"is_support" : true
}
}, {
"id" : "a3bad420-33b8-4e26-9e9b-bdf67aa8e72b",
"domain_id" : "XXX",
"capability" : "central-network.is-support-tag",
"specifications" : {
"is_support" : true
}
}, {
"id" : "a3bad420-33b8-4e26-9e9b-bdf67aa8e72b",
"domain_id" : "XXX",
"capability" : "er-route-table-attachment.is-support",
"specifications" : {
"is_support" : true
}
}, {
"id" : "a3bad420-33b8-4e26-9e9b-bdf67aa8e72b",
"domain_id" : "XXX",
"capability" : "central-network.is-support-custom-er-table",
"specifications" : {
"is_support" : true
}
}, {
"id" : "a3bad420-33b8-4e26-9e9b-bdf67aa8e72b",
"domain_id" : "XXX",
"capability" : "central-network.is-support-enterprise-project",
"specifications" : {
"is_support" : true
}
}, {
"id" : "a3bad420-33b8-4e26-9e9b-bdf67aa8e72b",
"domain_id" : "XXX",
"capability" : "gdgw-attachment.is-support",
"specifications" : {
"is_support" : true
}
}, {
"id" : "a3bad420-33b8-4e26-9e9b-bdf67aa8e72b",
"domain_id" : "XXX",
"capability" : "gdgw-attachment.support-regions",
"specifications" : {
"support_regions" : [ ]
}
}, {
"id" : "a3bad420-33b8-4e26-9e9b-bdf67aa8e72b",
"domain_id" : "XXX",
"capability" : "er-instance.support-sts5-regions",
"specifications" : {
"support_sts5_regions" : [ ]
}
}, {
"id" : "a3bad420-33b8-4e26-9e9b-bdf67aa8e72b",
"domain_id" : "XXX",
"capability" : "er-route-table-attachment.support-sites",
"specifications" : {
"support_sites" : [ ]
}
}, {
"id" : "a3bad420-33b8-4e26-9e9b-bdf67aa8e72b",
"domain_id" : "XXX",
"capability" : "er-instance.support-regions",
"specifications" : {
"support_regions" : [ "region1", "region2" ]
}
}, {
"id" : "a3bad420-33b8-4e26-9e9b-bdf67aa8e72b",
"domain_id" : "XXX",
"capability" : "connection-bandwidth.charge-mode",
"specifications" : {
"charge_mode" : [ "bwd" ]
}
}, {
"id" : "a3bad420-33b8-4e26-9e9b-bdf67aa8e72b",
"domain_id" : "XXX",
"capability" : "gdgw-instance.support-freeze-regions",
"specifications" : {
"support_freeze_regions" : [ ]
}
}, {
"id" : "a3bad420-33b8-4e26-9e9b-bdf67aa8e72b",
"domain_id" : "XXX",
"capability" : "connection-bandwidth.size-range",
"specifications" : {
"size_range" : {
"min" : 1,
"max" : 2
}
}
}, {
"id" : "a3bad420-33b8-4e26-9e9b-bdf67aa8e72b",
"domain_id" : "XXX",
"capability" : "gdgw-instance.support-dscp-regions",
"specifications" : {
"support_dscp_regions" : [ ]
}
}, {
"id" : "a3bad420-33b8-4e26-9e9b-bdf67aa8e72b",
"domain_id" : "XXX",
"capability" : "er-instance.support-ipv6-regions",
"specifications" : {
"support_ipv6_regions" : [ ]
}
}, {
"id" : "a3bad420-33b8-4e26-9e9b-bdf67aa8e72b",
"domain_id" : "XXX",
"capability" : "cloud-alliance.support-regions",
"specifications" : {
"support_regions" : [ ]
}
}, {
"id" : "a3bad420-33b8-4e26-9e9b-bdf67aa8e72b",
"domain_id" : "XXX",
"capability" : "gdgw-attachment.support-sites",
"specifications" : {
"support_sites" : [ ]
}
}, {
"id" : "a3bad420-33b8-4e26-9e9b-bdf67aa8e72b",
"domain_id" : "XXX",
"capability" : "er-instance.support-dscp-regions",
"specifications" : {
"support_dscp_regions" : [ ]
}
}, {
"id" : "a3bad420-33b8-4e26-9e9b-bdf67aa8e72b",
"domain_id" : "XXX",
"capability" : "er-instance.support-sites",
"specifications" : {
"support_sites" : [ ]
}
}, {
"id" : "a3bad420-33b8-4e26-9e9b-bdf67aa8e72b",
"domain_id" : "XXX",
"capability" : "er-route-table-attachment.support-regions",
"specifications" : {
"support_regions" : [ ]
}
} ]
}
Status Codes
Status Code |
Description |
|---|---|
200 |
Central network capabilities have been queried. |
Error Codes
See Error Codes.