All Products
Search
Document Center

ApsaraVideo VOD:SetCrossdomainContent

更新時間:Dec 19, 2024

Updates the cross-domain policy file crossdomain.xml.

Operation description

Note After you use the cross-domain policy file to update the resources on the origin server, you must refresh the resources that are cached on Alibaba Cloud CDN nodes. You can use the ApsaraVideo VOD console to refresh resources. For more information, see Refresh and prefetch. Alternatively, you can call the RefreshVodObjectCaches operation to refresh resources.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • 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 Key: the condition key that is defined by the cloud service.
  • 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.
OperationAccess levelResource typeCondition keyAssociated operation
vod:SetCrossdomainContent
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ContentstringYes

The content of the cross-domain policy file. The file must be in the XML format and can contain up to 2,048 characters.

<cross-domain-policy><allow-access-from domain="*"/><allow-http-request-headers-from domain="*" headers="*" secure="false"/></cross-domain-policy>
StorageLocationstringYes

The URL of the Object Storage Service (OSS) bucket.

outin-67870fd5b****1e98a3900163e1c35d5.oss-cn-shanghai.aliyuncs.com
ResourceRealOwnerIdstringNo

The ID of the resource owner.

3461111

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

25818875-5F78-4A13-****-D7393642CA58

Examples

Sample success responses

JSONformat

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

Error codes

For a list of error codes, visit the Service error codes.