海外 ACDN behaviors¶
POST 创建行为¶
POST /prod-api/acdn/behaviorsRest/createBehaviors
Body 请求参数
{
"pathPattern": "/",
"smoothStreaming": true,
"compress": true,
"originRequestPolicyId": "",
"allowedMethods": {
"quantity": 2,
"items": ["GET"],
"cachedMethods": {
"quantity": 2,
"items": ["GET"]
}
},
"cachePolicyId": "658327ea-f89d-4fab-a63d-7e88639e58f6",
"targetOriginId": "ztdemo.com",
"responseHeadersPolicyId": "",
"viewerProtocolPolicy": "allow-all",
"distributionId": 24
}
请求参数¶
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
Authorization | header | string | 是 | none | |
body | body | PutBehaviorsVO | 是 | PutBehaviorsVO | none |
返回示例
200 Response
201 Response
返回结果¶
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | none | Inline |
201 | Created | none | Inline |
401 | Unauthorized | none | Inline |
403 | Forbidden | none | Inline |
404 | Not Found | none | Inline |
返回数据结构¶
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» additionalProperties | object | false | none | none | |
» msg | string | true | none | none | |
» code | string | true | none | none |
数据模型¶
AllowedMethods
AllowedMethods
属性¶
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
cachedMethods | CachedMethods | false | none | none | |
items | [string] | false | none | none | |
quantity | integer(int32) | false | none | none |
CachedMethods
CachedMethods
属性¶
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
items | [string] | false | none | none | |
quantity | integer(int32) | false | none | none |
PutBehaviorsVO
{
"allowedMethods": {
"cachedMethods": {
"items": ["string"],
"quantity": 0
},
"items": ["string"],
"quantity": 0
},
"cachePolicyId": "string",
"compress": true,
"distributionId": 0,
"originRequestPolicyId": "string",
"pathPattern": "string",
"realtimeLogConfigArn": "string",
"responseHeadersPolicyId": "string",
"smoothStreaming": true,
"targetOriginId": "string",
"viewerProtocolPolicy": "string"
}
PutBehaviorsVO
属性¶
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
allowedMethods | AllowedMethods | true | none | 允许 HTTP 方法 | 允许 HTTP 方法: GET,HEA:表示 GET, HEAD GET,HEAD,OPTIONS: 表示 GET, HEAD, OPTIONS DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT:表示 GET, HEAD, OPTIONS, PUT, POST, PATCH, DELETE |
cachePolicyId | string | true | none | 缓存策略 | none |
compress | boolean | false | none | 自动压缩对象 | 自动压缩对象:0:否 1:是 |
distributionId | integer(int64) | false | none | 分配 ID | none |
originRequestPolicyId | string | false | none | 源请求策略 | none |
pathPattern | string | true | none | 路径模式 | none |
realtimeLogConfigArn | string | false | none | none | |
responseHeadersPolicyId | string | false | none | 标头策略 | none |
smoothStreaming | boolean | false | none | SmoothStreaming | SmoothStreaming:0:否 1:是 |
targetOriginId | string | true | none | 源和源组 | none |
viewerProtocolPolicy | string | false | none | 协议策略 | 协议策略: allow-all:HTTP 和 HTTPS redirect-to-https:重定向 HTTP 到 HTTPS https-only:仅 HTTPS |