Domain name for API request: ssm.intl.tencentcloudapi.com.
This API is used to obtain a detailed list of all credentials. You can specify filter fields, sorting methods, and so on.
A maximum of 30 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: ListSecrets. |
| Version | Yes | String | Common Params. The value used for this API: 2019-09-23. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| Offset | No | Integer | Start position of the query list, starting from 0. The default value is 0 if not set. |
| Limit | No | Integer | Maximum number of results returned for a single query. The default value is 20 if it is set to 0 or not set. |
| OrderType | No | Integer | Sorting method by creation time. The default value is 0, which indicates descending order. 1 indicates ascending order. |
| State | No | Integer | Filters by credential status. |
| SearchSecretName | No | String | Filters by credential name. An empty value indicates no filtering. |
| TagFilters.N | No | Array of TagFilter | Tag filter condition. |
| SecretType | No | Integer | 0 -- Indicates a user-defined credential. The default value is 0. |
| ProductName | No | String | This parameter only takes effect when the SecretType parameter value is 1. |
| EncryptType | No | Integer | Credential encryption type Valid values:
Default value: 0 |
| InstanceID | No | String | Cloud product instance ID |
| Parameter Name | Type | Description |
|---|---|---|
| TotalCount | Integer | Total number of credentials filtered by State and SearchSecretName. |
| SecretMetadatas | Array of SecretMetadata | Returns the list of credential information. |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: ssm.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ListSecrets
<Common request parameters>
{}
{
"Response": {
"SecretMetadatas": [
{
"AssociatedInstanceIDs": [],
"CreateTime": 1784724042,
"CreateUin": 700000579952,
"CreateUinString": "700000579952",
"DeleteTime": 0,
"Description": "",
"EncryptSwitching": false,
"EncryptType": 0,
"KmsKeyId": "31da3478-85b2-11f1-9b54-525400f44230",
"KmsKeyType": "CUSTOMER",
"NextRotationTime": 0,
"ProductName": "default",
"ProjectID": 0,
"ResourceID": "251237300_700000579952_customize_1784724042855182311_RcI",
"ResourceName": "",
"RotationBeginTime": "",
"RotationFrequency": 0,
"RotationStatus": 0,
"SecretName": "x1_003",
"SecretType": 0,
"Status": "Enabled",
"TargetUin": 0,
"TargetUinString": "0"
}
],
"TotalCount": 3,
"RequestId": "2b80ea44-668c-456f-b298-2bdef4374efc"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| FailedOperation | Operation failed. |
| InternalError | Internal error. |
| InvalidParameterValue | Parameter value error. |
| ResourceUnavailable.NotPurchased | The service has not been purchased. |
| UnauthorizedOperation | Unauthorized operation. |
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários