tencent cloud

Secrets Manager

CreateService

다운로드
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-11-30 19:10:35

1. API Description

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

This API is used to activate the ssm service.

A maximum of 20 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: CreateService.
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.
PayMode Yes String

Only PostPay is supported. It is case-sensitive.

Valid values:

  • PostPay: Postpaid pay-as-you-go billing mode

Only PostPay is supported. It is case-sensitive.

ClientToken Yes String

Creation request identifier generated by the client. The same value must be used when retrying the same logical creation.

Parameter format: 1 to 64 visible ASCII characters (from ! to ~).

Input restrictions: required. It cannot contain spaces, Chinese characters, or control characters. It is recommended to use ssm-<UUID> and not to include keys or personal information.

Default value: Leave it empty. It is generated by the caller. Do not set a fixed default value.

SSM passes it through to the billing side and does not store or return it. If the order status is unknown, verify the order first before deciding whether to retry with the original value.

3. Output Parameters

Parameter Name Type Description
ResourceId String

SSM service resource ID, which is saved by the caller to identify the service resource.

Parameter format: For postpaid services in phase 1, the ID is ssm_ plus AppId, for example, ssm_1250000000.

Default value: Leave it empty.

When returned, the resource may still be being provisioned, which does not mean that the service is available.

OrderId String

Billing transaction order number, which is used to verify the activation order.

Parameter format: Leave it empty. No fixed length or pure numeric format is guaranteed.

Default value: Leave it empty.

Order number returned by the billing system. The formation of an order does not mean that the provisioning is complete.

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 Activating the ssm Service

Input Example

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

{
    "PayMode": "PostPay",
    "ClientToken": "123344"
}

Output Example

{
    "Response": {
        "OrderId": "20260918311023705882391",
        "ResourceId": "ssm_260210396",
        "RequestId": "444eec98-00e2-42a1-87fe-8304b7500aa9"
    }
}

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
FailedOperation Operation failed.
InternalError Internal error.
InvalidParameterValue Parameter value error.
ResourceInUse.ServiceAlreadyEnabled The service has already been activated.
UnauthorizedOperation Unauthorized operation.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백