Content Acceleration,Dynamic Web Acceleration,Media Acceleration VoD,Media Acceleration Live Broadcast
Get amazon s3 access authorization configurations. The interface * can be domain name or domain id.
Single user trigger frequency: 300/5min
| Name | Description |
|---|---|
domainString | Domain ID or domain name. |
| Name | Description |
|---|---|
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 |
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(code) | Description(message) | HTTP status | Semantic |
|---|---|---|---|
| NoSuchDomain | The specified domain does not exist. | 404 | The specified domain does not exist. |
| CustomerNoOwnDomain | customer not own domain name[{0}] | 400 | customer not own domain name[{0}] |
#!/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"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"
}
]
}