限值运算

华体会联盟hth使用限制运算获取关于指定racspace云账号的速率和域限值信息

链表限制

Get/v1.0/{ccount}/

列表所有可应用限值

本调用提供指定账户所有适用限值列表

下示例显示请求和对应响应列表指定账户所有限值

详情限值信息返回时参考限值.

本表显示此操作可能的响应码 :

响应代码 名称 描述性
二百 成功经验 请求成功
400500 DnsFault dNS服务有故障
401 未授权 未授权完成此操作 。请求提交无效验证令牌时可发生此错误 。
503 服务无可用 服务不可用 。

请求


本表显示标题参数请求

名称 类型 描述性
X-AUT-Token 字符串 任意字符串验证服务响应有效证书

表显示URI参数请求

名称 类型 描述性
{ccount} 字符串 房客身份证

操作不接受请求体

示例列表限值: XML请求

华体会联盟hthGets/dns.api.rackspacecloud.com/v1.0/1234/lips接受应用/xmlX-Auth-Token:ea85e6ac-baff-4a6c-bf43-848020ea3812

示例列表限值:JSON请求

华体会联盟hthGets/dns.api.rackspacecloud.com/v1.0/1234/limits接受:ea85e6ac-baff-4a6c-bf43-848020ea3812内容-Type应用/json内容-Length

响应


示例列表限制:XML响应

状态:200确定日期:Thu, 28Jul2011 21:5421GMT X-API-VERSION:1.0.17内容-Type:应用/xml内容-Length:1968
           
            
             
              状态/*
             
             
              .*/v\d+\.\d+/(\d+/status).*
             
             
              
               获取
              
              
               15
              
              
               15
              
              
               二次
              
              
               2011-07-28T16:21:18.050Z
              
             
            
            
             
              */domains/search*
             
             
              .*/v\d+\.\d+/(\d+/domains/search).*
             
             
              
               获取
              
              
               20码
              
              
               20码
              
              
               最小值
              
              
               2011-07-28T16:21:18.050Z
              
             
            
            
             
              */domains/{domain_id}/changes*
             
             
              .*/v\d+\.\d+/(\d+/domains/\d+/changes).*
             
             
              
               获取
              
              
               5
              
              
               5
              
              
               最小值
              
              
               2011-07-28T16:21:18.050Z
              
             
            
            
             
              */域*
             
             
              .*/v\d+\.\d+/(\d+/domains).*
             
             
              
               获取
              
              
               300
              
              
               300
              
              
               最小值
              
              
               2011-07-28T16:21:18.050Z
              
             
            
            
             
              */域*
             
             
              .*/v\d+\.\d+/(\d+/domains).*
             
             
              
               Post应用
              
              
               75
              
              
               75
              
              
               最小值
              
              
               2011-07-28T16:21:18.050Z
              
             
            
            
             
              */域*
             
             
              .*/v\d+\.\d+/(\d+/domains).*
             
             
              
               PUT系统
              
              
               150
              
              
               150
              
              
               最小值
              
              
               2011-07-28T16:21:18.050Z
              
             
            
            
             
              */域*
             
             
              .*/v\d+\.\d+/(\d+/domains).*
             
             
              
               开发者
              
              
               150
              
              
               150
              
              
               最小值
              
              
               2011-07-28T16:21:18.050Z
              
             
            
            
             
              */rdns*
             
             
              .*/v\d+\.\d+/(\d+/rdns).*
             
             
              
               全部
              
              
               300
              
              
               300
              
              
               最小值
              
              
               2011-07-28T16:21:18.050Z
              
             
            
            
             
              25000
             
             
              25000
             
            
           

示例列表限值:JSON响应

