提供方法
华体会联盟hth使用下文提供API操作检索拉克空间提供信息
get/v2offer
华体会联盟hthLists拉克空间提供
华体会联盟hth操作检索产品目录中所有拉克空间提供
请求
请求有下列URI和标题参数
名称 | 类型 | 描述性 |
---|---|---|
X-AUT-Token |
页眉字符串(必备) | 有效认证令牌 |
内容类型 |
页眉字符串 | 值 :application/json . |
接受 |
页眉字符串 | 值 :application/json . |
{lineOfBusiness} |
字符串 | 华体会联盟hthRackspace业务线与提供相关比方说企业行 值乘US_CLOUD 返回产品US_CLOUD . |
{状态} |
字符串 | 主动化 :默认无效性 :供品变换无效性 华体会联盟hthRackspace介绍新版提供时供物变成无效性 所有产品都属于该提供无效性 . |
{范围} |
字符串 | 最大数返回项值应该是百元 或少或少默认值为百元 . |
{marker} |
字符串 | 起始点返回数据参数控件渐变 |
操作不接受请求体
示例请求:标题
下示例显示页眉信息
X-Auth-Token: f064c46a782c444cb4ba4b6434288f7c Content-Type: application/json Accept: application/json
响应
响应有下列体参数
名称 | 类型 | 描述性 |
---|---|---|
服务提供 | 数组 | 数组提供 |
供品提供 | 数组 | 信息块详解特定提供 |
供品提供.提供代码 | 字符串 | 商业标识提供引入新版提供时,该标识保持一致性只有一个版本提供代码 似有似有主动化 状态 |
供品提供.提供Version | 整数 | 商业版提供 |
供品提供.名称 | 字符串 | 名提供 |
offerings.offering.描述性 | 字符串 | 描述提供 |
offerings.offering.lineOfBusinesses | 复杂类型 | 华体会联盟hth信息块详解Rackspace业务线与提供相关 |
offerings.offering.lineOfBusinesses.企业行 | 对象类 | 华体会联盟hthRackspace业务线信息与提供相关 |
offerings.offering.链接 | 对象类 | 信息块详解提供链路 |
offerings.offering.link.内尔 | 字符串 | 当前信息与链接信息之间的关系 |
offerings.offering.link.href | 字符串 | URL链接 |
offerings.offering.link.标题显示 | 字符串 | 标题链接 |
offerings.offering.状态 | 字符串 | 状态提供有效值主动化 和无效性 .开销变换无效性 华体会联盟hthRackspace介绍新版提供 |
供品提供.标识符 | 字符串 | 通用独有标识符提供 |
供品链接 | 对象类 | 信息块包含结果链接的细节 |
提供.link内尔 | 字符串 | 当前信息与链接信息之间的关系 |
提供.linkhref | 字符串 | URL结果集 |
实例响应
下示例显示响应请求
华体会联盟hthStatus Code: 200 OK Content-Length: 4543 Content-Type: application/json Date: Wed, 03 Dec 2014 17:13:30 GMT Server: Jetty(8.0.y.z-SNAPSHOT) Via: 1.1 Repose (Repose/2.12) x-compute-request-id: req-7b7ffed2-9b1f-46a8-a478-315518d35387 { "offerings": { "offering": [ { "offeringCode": "DBAAS", "offeringVersion": 2, "name": "CLOUD DATABASES", "description": "CLOUD DATABASES", "lineOfBusinesses": { "lineOfBusiness": [ "UK_CLOUD", "US_CLOUD" ] }, "link": { "rel": "SELF", "href": "https://staging.offer.api.rackspacecloud.com/v2/offerings/fd2c2294-0498-3791-9df7-1d4ed883a939/products", "title": "CLOUD DATABASES" }, "status": "ACTIVE", "id": "fd2c2294-0498-3791-9df7-1d4ed883a939" }, { "offeringCode": "CBS", "offeringVersion": 2, "name": "CLOUD BLOCK STORAGE", "description": "CLOUD BLOCK STORAGE", "lineOfBusinesses": { "lineOfBusiness": [ "UK_CLOUD", "US_CLOUD" ] }, "link": { "rel": "SELF", "href": "https://staging.offer.api.rackspacecloud.com/v2/offerings/a9b2e361-c7de-37e0-8bdb-40fb33ac1576/products", "title": "CLOUD BLOCK STORAGE" }, "status": "ACTIVE", "id": "a9b2e361-c7de-37e0-8bdb-40fb33ac1576" }, { "offeringCode": "CLOUDBIGDATA", "offeringVersion": 2, "name": "CLOUD BIG DATA", "description": "CLOUD BIG DATA", "lineOfBusinesses": { "lineOfBusiness": [ "UK_CLOUD", "US_CLOUD" ] }, "link": { "rel": "SELF", "href": "https://staging.offer.api.rackspacecloud.com/v2/offerings/86af1b3c-682d-3114-9549-9a6e9ee12084/products", "title": "CLOUD BIG DATA" }, "status": "ACTIVE", "id": "86af1b3c-682d-3114-9549-9a6e9ee12084" }, { "offeringCode": "RCDN", "offeringVersion": 2, "name": "RACKSPACE CDN", "description": "RACKSPACE CDN", "lineOfBusinesses": { "lineOfBusiness": [ "UK_CLOUD", "US_CLOUD" ] }, "link": { "rel": "SELF", "href": "https://staging.offer.api.rackspacecloud.com/v2/offerings/77d04f01-c000-32e9-aa6a-aac4ec3b5d35/products", "title": "RACKSPACE CDN" }, "status": "ACTIVE", "id": "77d04f01-c000-32e9-aa6a-aac4ec3b5d35" }, { "offeringCode": "LBAAS", "offeringVersion": 2, "name": "CLOUD LOAD BALANCER", "description": "CLOUD LOAD BALANCER", "lineOfBusinesses": { "lineOfBusiness": [ "UK_CLOUD", "US_CLOUD" ] }, "link": { "rel": "SELF", "href": "https://staging.offer.api.rackspacecloud.com/v2/offerings/6d1e4a24-49df-3d67-88a5-0aa53e6eec23/products", "title": "CLOUD LOAD BALANCER" }, "status": "ACTIVE", "id": "6d1e4a24-49df-3d67-88a5-0aa53e6eec23" }, { "offeringCode": "FSTGEN", "offeringVersion": 2, "name": "FIRST GENERATION CLOUD SERVERS", "description": "FIRST GENERATION CLOUD SERVERS", "lineOfBusinesses": { "lineOfBusiness": [ "UK_CLOUD", "US_CLOUD" ] }, "link": { "rel": "SELF", "href": "https://staging.offer.api.rackspacecloud.com/v2/offerings/6d02e6d4-f45f-3f65-b56b-d83ec803a6bb/products", "title": "FIRST GENERATION CLOUD SERVERS" }, "status": "ACTIVE", "id": "6d02e6d4-f45f-3f65-b56b-d83ec803a6bb" }, { "offeringCode": "CBCKUP", "offeringVersion": 2, "name": "CLOUD BACKUP", "description": "CLOUD BACKUP", "lineOfBusinesses": { "lineOfBusiness": [ "UK_CLOUD", "US_CLOUD" ] }, "link": { "rel": "SELF", "href": "https://staging.offer.api.rackspacecloud.com/v2/offerings/41cb76aa-dd4d-3bd6-b305-e25f3fb3bae7/products", "title": "CLOUD BACKUP" }, "status": "ACTIVE", "id": "41cb76aa-dd4d-3bd6-b305-e25f3fb3bae7" }, { "offeringCode": "CMNCLD", "offeringVersion": 2, "name": "COMMON CLOUD OFFERING", "description": "COMMON CLOUD OFFERING", "lineOfBusinesses": { "lineOfBusiness": [ "UK_CLOUD", "US_CLOUD" ] }, "link": { "rel": "SELF", "href": "https://staging.offer.api.rackspacecloud.com/v2/offerings/3a14712f-c617-3481-b397-174dfff1e41f/products", "title": "COMMON CLOUD OFFERING" }, "status": "ACTIVE", "id": "3a14712f-c617-3481-b397-174dfff1e41f" }, { "offeringCode": "NXTGEN", "offeringVersion": 2, "name": "NEXT GENERATION CLOUD SERVERS", "description": "NEXT GENERATION CLOUD SERVERS", "lineOfBusinesses": { "lineOfBusiness": [ "UK_CLOUD", "US_CLOUD" ] }, "link": { "rel": "SELF", "href": "https://staging.offer.api.rackspacecloud.com/v2/offerings/387e19d3-d2bb-3310-96c7-8ea708239646/products", "title": "NEXT GENERATION CLOUD SERVERS" }, "status": "ACTIVE", "id": "387e19d3-d2bb-3310-96c7-8ea708239646" }, { "offeringCode": "CSITES", "offeringVersion": 2, "name": "CLOUD SITES", "description": "CLOUD SITES", "lineOfBusinesses": { "lineOfBusiness": [ "UK_CLOUD", "US_CLOUD" ] }, "link": { "rel": "SELF", "href": "https://staging.offer.api.rackspacecloud.com/v2/offerings/361b9937-f217-3a8f-b6e8-27e294343c99/products", "title": "CLOUD SITES" }, "status": "ACTIVE", "id": "361b9937-f217-3a8f-b6e8-27e294343c99" }, { "offeringCode": "CFILES", "offeringVersion": 2, "name": "CLOUD FILES", "description": "CLOUD FILES", "lineOfBusinesses": { "lineOfBusiness": [ "UK_CLOUD", "US_CLOUD" ] }, "link": { "rel": "SELF", "href": "https://staging.offer.api.rackspacecloud.com/v2/offerings/1099767e-99dc-3f62-a405-694ce681759c/products", "title": "CLOUD FILES" }, "status": "ACTIVE", "id": "1099767e-99dc-3f62-a405-694ce681759c" } ], "link": [] } }
响应代码
操作可有下列响应码
代码解析 | 名称 | 描述性 |
---|---|---|
二百 | 成功经验 | 请求成功 |
400 | 错误 | 泛报出错 |
404 | 未找到 | 请求资源找不到 。 |
405 | 方法不允许 | 请求行中接收的方法为源服务器所知,但目标资源不支持 |
406 | 不可接受 | 值中接受 页眉不支持 |
500 | API故障 | 服务器遇到意外条件,无法满足请求 |
更新 29天前