接口请求域名: ssm.intl.tencentcloudapi.com 。
该接口用户获取用户SecretsManager服务开通状态。
默认接口请求频率限制:50次/秒。
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| Action | 是 | String | 公共参数,本接口取值:GetServiceStatus。 |
| Version | 是 | String | 公共参数,本接口取值:2019-09-23。 |
| Region | 是 | String | 公共参数,详见产品支持的 地域列表。 |
| 参数名称 | 类型 | 描述 |
|---|---|---|
| ServiceEnabled | Boolean | true表示服务已开通,false 表示服务尚未开通。 |
| InvalidType | Integer | 服务不可用类型: 0-未购买,1-正常, 2-欠费停服, 3-资源释放。 |
| AccessKeyEscrowEnabled | Boolean | true表示用户已经可以使用密钥安全托管功能, |
| ExpireTime | String | 过期时间 |
| QPSLimit | Integer | 计算性能限制 |
| SecretLimit | Integer | 凭据个数限制 |
| PayModel | String | 付费模式 |
| RenewFlag | Integer | 自动续费标识,0:手动续费 1:自动续费 2:到期不续 |
| ResourceId | String | 资源id |
| TotalCount | Integer | 已托管凭据个数 |
| ResourceRegion | Integer | 预付费购买 SSM 资源的地域 ID |
| RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
获取 SSM 服务开通状态
POST / HTTP/1.1
Host: ssm.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: GetServiceStatus
<公共请求参数>
{}
{
"Response": {
"AccessKeyEscrowEnabled": true,
"ExpireTime": "2027-02-01 19:30:31",
"InvalidType": 1,
"PayModel": "Prepaid_SSM",
"QPSLimit": 1000,
"RenewFlag": 1,
"RequestId": "9a405d03-5cff-452b-bf0a-8576e2c1e1be",
"ResourceId": "SSM-Prepaid-rt64sffg",
"SecretLimit": 5900,
"ServiceEnabled": true,
"TotalCount": 5541
}
}
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码。
| 错误码 | 描述 |
|---|---|
| InternalError | 内部错误。 |
| UnauthorizedOperation | 未授权操作。 |
文档反馈