All Products
Search
Document Center

ApsaraVideo VOD:SetAuditSecurityIp

Last Updated:Nov 09, 2022

Manages the IP addresses in review security groups.

Operation Description

NoteYou can play videos in the Checking or Blocked state only from the IP addresses that are added to review security groups.

Authorization information

The following table is the authorization information corresponding to the API, which can be found in the RAM permission policy statement.Action Used in the element to grant the RAM user or RAM role permission to call this API. The specific instructions are as follows:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All resources is used in the Resource type column of the operation.
  • Condition keyword: refers to the condition keyword defined by the cloud product itself.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operateaccess levelResource typeconditional keywordAssociation operation
vod:SetAuditSecurityIpRead
  • VOD
    acs:vod:*:{#accountId}:*/*
    without
without

Request parameters

ParameterTypeRequiredDescriptionExample
SecurityGroupNamestringNo

The name of the review security group. Default value: Default. You can specify a maximum of 10 review security groups.

Default
IpsstringYes

The IP addresses to be added to a review security group. You can add a maximum of 100 IP addresses to each review security group. Separate multiple IP addresses with commas (,). You can enter individual IP addresses or a CIDR block.

  • Individual IP address: for example, 10.23.12.24
  • CIDR block: for example, 10.23.12.24/24, where /24 indicates that the prefix of the CIDR block is 24 bits in length. You can replace 24 with a value that ranges from 1 to 32.
192.168.0.1
OperateModestringNo

The operation type. Valid values:

  • Append: adds the IP addresses to the original whitelist. This is the default value.
  • Cover: overwrites the original whitelist.
  • Delete: removes the IP addresses from the original whitelist.
Cover

Response parameters

ParameterTypeDescriptionExample
object

The returned data.

RequestIdstring

The ID of the request.

25818875-5F78-4AF6-D7393642CA58****

Example

Normal return example

JSONFormat

{
  "RequestId": "25818875-5F78-4AF6-D7393642CA58****"
}

Error codes

For a list of error codes, visit the API error center.

Common errors

The following table describes the common errors that this operation can return.

Error codeError messageHTTP status codeDescription
IpsIsEmptyThe specified "Ips" can not be empty.400The error message returned because the Ips parameter is not specified.
IpsExceededMaxThe specified Ips count has exceeded 100.403The error message returned because more than 100 IP addresses are added to a review security group.
SecurityIpGroupExceededMaxThe audit security group count has exceeded 10.403The error message returned because the number of review security groups exceeds the upper limit.