Queries namespaces for a Kubernetes cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:ReadCluster |
*All Resource
|
None | None |
Request syntax
GET /pop/v5/k8s/acs/k8s_namespace HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
No |
The ID of the cluster in Enterprise Distributed Application Service (EDAS). |
5b2b4ab4-efbc-4a81-9c45-xxxxxxxxxxxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. |
57F146F6-3C94-****-****-A66EF4B9***** |
| Code |
integer |
The HTTP status code that is returned. |
200 |
| Message |
string |
The message returned for the request. |
success |
| Data |
array<object> |
The data that is returned. |
|
|
object |
|||
| Namespace |
string |
The namespaces of the Kubernetes cluster. |
development |
Examples
Success response
JSON format
{
"RequestId": "57F146F6-3C94-****-****-A66EF4B9*****",
"Code": 200,
"Message": "success",
"Data": [
{
"Namespace": "development"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | Edas.errorcode.PermissionDenied.message | You are not authorized to perform the operation. | No permissions |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.