tencent cloud

密钥管理系统

产品简介
产品概述
产品优势
应用场景
基本概念
购买指南
计费概述
购买方式
续费说明
欠费说明
控制台指南
入门概述
密钥管理
访问控制
审计
TCCLI 管理指南
操作总览
创建密钥
查看密钥
编辑密钥
启用禁用密钥
密钥轮换
对称密钥加解密
非对称密钥解密
删除密钥
实践教程
对称加解密
非对称加解密
KMS 后量子密码实践
外部密钥导入
指数回退策略应对服务限频
云产品集成 KMS 实现透明加密
API 文档
History
Introduction
API Category
Key APIs
Making API Requests
Asymmetric Key APIs
Data Types
Error Codes
服务等级协议
常见问题
一般性问题
开发接入相关问题
KMS 政策
隐私政策
数据处理和安全协议
联系我们
词汇表

GetServiceStatus

PDF
聚焦模式
字号
最后更新时间: 2026-03-18 14:14:19

1. API Description

Domain name for API request: kms.intl.tencentcloudapi.com.

Used to query whether the user has activated the KMS service.

A maximum of 100 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

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: GetServiceStatus.
Version Yes String Common Params. The value used for this API: 2019-01-18.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.

3. Output Parameters

Parameter Name Type Description
ServiceEnabled Boolean Whether the KMS service has been activated. true: activated
InvalidType Integer Service unavailability type: 0-not purchased, 1-normal, 2-service suspended due to overdue payments, 3-resource release.
UserLevel Integer 0: Basic Edition, 1: Ultimate Edition
ProExpireTime Integer Specifies the expiry time (Epoch Unix Timestamp) of the flagship edition.
ProRenewFlag Integer Specifies whether the flagship edition is automatically renewed: 0 - no automatic renewal, 1 - automatic renewal.
ProResourceId String Flagship edition purchase record unique identifier. if not activated, the return value is empty.
ExclusiveVSMEnabled Boolean Whether to enable the KMS-managed version.
ExclusiveHSMEnabled Boolean Whether to enable the exclusive edition of KMS.
SubscriptionInfo String Specifies the KMS subscription information.
CmkUserCount Integer Returns the amount of KMS user secret keys used.
CmkLimit Integer Returns the specification quantity of KMS user secret keys.
ExclusiveHSMList Array of ExclusiveHSM Return dedicated cluster group.
IsAllowedDataKeyHosted Boolean Whether data key management is supported. valid values: 1 (supported), 0 (unsupported).
DataKeyLimit Integer Valid when IsAllowedDataKeyHosted is 1. specifies the purchase quota for data keys.
FreeDataKeyLimit Integer Valid when IsAllowedDataKeyHosted is 1. data key free quota.
DataKeyUsedCount Integer Valid at that time when IsAllowedDataKeyHosted is 1. specifies the number of keys used.
SyncTaskList Array of DestinationSyncConfig Specifies the target region of the sync task.
IsAllowedSync Boolean Whether synchronization task is supported. true: supported; false: unsupported.
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.

4. Example

Example1 Querying the service status

This example shows you how to query service status.

Input Example

POST / HTTP/1.1
Host: kms.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: GetServiceStatus
<Common request parameters>

{}

Output Example

{
    "Response": {
        "ServiceEnabled": true,
        "InvalidType": 1,
        "UserLevel": 0,
        "ProResourceId": "kms_pro_12345",
        "ProRenewFlag": 1,
        "ProExpireTime": 1603701385,
        "RequestId": "1b580852-1e38-11e9-b129-5cb9019b4b00",
        "ExclusiveHSMEnabled": false,
        "ExclusiveVSMEnabled": false,
        "SubscriptionInfo": "Prepaid_KMS"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
InternalError Internal error.
UnauthorizedOperation Unauthorized operation.
UnsupportedOperation Unsupported operation.

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