All Products
Search
Document Center

SetAuditSecurityIp

Last Updated: Mar 04, 2019

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

NameTypeRequiredDescription
ActionStringYesThe operation that you want to perform. Set the value to SetAuditSecurityIp.
SecurityGroupName StringNoThe 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.
IpsString NoThe 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:
  • Exact IP address: 10.23.12.24.
  • Classless Inter-Domain Routing (CIDR) notation: 10.23.12.24/24 (where /24 indicates the number of bits for the prefix of the IP address, in the range of [1,32]).
OperateMode String NoThe operating mode. Valid values:
  • Append (default value): indicates that new IP addresses are appended to the whitelist.
  • Cover: indicates that new IP addresses overwrite those in the whitelist.
  • Delete: indicates that IP addresses are deleted from the whitelist.

Response parameters

NameTypeDescription
RequestId String The GUID generated by Alibaba Cloud for the request.

Examples

Sample requests

  1. 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

  1. {
  2. "RequestId": "25818875-5F78-4A13-BEF6-D7393642CA58"
  3. }

Error codes

The following table lists the error codes that this operation can return. For more information, see Error codes.

Error codeError messageHTTP status codeDescription
IpsIsEmpty The specified “Ips” can not be empty.400The error message returned when the Ips parameter is not set.
IpsExceededMax The specified Ips count has exceeded 100.403The error message returned when more than 100 IP addresses are added to a group.
SecurityIpGroupExceededMax The audit security group count has exceeded 10.403The error message returned when the number of review security groups exceeds the upper limit.