Status: 200 OK   Date: Thu, 28 Jul 2011 21:54:21 GMT   X-API-VERSION: 1.0.17   Content-Type: application/json   Content-Length: 1534  {     "limits": {         "rate": [             {                 "uri": "/status/*",                 "regex": ".*/v\\d+\\.\\d+/(\\d+/status).*",                 "limit": [                     {                         "verb": "GET",                         "value": 15,                         "remaining": 15,                         "unit": "SECOND",                         "next-available": "2011-07-28T16:21:18.050Z"                     }                 ]             },             {                 "uri": "*/domains/search*",                 "regex": ".*/v\\d+\\.\\d+/(\\d+/domains/search).*",                 "limit": [                     {                         "verb": "GET",                         "value": 20,                         "remaining": 20,                         "unit": "MINUTE",                         "next-available": "2011-07-28T16:21:18.050Z"                     }                 ]             },             {                 "uri": "*/domains/{domain_id}/changes*",                 "regex": ".*/v\\d+\\.\\d+/(\\d+/domains/\\d+/changes).*",                 "limit": [                     {                         "verb": "GET",                         "value": 5,                         "remaining": 5,                         "unit": "MINUTE",                         "next-available": "2011-07-28T16:21:18.050Z"                     }                 ]             },             {                 "uri": "*/domains*",                 "regex": ".*/v\\d+\\.\\d+/(\\d+/domains).*",                 "limit": [                     {                         "verb": "GET",                         "value": 300,                         "remaining": 300,                         "unit": "MINUTE",                         "next-available": "2011-07-28T16:21:18.050Z"                     }                 ]             },             {                 "uri": "*/domains*",                 "regex": ".*/v\\d+\\.\\d+/(\\d+/domains).*",                 "limit": [                     {                         "verb": "POST",                         "value": 75,                         "remaining": 75,                         "unit": "MINUTE",                         "next-available": "2011-07-28T16:21:18.050Z"                     }                 ]             },             {                 "uri": "*/domains*",                 "regex": ".*/v\\d+\\.\\d+/(\\d+/domains).*",                 "limit": [                     {                         "verb": "PUT",                         "value": 150,                         "remaining": 150,                         "unit": "MINUTE",                         "next-available": "2011-07-28T16:21:18.050Z"                     }                 ]             },             {                 "uri": "*/domains*",                 "regex": ".*/v\\d+\\.\\d+/(\\d+/domains).*",                 "limit": [                     {                         "verb": "DELETE",                         "value": 150,                         "remaining": 150,                         "unit": "MINUTE",                         "next-available": "2011-07-28T16:21:18.050Z"                     }                 ]             },             {                 "uri": "*/rdns*",                 "regex": ".*/v\\d+\\.\\d+/(\\d+/rdns).*",                 "limit": [                     {                         "verb": "ALL",                         "value": 300,                         "remaining": 300,                         "unit": "MINUTE",                         "next-available": "2011-07-28T16:21:18.050Z"                     }                 ]             }         ],         "absolute": {             "domains": 25000,             "records per domain": 25000         }     } }

显示限值

GET /v1.0/{account}/limits/{type}

显示指定类型分配限值

本调用提供所有可应用限值列表类型面向指定账户

下示例显示请求和对应响应列表类型面向指定账户

本表显示此操作可能的响应码 :

响应代码 名称 描述性
二百 成功经验 请求成功
400500 DnsFault dNS服务有故障
401 未授权 未授权完成此操作 。请求提交无效验证令牌时可发生此错误 。
503 服务无可用 服务不可用 。

请求


本表显示标题参数请求

名称 类型 描述性
X-AUT-Token 字符串 任意字符串验证服务响应有效证书

表显示URI参数请求

名称 类型 描述性
{ccount} 字符串 房客身份证
{类型} 字符串 类型限制

操作不接受请求体

示例列表指定的限制:XML请求

华体会联盟hthGets/dns.api.rackspacecloud.com/v1.0/1234/lips/rate_limita

示例列表指定的限制:JSON请求

华体会联盟hthGets/dns.api.rackspacecloud.com/v1.0/1234/lips/rate_limit接受:app/json X-Auth-Token:ea85e6ac-baff-4a6c-bf43-848020ea3812

响应


示例列表指定的限制:XML响应

状态:200确定日期:Thu, 28Jul2011 21:5421GMT X-API-VERSION:1.0.17内容-Type:应用/xml内容-Length:1877
           
            
             
              状态/*
             
             
              .*/v\d+\.\d+/(\d+/status).*
             
             
              
               获取
              
              
               15
              
              
               15
              
              
               二次
              
              
               2011-07-28T16:21:18.050Z
              
             
            
            
             
              */domains/search*
             
             
              .*/v\d+\.\d+/(\d+/domains/search).*
             
             
              
               获取
              
              
               20码
              
              
               20码
              
              
               最小值
              
              
               2011-07-28T16:21:18.050Z
              
             
            
            
             
              */domains/{domain_id}/changes*
             
             
              .*/v\d+\.\d+/(\d+/domains/\d+/changes).*
             
             
              
               获取
              
              
               5
              
              
               5
              
              
               最小值
              
              
               2011-07-28T16:21:18.050Z
              
             
            
            
             
              */域*
             
             
              .*/v\d+\.\d+/(\d+/domains).*
             
             
              
               获取
              
              
               300
              
              
               300
              
              
               最小值
              
              
               2011-07-28T16:21:18.050Z
              
             
            
            
             
              */域*
             
             
              .*/v\d+\.\d+/(\d+/domains).*
             
             
              
               Post应用
              
              
               75
              
              
               75
              
              
               最小值
              
              
               2011-07-28T16:21:18.050Z
              
             
            
            
             
              */域*
             
             
              .*/v\d+\.\d+/(\d+/domains).*
             
             
              
               PUT系统
              
              
               150
              
              
               150
              
              
               最小值
              
              
               2011-07-28T16:21:18.050Z
              
             
            
            
             
              */域*
             
             
              .*/v\d+\.\d+/(\d+/domains).*
             
             
              
               开发者
              
              
               150
              
              
               150
              
              
               最小值
              
              
               2011-07-28T16:21:18.050Z
              
             
            
            
             
              */rdns*
             
             
              .*/v\d+\.\d+/(\d+/rdns).*
             
             
              
               全部
              
              
               300
              
              
               300
              
              
               最小值
              
              
               2011-07-28T16:21:18.050Z
              
             
            
           

