Description
The SaveSingleTaskForUpdateProhibitionLock API submits an update prohibition lock task. You can use the QueryTaskDetailList API to query the task execution result.
Request parameters
For more information about public request parameters, see Public parameters.
Parameter |
Type |
Required? |
Description |
Action |
String |
Yes |
API of the action, system required parameter. Set this parameter to SaveSingleTaskForUpdateProhibitionLock. |
DomainName |
String |
Yes |
Domain name |
Status |
Boolean |
Yes |
Whether the lock is enabled. The value true indicates that the lock is enabled, and the value false indicates that the lock is disabled. |
Lang |
String |
No |
Language of the information returned from the API. The enumerated values include zh (Chinese) and en (English). The default value is en. |
Response parameters
Parameter |
Type |
Description |
RequestId |
String |
Unique request identifier |
TaskNo |
String |
Task ID |
Error codes
Error code |
Description |
HTTP status code |
Semantics |
ParameterIllegal |
Parameter illegal. |
400 |
Parameter error |
NetworkIOError |
Network IO Error. |
400 |
Network I/O exception |
Examples
Request example
http://domain-intl.aliyuncs.com/?Action=SaveSingleTaskForUpdateProhibitionLock
&DomainName=test1.com
&Status=false
&<Public request parameters>
Response example
<?xml version='1.0' encoding='UTF-8'?>
<SaveSingleTaskForUpdateProhibitionLockResponse>
<TaskNo>d3babb0a-c939-4c25-8c65-c47b65f5492a</TaskNo>
<RequestId>F51977F9-2B40-462B-BCCD-CF5BB1E9DB56</RequestId>
</SaveSingleTaskForUpdateProhibitionLockResponse>
{
"TaskNo": "d3babb0a-c939-4c25-8c65-c47b65f5492a",
"RequestId": "F51977F9-2B40-462B-BCCD-CF5BB1E9DB56"
}