'1.0',
'info' => ['style' => 'RPC', 'product' => 'Httpdns', 'version' => '2016-02-01'],
'directories' => ['AddDomain', 'DeleteDomain', 'DescribeDomains', 'GetAccountInfo', 'GetResolveCountSummary', 'GetResolveStatistics', 'ListDomains', 'RefreshResolveCache'],
'components' => [
'schemas' => [],
],
'apis' => [
'AddDomain' => [
'summary' => '根据传入参数添加域名。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'AccountId',
'in' => 'query',
'schema' => ['description' => 'HTTPDNS账户ID。', 'type' => 'string', 'required' => false, 'example' => '123456', 'default' => ''],
],
[
'name' => 'DomainName',
'in' => 'query',
'schema' => ['description' => '域名名称。', 'type' => 'string', 'required' => true, 'example' => 'www.example.com'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'DomainName' => ['description' => '域名名称。', 'type' => 'string', 'example' => 'www.example.com'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'ADA27798-6911-4B06-AF34-53F62F62XXXX'],
],
'description' => '',
],
],
],
'title' => '添加域名',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'httpdns:AddDomain',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'HTTPDNS', 'resourceType' => 'Domain', 'arn' => 'acs:httpdns:*:{#accountId}:domain/{#DomainName}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"DomainName\\": \\"www.example.com\\",\\n \\"RequestId\\": \\"ADA27798-6911-4B06-AF34-53F62F62XXXX\\"\\n}","errorExample":""},{"type":"xml","example":"\\n\\n ADA27798-6911-4B06-AF34-53F62F624D7B\\n www.aliyun.com\\n","errorExample":""}]',
],
'DeleteDomain' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AccountId',
'in' => 'query',
'schema' => ['description' => 'HTTPDNS账户ID。', 'type' => 'string', 'required' => false, 'example' => '12****', 'default' => ''],
],
[
'name' => 'DomainName',
'in' => 'query',
'schema' => ['description' => '域名名称。', 'type' => 'string', 'required' => true, 'example' => 'www.example.com'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'DomainName' => ['description' => '域名名称。', 'type' => 'string', 'example' => 'www.example.com'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'FA8C2599-362D-4113-8FB4-E88A40C2****'],
],
'description' => '',
],
],
],
'title' => '删除域名',
'summary' => '根据传入参数删除域名。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'httpdns:DeleteDomain',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'HTTPDNS', 'resourceType' => 'Domain', 'arn' => 'acs:httpdns:*:{#accountId}:domain/{#DomainName}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"DomainName\\": \\"www.example.com\\",\\n \\"RequestId\\": \\"FA8C2599-362D-4113-8FB4-E88A40C2****\\"\\n}","errorExample":""},{"type":"xml","example":"\\n\\n FA8C2599-362D-4113-8FB4-E88A40C2639D\\n www.aliyun.com\\n","errorExample":""}]',
],
'DescribeDomains' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => [],
'parameters' => [
[
'name' => 'AccountId',
'in' => 'query',
'schema' => ['description' => 'HTTPDNS账户ID。', 'type' => 'string', 'required' => false, 'example' => '123456', 'default' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => '当前页数,起始值为1,默认为1。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'minimum' => '1', 'example' => '1', 'default' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '分页查询时设置的每页行数,最大值100,默认为20。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'maximum' => '100', 'minimum' => '1', 'example' => '10', 'default' => '20'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '请求结果。',
'type' => 'object',
'properties' => [
'PageSize' => ['description' => '分页大小。', 'type' => 'integer', 'format' => 'int64', 'example' => '20'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'A6B3BB61-69CB-50E0-9DC0-0C1658D44A47'],
'PageNumber' => ['description' => '当前页数。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'TotalCount' => ['description' => '总条目数。', 'type' => 'integer', 'format' => 'int64', 'example' => '12'],
'Domains' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Domain' => [
'description' => '域名列表信息。',
'type' => 'array',
'items' => [
'description' => '域名信息。',
'type' => 'object',
'properties' => [
'DomainName' => ['description' => '域名。', 'type' => 'string', 'example' => 'www.aliyun.com'],
],
],
],
],
'description' => '',
],
],
],
],
],
'title' => '获取用户的域名列表',
'summary' => '根据传入参数列出用户的域名。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'httpdns:DescribeDomains',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'HTTPDNS', 'resourceType' => 'Domain', 'arn' => 'acs:httpdns:*:{#accountId}:domain/*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"PageSize\\": 20,\\n \\"RequestId\\": \\"A6B3BB61-69CB-50E0-9DC0-0C1658D44A47\\",\\n \\"PageNumber\\": 1,\\n \\"TotalCount\\": 12,\\n \\"Domains\\": {\\n \\"Domain\\": [\\n {\\n \\"DomainName\\": \\"www.aliyun.com\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 20\\n A6B3BB61-69CB-50E0-9DC0-0C1658D44A47\\n 1\\n 12\\n \\n www.aliyun.com\\n \\n","errorExample":""}]',
],
'GetAccountInfo' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREemasRC3OWB'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '50F9C40E-188D-4208-BE2C-74271337****'],
'AccountInfo' => [
'description' => '当前账户信息。',
'type' => 'object',
'properties' => [
'SignSecret' => ['description' => '签名密钥。', 'type' => 'string', 'example' => '50F9C40E****'],
'SignedCount' => ['description' => '鉴权接口请求数。', 'type' => 'integer', 'format' => 'int64', 'example' => '611523'],
'PackageCount' => ['description' => '资源包数(历史遗留字段,当前恒为0)', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'MonthResolveCount' => ['description' => '本月HTTP类型解析总量。', 'type' => 'integer', 'format' => 'int32', 'example' => '9927326'],
'AccountId' => ['description' => '账户ID。', 'type' => 'string', 'example' => '1337****'],
'UnsignedEnabled' => ['description' => '非鉴权接口是否开启。', 'type' => 'boolean', 'example' => 'true'],
'UserStatus' => ['description' => 'HTTPDNS账号状态编码,1-账号正常,2-账号欠费,3-账号停服', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'UnsignedCount' => ['description' => '非鉴权接口请求数。', 'type' => 'integer', 'format' => 'int64', 'example' => '1523'],
'MonthHttpsResolveCount' => ['description' => '本月HTTPS类型解析总量。', 'type' => 'integer', 'format' => 'int32', 'example' => '3'],
'MonthFreeCount' => ['description' => '每月免费解析量。'."\n"
."\n"
.'即您每个自然月可以免费调用HTTPDNS服务进行域名解析的次数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1500000'],
'DohEnabled' => ['description' => '打开或关闭DoH功能', 'type' => 'boolean', 'example' => 'true'],
'DohResolveAllEnabled' => ['description' => '打开或关闭使用DoH解析全部域名', 'type' => 'boolean', 'example' => 'true'],
'MonthDohResolveCount' => ['description' => '月度DoH解析量', 'type' => 'integer', 'format' => 'int64', 'example' => '10000'],
'MonthHttpAesResolveCount' => ['type' => 'integer', 'format' => 'int64', 'description' => ''],
'MonthHttpsAesResolveCount' => ['type' => 'integer', 'format' => 'int64', 'description' => ''],
],
],
],
'description' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '获取账户信息',
'summary' => '获取当前HTTPDNS账户信息。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'httpdns:GetAccountInfo',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'HTTPDNS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"50F9C40E-188D-4208-BE2C-74271337****\\",\\n \\"AccountInfo\\": {\\n \\"SignSecret\\": \\"50F9C40E****\\",\\n \\"SignedCount\\": 611523,\\n \\"PackageCount\\": 0,\\n \\"MonthResolveCount\\": 9927326,\\n \\"AccountId\\": \\"1337****\\",\\n \\"UnsignedEnabled\\": true,\\n \\"UserStatus\\": 1,\\n \\"UnsignedCount\\": 1523,\\n \\"MonthHttpsResolveCount\\": 3,\\n \\"MonthFreeCount\\": 1500000,\\n \\"DohEnabled\\": true,\\n \\"DohResolveAllEnabled\\": true,\\n \\"MonthDohResolveCount\\": 10000,\\n \\"MonthHttpAesResolveCount\\": 0,\\n \\"MonthHttpsAesResolveCount\\": 0\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 50F9C40E-188D-4208-BE2C-74271337****\\n \\n 50F9C40E****\\n 611523\\n 0\\n 9927326\\n 1337****\\n true\\n 1\\n 1523\\n 3\\n 1500000\\n \\n","errorExample":""}]',
],
'GetResolveCountSummary' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREemas5UUCVR'],
],
'parameters' => [
[
'name' => 'Granularity',
'in' => 'query',
'schema' => ['description' => '统计数据粒度,可选值有**day**和**month**。', 'type' => 'string', 'required' => true, 'example' => 'day'],
],
[
'name' => 'TimeSpan',
'in' => 'query',
'schema' => ['description' => '统计时间跨度。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '7'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '请求结果。',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '3106FFF3-3612-542A-B2CD-3CF4CD48****'],
'ResolveSummary' => [
'description' => '统计结果。',
'type' => 'object',
'properties' => [
'Https6' => ['description' => 'ipv6 https解析次数。', 'type' => 'integer', 'format' => 'int64', 'example' => '123'],
'Http6' => ['description' => 'ipv6 http解析次数。', 'type' => 'integer', 'format' => 'int64', 'example' => '123'],
'Http' => ['description' => 'ipv4 http解析次数。', 'type' => 'integer', 'format' => 'int64', 'example' => '123'],
'Https' => ['description' => 'ipv4 https解析次数。', 'type' => 'integer', 'format' => 'int64', 'example' => '123'],
'Doh' => ['type' => 'integer', 'format' => 'int64', 'description' => ''],
'HttpAes' => ['type' => 'string', 'description' => ''],
'HttpsAes' => ['type' => 'string', 'description' => ''],
],
],
],
],
],
],
'title' => '获取解析及计费统计信息',
'summary' => '获取解析及计费统计信息,对应控制台中“计费相关”的页面功能。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'httpdns:GetResolveCountSummary',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'HTTPDNS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"3106FFF3-3612-542A-B2CD-3CF4CD48****\\",\\n \\"ResolveSummary\\": {\\n \\"Https6\\": 123,\\n \\"Http6\\": 123,\\n \\"Http\\": 123,\\n \\"Https\\": 123,\\n \\"Doh\\": 0,\\n \\"HttpAes\\": \\"\\",\\n \\"HttpsAes\\": \\"\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 3106FFF3-3612-542A-B2CD-3CF4CD48A4A5\\n \\n 123\\n 123\\n 123\\n 123\\n \\n","errorExample":""}]',
],
'GetResolveStatistics' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'DomainName',
'in' => 'query',
'schema' => ['description' => '需要获取统计信息的域名。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'www.aliyun.com'],
],
[
'name' => 'Granularity',
'in' => 'query',
'schema' => ['description' => '数据粒度,可选值:**day**和**month**。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'month'],
],
[
'name' => 'TimeSpan',
'in' => 'query',
'schema' => ['description' => '时间片长度。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '2'],
],
[
'name' => 'ProtocolName',
'in' => 'query',
'schema' => ['description' => '解析的协议类型,可选值:http(默认)和https。', 'type' => 'string', 'required' => false, 'example' => 'https', 'default' => 'http'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '50F9C40E-188D-B00B-BE2C-7427E531****'],
'DataPoints' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'DataPoint' => [
'description' => '数据点。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Time' => ['description' => '解析时间。', 'type' => 'integer', 'format' => 'int32', 'example' => '1488297600'],
'Count' => ['description' => '请求数。', 'type' => 'integer', 'format' => 'int32', 'example' => '9703'],
],
'description' => '',
],
],
],
'description' => '',
],
],
'description' => '',
],
],
],
'title' => '获取解析统计信息',
'summary' => '获取某个域名解析请求的统计信息。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetResolveStatistics'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'httpdns:GetResolveStatistics',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'HTTPDNS', 'resourceType' => 'Domain', 'arn' => 'acs:httpdns:*:{#accountId}:domain/{#DomainName}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"50F9C40E-188D-B00B-BE2C-7427E531****\\",\\n \\"DataPoints\\": {\\n \\"DataPoint\\": [\\n {\\n \\"Time\\": 1488297600,\\n \\"Count\\": 9703\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n\\n 50F9C40E-1816-B00B-BE2C-7427E5316481\\n \\n \\n \\n 9703\\n \\n \\n \\n 9390\\n \\n \\n","errorExample":""}]',
],
'ListDomains' => [
'summary' => '根据传入参数列出用户的域名及解析次数。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREemas5UUCVR'],
],
'parameters' => [
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => '当前页数,起始值:1,默认值:1。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'example' => '1', 'default' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '分页查询时设置的每页行数,最大值为:100,默认值:20。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '500', 'minimum' => '1', 'example' => '20', 'default' => '20'],
],
[
'name' => 'Search',
'in' => 'query',
'schema' => ['type' => 'string', 'required' => false, 'description' => ''],
],
[
'name' => 'WithoutMeteringData',
'in' => 'query',
'schema' => ['type' => 'boolean', 'required' => false, 'description' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'PageSize' => ['description' => '本次查询获取的域名数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '5'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '50F9C40E-188D-4208-BE2C-7427E531****'],
'PageNumber' => ['description' => '域名列表总数。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'TotalCount' => ['description' => '域名列表总数。', 'type' => 'integer', 'format' => 'int64', 'example' => '18'],
'DomainInfos' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'DomainInfo' => [
'description' => '本次获取的域名列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ResolvedHttps6' => ['description' => 'HTTPS-IPv6解析次数。', 'type' => 'integer', 'format' => 'int64', 'example' => '20'],
'Resolved' => ['description' => 'HTTP-IPv4解析次数。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
'Resolved6' => ['description' => 'HTTP-IPv6解析次数。', 'type' => 'integer', 'format' => 'int64', 'example' => '20'],
'DomainName' => ['description' => '域名名称。', 'type' => 'string', 'example' => 'www.example.com'],
'ResolvedHttps' => ['description' => 'HTTPS-IPv4解析次数。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
'TimeModified' => ['type' => 'integer', 'format' => 'int64', 'description' => ''],
'ResolvedDoh' => ['type' => 'integer', 'format' => 'int64', 'description' => ''],
'ResolveHttpAes' => ['type' => 'integer', 'format' => 'int64', 'description' => ''],
'ResolveHttpsAes' => ['type' => 'integer', 'format' => 'int64', 'description' => ''],
],
'description' => '',
],
],
],
'description' => '',
],
],
'description' => '',
],
],
],
'title' => '获取用户域名及解析次数',
'description' => '# 接口说明'."\n"
."\n"
.'- 查询可以指定页码(PageNumber)和每页的数量(PageSize)。'."\n"
.'- 域名列表的默认排序方式是按照域名添加的时间从新到旧排序的。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDomains'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'httpdns:ListDomains',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'HTTPDNS', 'resourceType' => 'Domain', 'arn' => 'acs:httpdns:*:{#accountId}:domain/*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"PageSize\\": 5,\\n \\"RequestId\\": \\"50F9C40E-188D-4208-BE2C-7427E531****\\",\\n \\"PageNumber\\": 1,\\n \\"TotalCount\\": 18,\\n \\"DomainInfos\\": {\\n \\"DomainInfo\\": [\\n {\\n \\"ResolvedHttps6\\": 20,\\n \\"Resolved\\": 10,\\n \\"Resolved6\\": 20,\\n \\"DomainName\\": \\"www.example.com\\",\\n \\"ResolvedHttps\\": 10,\\n \\"TimeModified\\": 0,\\n \\"ResolvedDoh\\": 0,\\n \\"ResolveHttpAes\\": 0,\\n \\"ResolveHttpsAes\\": 0\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n\\n 50F9C40E-188D-4208-BE2C-7427E5316481\\n 18\\n 1\\n 5\\n \\n \\n www.aliyun.com\\n 10\\n 20\\n \\n \\n bbs.aliyun.com\\n 10\\n 20\\n \\n \\n www.taobao.com\\n 10\\n 20\\n \\n \\n www.tmall.com\\n 10\\n 20\\n \\n \\n alipay.com\\n 10\\n 20\\n \\n \\n","errorExample":""}]',
],
'RefreshResolveCache' => [
'summary' => '刷新域名缓存。',
'path' => '',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Domains',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '要刷新的域名列表',
'type' => 'array',
'items' => ['description' => '域名', 'type' => 'string', 'required' => false, 'example' => 'www.aliyun.com'],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'Code' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '200'],
'Message' => ['description' => '响应信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'FA8C2599-362D-4113-8FB4-E88A40C2****'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'RamInsufficientPermission', 'errorMessage' => 'You are not authorized to do this operation.', 'description' => 'RAM权限不足'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '刷新域名解析缓存',
'requestParamsDescription' => '不支持泛域名的刷新',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'httpdns:RefreshResolveCache',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'HTTPDNS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"FA8C2599-362D-4113-8FB4-E88A40C2****\\"\\n}","type":"json"}]',
],
],
'endpoints' => [
['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'httpdns.ap-southeast-1.aliyuncs.com', 'endpoint' => 'httpdns.ap-southeast-1.aliyuncs.com', 'vpc' => 'httpdns-vpc.ap-southeast-1.aliyuncs.com'],
['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'httpdns-api.aliyuncs.com', 'endpoint' => 'httpdns-api.aliyuncs.com', 'vpc' => ''],
],
'errorCodes' => [
['code' => 'NoSuchVersion', 'message' => 'The specified version does not exist.', 'http_code' => null, 'description' => '无效的版本'],
['code' => 'RamInsufficientPermission', 'message' => 'You are not authorized to do this operation.', 'http_code' => 400, 'description' => 'RAM权限不足'],
['code' => 'UserNotFound', 'message' => 'The user is not found.', 'http_code' => 400, 'description' => '未找到该用户信息'],
],
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetResolveStatistics'],
['threshold' => '-1', 'countWindow' => 1, 'regionId' => '*'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDomains'],
],
],
'ram' => [
'productCode' => 'HTTPDNS',
'productName' => '移动研发平台',
'ramCodes' => ['httpdns'],
'ramLevel' => '资源级',
'ramConditions' => [],
'ramActions' => [
[
'apiName' => 'GetResolveStatistics',
'description' => '获取解析统计信息',
'operationType' => '',
'ramAction' => [
'action' => 'httpdns:GetResolveStatistics',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'HTTPDNS', 'resourceType' => 'Domain', 'arn' => 'acs:httpdns:*:{#accountId}:domain/{#DomainName}'],
],
],
],
[
'apiName' => 'DescribeDomains',
'description' => '获取用户的域名列表',
'operationType' => '',
'ramAction' => [
'action' => 'httpdns:DescribeDomains',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'HTTPDNS', 'resourceType' => 'Domain', 'arn' => 'acs:httpdns:*:{#accountId}:domain/*'],
],
],
],
[
'apiName' => 'RefreshResolveCache',
'description' => '刷新域名解析缓存',
'operationType' => 'none',
'ramAction' => [
'action' => 'httpdns:RefreshResolveCache',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'HTTPDNS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'DeleteDomain',
'description' => '删除域名',
'operationType' => 'delete',
'ramAction' => [
'action' => 'httpdns:DeleteDomain',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'HTTPDNS', 'resourceType' => 'Domain', 'arn' => 'acs:httpdns:*:{#accountId}:domain/{#DomainName}'],
],
],
],
[
'apiName' => 'AddDomain',
'description' => '添加域名接口',
'operationType' => 'create',
'ramAction' => [
'action' => 'httpdns:AddDomain',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'HTTPDNS', 'resourceType' => 'Domain', 'arn' => 'acs:httpdns:*:{#accountId}:domain/{#DomainName}'],
],
],
],
[
'apiName' => 'GetAccountInfo',
'description' => '获取账户信息',
'operationType' => 'none',
'ramAction' => [
'action' => 'httpdns:GetAccountInfo',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'HTTPDNS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetResolveCountSummary',
'description' => '获取解析及计费统计信息',
'operationType' => 'none',
'ramAction' => [
'action' => 'httpdns:GetResolveCountSummary',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'HTTPDNS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListDomains',
'description' => '获取用户域名及解析次数',
'operationType' => 'none',
'ramAction' => [
'action' => 'httpdns:ListDomains',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'HTTPDNS', 'resourceType' => 'Domain', 'arn' => 'acs:httpdns:*:{#accountId}:domain/*'],
],
],
],
],
'resourceTypes' => [
['validationType' => 'always', 'resourceType' => 'Domain', 'arn' => 'acs:httpdns:*:{#accountId}:domain/{#DomainName}'],
['validationType' => 'always', 'resourceType' => 'Domain', 'arn' => 'acs:httpdns:*:{#accountId}:domain/*'],
],
],
];