示例列表指定的限制:JSON响应

Status: 200 OK   Date: Thu, 28 Jul 2011 21:54:21 GMT   X-API-VERSION: 1.0.17   Content-Type: application/json   Content-Length: 1478  {     "limits": {         "rate": [             {                 "uri": "/status/*",                 "regex": ".*/v\\d+\\.\\d+/(\\d+/status).*",                 "limit": [                     {                         "verb": "GET",                         "value": 15,                         "remaining": 15,                         "unit": "SECOND",                         "next-available": "2011-07-28T16:21:18.050Z"                     }                 ]             },             {                 "uri": "*/domains/search*",                 "regex": ".*/v\\d+\\.\\d+/(\\d+/domains/search).*",                 "limit": [                     {                         "verb": "GET",                         "value": 20,                         "remaining": 20,                         "unit": "MINUTE",                         "next-available": "2011-07-28T16:21:18.050Z"                     }                 ]             },             {                 "uri": "*/domains/{domain_id}/changes*",                 "regex": ".*/v\\d+\\.\\d+/(\\d+/domains/\\d+/changes).*",                 "limit": [                     {                         "verb": "GET",                         "value": 5,                         "remaining": 5,                         "unit": "MINUTE",                         "next-available": "2011-07-28T16:21:18.050Z"                     }                 ]             },             {                 "uri": "*/domains*",                 "regex": ".*/v\\d+\\.\\d+/(\\d+/domains).*",                 "limit": [                     {                         "verb": "GET",                         "value": 300,                         "remaining": 300,                         "unit": "MINUTE",                         "next-available": "2011-07-28T16:21:18.050Z"                     }                 ]             },             {                 "uri": "*/domains*",                 "regex": ".*/v\\d+\\.\\d+/(\\d+/domains).*",                 "limit": [                     {                         "verb": "POST",                         "value": 75,                         "remaining": 75,                         "unit": "MINUTE",                         "next-available": "2011-07-28T16:21:18.050Z"                     }                 ]             },             {                 "uri": "*/domains*",                 "regex": ".*/v\\d+\\.\\d+/(\\d+/domains).*",                 "limit": [                     {                         "verb": "PUT",                         "value": 150,                         "remaining": 150,                         "unit": "MINUTE",                         "next-available": "2011-07-28T16:21:18.050Z"                     }                 ]             },             {                 "uri": "*/domains*",                 "regex": ".*/v\\d+\\.\\d+/(\\d+/domains).*",                 "limit": [                     {                         "verb": "DELETE",                         "value": 150,                         "remaining": 150,                         "unit": "MINUTE",                         "next-available": "2011-07-28T16:21:18.050Z"                     }                 ]             },             {                 "uri": "*/rdns*",                 "regex": ".*/v\\d+\\.\\d+/(\\d+/rdns).*",                 "limit": [                     {                         "verb": "ALL",                         "value": 300,                         "remaining": 300,                         "unit": "MINUTE",                         "next-available": "2011-07-28T16:21:18.050Z"                     }                 ]             }         ]     } }

列表限制类型

GET /v1.0/{account}/limits/types

列表限制类型

本调用为指定账户提供所有可应用限值类型列表

下示例显示请求和对应响应列表指定账户所有限值类型

本表显示此操作可能的响应码 :

响应代码 名称 描述性
二百 成功经验 请求成功
400500 DnsFault dNS服务有故障
401 未授权 未授权完成此操作 。请求提交无效验证令牌时可发生此错误 。
503 服务无可用 服务不可用 。

请求


本表显示标题参数请求

名称 类型 描述性
X-AUT-Token 字符串 任意字符串验证服务响应有效证书

表显示URI参数请求

名称 类型 描述性
{ccount} 字符串 房客身份证

操作不接受请求体

示例列表限制类型:XML请求

华体会联盟hthGets/dns.api.rackspacecloud.com/v1.0/1234/lips/type接受:apple/xml X-Auth-Token:ea85e6ac-baff-4a6c-bf43-848020ea3812

示例列表限制类型:JSON请求

华体会联盟hthGets/dns.api.rackspacecloud.com/v1.0/1234/lips/type接受:app/json X-Auth-Token:ea85e6ac-baff-4a6c-bf43-848020ea3812

响应


示例列表限制类型:XML响应

状态:200确定日期:Thu, 28Jul2011 21:5421GMT X-API-VERSION:1.0.17内容-Type:应用/xml内容-Length:116
           
            rate_limit
           
           
            DOMAIN_limit
           
           
            DOMAIN_RECORD_LIMIT
           

示例列表限制类型:JSON响应

状态:200确定日期:Thu, 28Jul2011 21:5421GMT X-API-VERSION:1.0.17内容-Type应用/json内容-Length
Baidu
map