Queries Kubernetes Secrets.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
GET /pop/v5/k8s/acs/k8s_secret
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ClusterId | string | No | The ID of the cluster. | 7a953f9a-2946-4c7a-9d82-9939db****** |
Namespace | string | No | The namespace of the Kubernetes cluster. | default |
RegionId | string | No | The ID of the region. | cn-hangzhou |
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. The value 0 indicates that all entries are returned on one page. | 10 |
Condition | string | No | The filter conditions. Set this parameter to a JSON string in the format of {"field":"Name", "pattern":"configmap-"}. | {\"field\":\"Name\",\"pattern\":\"product\"} |
ShowRelatedApps | boolean | No | Specifies whether to return a list of applications that use a Secret. | true |
Response parameters
Examples
Sample success responses
JSON
format
{
"Code": 200,
"Message": "success",
"RequestId": "b197-40ab-9155-****",
"Result": {
"Total": 6,
"Secrets": [
{
"Type": "Opaque",
"CreationTime": "2022-05-26T02:57:02Z",
"ClusterName": "test-cluster",
"Namespace": "default",
"Base64Encoded": false,
"CertRegionId": "cn-hangzhou",
"CertId": "123456",
"Name": "my-secret",
"ClusterId": "4472a6d3-f01d-4087-85a7-3dc52********",
"RelatedIngressRules": [
{
"Name": "testrulename",
"Namespace": "default",
"RelatedApps": [
{
"AppName": "app-test",
"AppId": "6dc74432-5a35-4e68-8aaa-3700********"
}
]
}
],
"Data": [
{
"Key": "name",
"Value": "william"
}
],
"RelatedApps": [
{
"AppName": "my-app",
"AppId": "b08eeb18-8946-410c-a1ea-dbbc********"
}
],
"CertDetail": {
"EndTime": "2022-02-22T02:32:41Z",
"Status": "normal",
"StartTime": "2022-01-02T22:40:00Z",
"Issuer": "CN=GlobalSign Root CA, OU=Root CA, O=GlobalSign nv-sa, C=BE",
"DomainNames": [
"example.com"
]
}
}
]
}
}
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.
Change history
Change time | Summary of changes | Operation | ||||||
---|---|---|---|---|---|---|---|---|
2021-09-14 | The Error code has changed. The response structure of the API has changed | see changesets | ||||||
|