Queries the namespaces in an Alibaba Cloud Container Service for Kubernetes (ACK) cluster.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ConnectorId |
string |
Yes |
The ID of the ACK cluster connector. To obtain this ID, call the DescribeAckClusterConnectors operation.
|
ac-7c1bad6c3cc84c33baab |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| AckNamespaces |
array |
The list of ACK cluster namespaces. |
|
|
string |
The ACK cluster namespace. |
default |
|
| RequestId |
string |
The request ID. |
133173B9-8010-5DF5-8B93-******** |
Examples
Success response
JSON format
{
"AckNamespaces": [
"default"
],
"RequestId": "133173B9-8010-5DF5-8B93-********"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ErrorParametersUid | The aliUid parameter is invalid. | The aliUid parameter is invalid. |
| 400 | ErrorParameters | Parameters error. | Parameter error. |
| 400 | ErrorDBSelect | An error occurred while querying database. | An error occurred while querying database. |
| 400 | ErrorAckClusterQueryClusterNamespace | Failed to query cluster namespaces. | Failed to query cluster namespaces. |
| 400 | ErrorAckClusterNotFound | The specified resource ACK cluster is not found. | The specified resource ACK cluster is not found. |
| 400 | ErrorAckNotOpen | ACK service is not open. | ACK service is not open. |
| 404 | ErrorAckClusterConnectorNotFound | The specified resource ACK cluster connector is not found. | The specified resource ACK cluster connector is not found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.