Description
You can call this operation to add IP addresses to review security groups.
Note: If videos are in the Checking or Blocked status, they can be played only through requests sent from IP addresses that have been added to review security groups.
Request parameters
Name | Type | Required | Description |
---|---|---|---|
Action | String | Yes | The operation that you want to perform. Set the value to SetAuditSecurityIp. |
SecurityGroupName | String | No | The name of the review security group. Default value: Default. With a single Alibaba Cloud account, you can create a maximum of 10 review security groups. |
Ips | String | No | The whitelist of IP addresses in review security groups. You can add a maximum of 100 IP addresses to each group. Separate multiple IP addresses with a comma (,). The format is as follows:
|
OperateMode | String | No | The operating mode. Valid values:
|
Response parameters
Name | Type | Description |
---|---|---|
RequestId | String | The GUID generated by Alibaba Cloud for the request. |
Examples
Sample requests
http://vod.cn-shanghai.aliyuncs.com?AccessKeyId=LTAIcVGcC6Ik&Action=SetAuditIpSecurity&Format=JSON&Ips=330.27.94.0/24,30.39.147.245&OperateMode=Append&SignatureMethod=HMAC-SHA1&SignatureNonce=b67eddb3-54a9-458e-8ed9-b95c7da8e4ff&SignatureVersion=1.0&Timestamp=2018-05-22T07:59:21Z&Version=2017-03-14&Signature=LGA8w2EMY8NwOZdf+K0JrUn0MNs=&Format=JSON&<Common request parameters>
Note: For more information about common request parameters, see Common parameters.
Sample responses
JSON format
{
"RequestId": "25818875-5F78-4A13-BEF6-D7393642CA58"
}
Error codes
The following table lists the error codes that this operation can return. For more information, see Error codes.
Error code | Error message | HTTP status code | Description |
---|---|---|---|
IpsIsEmpty | The specified “Ips” can not be empty. | 400 | The error message returned when the Ips parameter is not set. |
IpsExceededMax | The specified Ips count has exceeded 100. | 403 | The error message returned when more than 100 IP addresses are added to a group. |
SecurityIpGroupExceededMax | The audit security group count has exceeded 10. | 403 | The error message returned when the number of review security groups exceeds the upper limit. |