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.
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:
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. |
| 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. |
POST / HTTP/1.1
Host: ssm.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateService
<Common request parameters>
{
"PayMode": "PostPay",
"ClientToken": "123344"
}
{
"Response": {
"OrderId": "20260918311023705882391",
"ResourceId": "ssm_260210396",
"RequestId": "444eec98-00e2-42a1-87fe-8304b7500aa9"
}
}
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. |
| ResourceInUse.ServiceAlreadyEnabled | The service has already been activated. |
| UnauthorizedOperation | Unauthorized operation. |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan