Domain name for API request: monitor.intl.tencentcloudapi.com.
Creates an on-call schedule.
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: CreateOnCallForm. |
| Version | Yes | String | Common Params. The value used for this API: 2018-07-24. |
| Region | No | String | Common Params. This parameter is not required. |
| Module | Yes | String | The fixed value is monitor. |
| OnCallFormName | Yes | String | On-call schedule name. |
| StaffInfos.N | Yes | Array of StaffInfo | On-call personnel ID group. |
| RotationType | Yes | String | Rotation type. |
| ShiftTime | Yes | String | Shift change time. |
| EffectiveStartTime | Yes | Integer | Effect time. Unit: seconds. |
| EffectiveEndTime | Yes | Integer | End time of the validity period (in seconds). |
| TimeZone | Yes | Float | Time zone (-12 to 12). |
| OnCallFormDesc | No | String | Description of the shift schedule. |
| CoverStaffInfos.N | No | Array of CoverStaffInfo | Shift information. |
| Tags.N | No | Array of Tag | Tag bound to the template |
| Parameter Name | Type | Description |
|---|---|---|
| OnCallFormID | String | On-call schedule ID. |
| 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. |
This example shows you how to create an on-call schedule.
POST / HTTP/1.1
Host: monitor.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateOnCallForm
<Common request parameters>
{
"Module": "abc",
"OnCallFormName": "abc",
"OnCallFormDesc": "abc",
"StaffInfos": [
{
"StaffIDs": [
"abc"
]
}
],
"RotationType": "abc",
"ShiftTime": "abc",
"EffectiveStartTime": 0,
"EffectiveEndTime": 0,
"TimeZone": 0,
"CoverStaffInfos": [
{
"CoverStaffIDs": [
"abc"
],
"CoverStartTime": 0,
"CoverEndTime": 0
}
]
}
{
"Response": {
"OnCallFormID": "abc",
"RequestId": "abc"
}
}
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 |
|---|---|
| UnsupportedOperation | Unsupported operation. |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan