Documentation API Docs Domain Configuration QueryAmazonS3AuthorizationConfig

QueryAmazonS3AuthorizationConfig

Update time: 2026-08-14 11:26:50

Applicable Products

Content Acceleration,Dynamic Web Acceleration,Media Acceleration VoD,Media Acceleration Live Broadcast

API Description

Get amazon s3 access authorization configurations. The interface * can be domain name or domain id.

  • API URL: https://api.atomile.com/api/config/amazons3access/*
  • Method: GET
  • Limit Description: · The accelerated domain name must have been filed. · Accelerated domain names must not contain the following information: sales of drugs and controlled tools, including illegal speech and information. · Video-accelerated domain names must have audiovisual licenses; blog forums or community-based accelerated domain names must have BBS special approval qualifications. · Interface requests and return results only accept xml format.

Call frequency

Single user trigger frequency: 300/5min

Request parameter(s)

Path Params

NameDescription
domainString
Domain ID or domain name.

Response parameter(s)

Body Params

NameDescription
domain-nameString
Domain name or domain ID that needs to be queried for configuration.
domain-idString
Domain name or domain ID that needs to be queried for configuration.
amazon-s3-access-authorization-rulesList
Amazon S3 Access Authorization Configuration, parent node 1. When you need to configure the Amazon S3 Access Authorization rules, this must be filled in. 2. Configuration of clearing for . 3.vodstream/download support, web/wsa does not support. 4.Amason S3 and Aliyun OSS cannot be configured simultaneously.
path-patternString
The url matching mode. If all matches, the input parameters can be configured as: .*
except-path-patternString
The exception url matching mode.
add-authorization-headerString
Define whether to add Authorization header when back to Amazon S3 source. Allowed true and false.
access-keyString
access key
access-key-idString
access key id
signature-versionString
Signature version, default value is 2. Support 2 and 4.
regionString
Authorization region. Please refer to the AWS official site for detail.
data-idLong
When configuring multiple configurations, the ID of a specific group of configurations

Error code

Error code(code)Description(message)HTTP statusSemantic
NoSuchDomainThe specified domain does not exist.404The specified domain does not exist.
CustomerNoOwnDomaincustomer not own domain name[{0}]400customer not own domain name[{0}]

Example

JSON
XML
JSON
Request example
Copy Copy success
#!/bin/bash
username="example_username"
apiKey="example_apiKey"
date=`env LANG="en_US.UTF-8" date -u "+%a, %d %b %Y %H:%M:%S GMT"`
password=`echo -en "$date" | openssl dgst -sha1 -hmac $apiKey -binary | openssl enc -base64`
curl -i --url "https://{@apiDomain}/api/config/amazons3access/123344" \
-X "GET" \
-u "$username:$password" \
-H "Date: $date" \
-H "Accept: application/json" \
-H "Content-Type:application/json"
Response example
Copy Copy success
HTTP/1.1 200 OK
Date: Sun, 05 May 2019 09:08:53 GMT
Content-Type: application/json;charset=utf-8
x-cnc-request-id: 83bbebc7-2c95-47d7
{
    "domain-name":"www.example.com",
    "domain-id":"123344",
    "amazon-s3-access-authorization-rules":[
        {
            "data-id":"1",
            "path-pattern":".*",
            "except-path-pattern":"",
            "add-authorization-header":"true",
            "access-key":"yourAccessKey",
            "access-key-id":"yourAccessKeyID",
            "signature-version":"4",
            "region":"us-east-1"
        }
    ]
}