ModifyDomainOrigin
1. 接口描述
2. 请求参数
参数名称
必选
类型
描述
3. 响应结果
参数名称
类型
描述
4. 代码示例
POST / HTTP/1.1
Host: console.zenlayer.com/api/v2/cdn
Content-Type: application/json
X-ZC-Action: ModifyDomainOrigin
<Common Request Params>
Request:
{
"domainId": "domainIdxxxxx",
"origin": {
"masterSource": "1.1.1.1",
"slaverSource": "2.2.2.2",
"originPort": "80",
"originPortHttps": "443"
}
}
S3Source Request:
{
"domainId": "domainIdxxxxx",
"origin": {
"masterSource": "test.s3.ap-southeast-1.amazonaws.com",
"s3SourceConfig": {
"accessKey": "AKIAU73DY4VOLNGXTRJW",
"secretKey": "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",
"region": "ap-southeast-1"
}
}
}
Response:
{
"requestId": "TEEFDCA5B-76FB-4E91-A18E-DF7F5D2CE41F",
}5. 错误码
HTTP状态码
错误码
说明
最后更新于