云备份

华体会联盟hth云备份操作获取Rackspace云备份服务使用和系统事件信息

获取备份事件fe

Get/sup/events/{tid}

操作获取最新事件

请求

下表显示请求页眉参数

名称 类型 描述性
接受 Acceptheadertype(必备) 指定请求中接受信头类型

下表显示URI参数请求

名称 类型 描述性
{tid} 字符串 指定租户日期

下表显示查询参数

名称 类型 描述性
标识符 安珠里市可选性 指定引用项如果未指定值,则默认使用前置值
限值 整数可选性 指定返回项数默认限制设为25最小限值为1,最大限值为1,000
方向选择 字符串可选性 有效值向后或向前

操作不接受请求体

响应

下表显示可能的响应码
操作.

响应代码 名称 描述性
二百 请求成功
400 坏请求 请求缺失一个或多个元素或某些元素的值无效
401 未授权 验证失败或用户没有权限请求操作
404 未找到 请求资源未找到 。
429 率有限 太多请求等待重试
500 内部服务器错误 服务器遇到意外条件,无法满足请求
503 服务无可用 服务不可用 。稍后再试

通过ID获取备份事件

GET /backup/events/{tid}/entries/{id}

网站请求取取一事件
URI系统

请求

下表显示请求页眉参数

名称 类型 描述性
接受 Acceptheadertype(必备)

下表显示URI参数请求

名称 类型 描述性
{tid} 字符串 指定租户日期
{id} 安珠里市 40a3-8f61-9791819cc82f

操作不接受请求体

消息样本

下示例显示 XML和JSON消息
消息类型

带宽事件消息 v1

指针云备份带宽使用信息
版本1

下表描述事件消息属性

属性名称 描述性 类型 可选性
带宽插入 指定带宽量,以字节表示 无签名Long 需求化
服务器ID 指定代理安装服务器标识 intUUID 需求化

XML样本


         
         
          
           urn:uuid:8d89673c-c989-11e1-895a-0b3d632a8a89
          
          
          
          
          
          
          
          
           
            
           
          
          
          
           2013-02-28T19:28:57.758Z
          
          
           2013-02-28T19:28:57.758Z
          
         

JSON样本

华体会联盟hth{    "entry": {       "@type": "http:\/\/www.w3.org\/2005\/Atom",       "category": [          {             "term": "tid:1234"          },          {             "term": "rgn:DFW"          },          {             "term": "dc:DFW1"          },          {             "term": "rid:3863d42a-ec9a-11e1-8e12-df8baa3ca440"          },          {             "term": "cloudbackup.bandwidthIn.agent.usage"          },          {             "term": "type:cloudbackup.bandwidthIn.agent.usage"          }       ],       "content": {          "event": {             "@type": "http:\/\/docs.rackspace.com\/core\/event",             "dataCenter": "DFW1",             "endTime": "2012-06-15T10:19:52Z",             "environment": "PROD",             "id": "8d89673c-c989-11e1-895a-0b3d632a8a89",             "product": {                "@type": "http:\/\/docs.rackspace.com\/usage\/cloudbackup\/bandwidthIn",                "bandwidthIn": 192998,                "resourceType": "AGENT",                "serverID": "944576fa-ec99-11e1-bb8e-ebb21b47fa86",                "serviceCode": "CloudBackup",                "version": "1"             },             "region": "DFW",             "resourceId": "3863d42a-ec9a-11e1-8e12-df8baa3ca440",             "startTime": "2012-06-14T10:19:52Z",             "tenantId": "1234",             "type": "USAGE",             "version": "1"          }       },       "id": "urn:uuid:8d89673c-c989-11e1-895a-0b3d632a8a89",       "link": [          {             "href": "https:\/\/ord.feeds.api.rackspacecloud.com\/backup\/events\/entries\/urn:uuid:8d89673c-c989-11e1-895a-0b3d632a8a89",             "rel": "self"          }       ],       "published": "2013-02-28T19:28:57.758Z",       "updated": "2013-02-28T19:28:57.758Z"    } }

外部带宽使用消息v

指定流云备份带宽使用信息
版本1

下表描述事件消息属性

属性名称 描述性 类型 可选性
带宽输出 指定外带宽量,以字节表示 无签名Long 需求化
服务器ID 指定代理安装服务器标识 intUUID 需求化

XML样本


         
         
          
           urn:uuid:8d89673c-c989-11e1-895a-0b3d632a8a89
          
          
          
          
          
          
          
          
           
            
           
          
          
          
           2013-02-28T19:31:09.678Z
          
          
           2013-02-28T19:31:09.678Z
          
         

