Queries Kubernetes ConfigMaps.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
GET /pop/v5/k8s/acs/k8s_config_map
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | No | The ID of the region. | cn-hangzhou |
ClusterId | string | No | The ID of the cluster. | c0830281-366c-41b6-80fb-542e76****** |
Namespace | string | No | The namespace of the Kubernetes cluster. | default |
PageNo | integer | No | The number of the page to return. Pages start from Page 0. | 0 |
PageSize | integer | No | The number of entries to return on each page. | 50 |
Condition | string | No | The filter conditions. Set this parameter to a JSON string in the format of {"field":"Name", "pattern":"configmap-"}. | {"field":"Name", "pattern":"configmap-"} |
ShowRelatedApps | boolean | No | Specifies whether to return a list of applications that use a ConfigMap. Valid values: true and false. | true |
Response parameters
Examples
Sample success responses
JSON
format
{
"Code": 200,
"Message": "success",
"RequestId": "D16979DC-4D42-****************",
"Result": {
"Total": 6,
"ConfigMaps": [
{
"CreationTime": "2022-01-31T02:46:14Z",
"ClusterName": "my-cluster",
"Namespace": "default",
"Name": "my-config",
"ClusterId": "d73918f4-3b08-4c17-bb07-eaf8********",
"Data": [
{
"Key": "name",
"Value": "william"
}
],
"RelatedApps": [
{
"AppName": "my-app",
"AppId": "728cbdf2-da10-49b8-b69c-9168a********"
}
]
}
]
}
}
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 |
For a list of error codes, visit the Service error codes.