Modifies the settings of common switches.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Type | string | No | The type of the switch. Note
You can call the ListClientUserDefineRules or ListSystemClientRules operation to obtain the type from the response parameter SwitchId.
| USER-DEFINE-RULE-SWITCH-TYPE_190**** |
TargetDefault | string | No | Specifies whether to turn on the switch for newly added servers. Valid values:
| add |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "655B538A-A31B-58F2-A3FB-2EF4390D****"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.