JSON样本

华体会联盟hth{    "entry": {       "@type": "http:\/\/www.w3.org\/2005\/Atom",       "category": [          {             "term": "tid:1234"          },          {             "term": "rgn:DFW"          },          {             "term": "dc:DFW1"          },          {             "term": "rid:3863d42a-ec9a-11e1-8e12-df8baa3ca440"          },          {             "term": "cloudbackup.bandwidthOut.agent.usage"          },          {             "term": "type:cloudbackup.bandwidthOut.agent.usage"          }       ],       "content": {          "event": {             "@type": "http:\/\/docs.rackspace.com\/core\/event",             "dataCenter": "DFW1",             "endTime": "2012-06-15T10:19:52Z",             "environment": "PROD",             "id": "8d89673c-c989-11e1-895a-0b3d632a8a89",             "product": {                "@type": "http:\/\/docs.rackspace.com\/usage\/cloudbackup\/bandwidthOut",                "bandwidthOut": 9887765,                "resourceType": "AGENT",                "serverID": "944576fa-ec99-11e1-bb8e-ebb21b47fa86",                "serviceCode": "CloudBackup",                "version": "1"             },             "region": "DFW",             "resourceId": "3863d42a-ec9a-11e1-8e12-df8baa3ca440",             "startTime": "2012-06-14T10:19:52Z",             "tenantId": "1234",             "type": "USAGE",             "version": "1"          }       },       "id": "urn:uuid:8d89673c-c989-11e1-895a-0b3d632a8a89",       "link": [          {             "href": "https:\/\/ord.feeds.api.rackspacecloud.com\/backup\/events\/entries\/urn:uuid:8d89673c-c989-11e1-895a-0b3d632a8a89",             "rel": "self"          }       ],       "published": "2013-02-28T19:31:09.678Z",       "updated": "2013-02-28T19:31:09.678Z"    } }

周期许可事件消息第一版

指定云备份周期许可事件第一版

下表描述事件消息属性

属性名称 描述性 类型 可选性
服务器ID 指定代理安装服务器标识 intUUID 需求化

XML样本


         
         
          
           urn:uuid:8d89673c-c989-11e1-895a-0b3d632aa890
          
          
          
          
          
          
          
          
           
            
           
          
          
          
           2013-02-28T19:33:10.075Z
          
          
           2013-02-28T19:33:10.075Z
          
         

JSON样本

华体会联盟hth{    "entry": {       "@type": "http:\/\/www.w3.org\/2005\/Atom",       "category": [          {             "term": "tid:1234"          },          {             "term": "rgn:DFW"          },          {             "term": "dc:DFW1"          },          {             "term": "rid:3863d42a-ec9a-11e1-8e12-df8baa3ca440"          },          {             "term": "cloudbackup.license.agent.usage"          },          {             "term": "type:cloudbackup.license.agent.usage"          }       ],       "content": {          "event": {             "@type": "http:\/\/docs.rackspace.com\/core\/event",             "dataCenter": "DFW1",             "endTime": "2012-06-15T10:19:52Z",             "environment": "PROD",             "id": "8d89673c-c989-11e1-895a-0b3d632aa890",             "product": {                "@type": "http:\/\/docs.rackspace.com\/usage\/cloudbackup\/license",                "resourceType": "AGENT",                "serverID": "9445",                "serviceCode": "CloudBackup",                "version": "1"             },             "region": "DFW",             "resourceId": "3863d42a-ec9a-11e1-8e12-df8baa3ca440",             "startTime": "2012-06-14T10:19:52Z",             "tenantId": "1234",             "type": "USAGE",             "version": "1"          }       },       "id": "urn:uuid:8d89673c-c989-11e1-895a-0b3d632aa890",       "link": [          {             "href": "https:\/\/ord.feeds.api.rackspacecloud.com\/backup\/events\/entries\/urn:uuid:8d89673c-c989-11e1-895a-0b3d632aa890",             "rel": "self"          }       ],       "published": "2013-02-28T19:33:10.075Z",       "updated": "2013-02-28T19:33:10.075Z"    } }

周期许可事件消息2版

指定云备份周期许可事件2版

下表描述事件消息属性

属性名称 描述性 类型 可选性
服务器ID 指定代理安装服务器标识 intUUID 可选性
服务器Name 指定服务器名称代理安装 字符串 需求化
外部 华体会联盟hth值设为真时,代理安装服务器为Rackspace外部 布林安 可选性

XML样本


         
         
          
           urn:uuid:8d89673c-c989-11e1-895a-0b3d632aa890
          
          
          
          
          
          
          
          
           
            
           
          
          
          
           2014-02-03T10:33:10.075Z
          
          
           2014-02-03T10:33:10.075Z
          
         

JSON样本

华体会联盟hth{    "entry": {       "@type": "http:\/\/www.w3.org\/2005\/Atom",       "category": [          {             "term": "tid:123456"          },          {             "term": "rgn:DFW"          },          {             "term": "dc:DFW1"          },          {             "term": "rid:3863d42a-ec9a-11e1-8e12-df8baa3ca440"          },          {             "term": "cloudbackup.license.agent.usage_snapshot"          },          {             "term": "type:cloudbackup.license.agent.usage_snapshot"          }       ],       "content": {          "event": {             "@type": "http:\/\/docs.rackspace.com\/core\/event",             "dataCenter": "DFW1",             "eventTime": "2014-01-24T10:19:52Z",             "id": "8d89673c-c989-22e1-895a-0b3d632a8a89",             "product": {                "@type": "http:\/\/docs.rackspace.com\/usage\/cloudbackup\/license",                "external": false,                "resourceType": "AGENT",                "serverID": "9445",                "serverName": "SomeServerName",                "serviceCode": "CloudBackup",                "version": "3"             },             "region": "DFW",             "resourceId": "3863d42a-ec9a-11e1-8e12-df8baa3ca440",             "tenantId": "123456",             "type": "USAGE_SNAPSHOT",             "version": "1"          }       },       "id": "urn:uuid:8d89673c-c989-11e1-895a-0b3d632aa890",       "link": [          {             "href": "https:\/\/ord.feeds.api.rackspacecloud.com\/backup\/events\/entries\/urn:uuid:8d89673c-c989-11e1-895a-0b3d632aa890",             "rel": "self"          }       ],       "published": "2014-02-03T10:33:10.075Z",       "updated": "2014-02-03T10:33:10.075Z"    } }

云备份文件存储事件消息 第一版

指定云文件存储

下表描述事件消息属性

属性名称 描述性 类型 可选性
存储器 指定云文件容器消耗的存储量 无签名Long 需求化
服务器ID 指定代理安装服务器标识 intUUID 需求化

XML样本


         
         
          
           urn:uuid:8d89673c-c989-11e1-895a-0b3d632a8a89
          
          
          
          
          
          
          
          
           
            
            
           
          
          
          
           2013-02-28T19:37:18.849Z
          
          
           2013-02-28T19:37:18.849Z
          
         

JSON样本

华体会联盟hth{    "entry": {       "@type": "http:\/\/www.w3.org\/2005\/Atom",       "category": [          {             "term": "tid:1234"          },          {             "term": "rgn:DFW"          },          {             "term": "dc:DFW1"          },          {             "term": "rid:3863d42a-ec9a-11e1-8e12-df8baa3ca440"          },          {             "term": "cloudbackup.storage.agent.usage"          },          {             "term": "type:cloudbackup.storage.agent.usage"          }       ],       "content": {          "event": {             "@type": "http:\/\/docs.rackspace.com\/core\/event",             "dataCenter": "DFW1",             "endTime": "2012-06-15T10:19:52Z",             "environment": "PROD",             "id": "8d89673c-c989-11e1-895a-0b3d632a8a89",             "product": {                "@type": "http:\/\/docs.rackspace.com\/usage\/cloudbackup\/storage",                "resourceType": "AGENT",                "serverID": "9445",                "serviceCode": "CloudBackup",                "storage": 99992827882,                "version": "1"             },             "region": "DFW",             "resourceId": "3863d42a-ec9a-11e1-8e12-df8baa3ca440",             "startTime": "2012-06-14T10:19:52Z",             "tenantId": "1234",             "type": "USAGE",             "version": "1"          }       },       "id": "urn:uuid:8d89673c-c989-11e1-895a-0b3d632a8a89",       "link": [          {             "href": "https:\/\/ord.feeds.api.rackspacecloud.com\/backup\/events\/entries\/urn:uuid:8d89673c-c989-11e1-895a-0b3d632a8a89",             "rel": "self"          }       ],       "published": "2013-02-28T19:37:18.849Z",       "updated": "2013-02-28T19:37:18.849Z"    } }

响应

下表显示可能的响应码
操作.

响应代码 名称 描述性
二百 请求成功完成
400 坏请求 请求缺失一个或多个元素或某些元素的值无效
401 未授权 验证失败或用户没有权限请求操作
429 率有限 太多请求等待重试
500 内部服务器错误 服务器遇到意外条件,无法满足请求
503 服务无可用 服务不可用 。稍后再试
Baidu
map