更新时间:2021-12-17 GMT+08:00
分享

获取租户下桶列表

功能介绍

查询租户下桶列表。

URI

  • URI格式
    GET /softcomai/datalake/dataplan/v1.0/obs/getbuckets
  • 参数说明

    无。

请求

  • 请求样例
    GET https://ipaddr:port/softcomai/datalake/dataplan/v1.0/obs/getbuckets
  • 参数说明

    无。

响应

  • 响应样例
    {
        "success": true,
        "errorMsg": null,
        "errorCode": null,
        "returnData": [
            {
                "storage_type": "STANDARD",
                "endpoint": "obs.cn-north-7.ulanqab.huawei.com",
                "create_time": "2019-09-24 14:40:06",
                "bucket_type": "private",
                "bucket_url": "#/obs/bucket-19nd0481/list",
                "bucket_name": "bucket-19nd0481",
                "region": "cn-north-7"
            },
            {
                "storage_type": "STANDARD",
                "endpoint": "obs.cn-north-7.ulanqab.huawei.com",
                "create_time": "2019-12-20 16:11:01",
                "bucket_type": "private",
                "bucket_url": "#/obs/bucket-px4ghgss/list",
                "bucket_name": "bucket-px4ghgss",
                "region": "cn-north-7"
            },
            {
                "storage_type": "STANDARD",
                "endpoint": "obs.cn-north-7.ulanqab.huawei.com",
                "create_time": "2019-12-20 16:05:57",
                "bucket_type": "private",
                "bucket_url": "#/obs/bucket-fvoeat6z/list",
                "bucket_name": "bucket-fvoeat6z",
                "region": "cn-north-7"
            },
            {
                "storage_type": "STANDARD",
                "endpoint": "obs.cn-north-7.ulanqab.huawei.com",
                "create_time": "2019-08-13 09:45:13",
                "bucket_type": "public",
                "bucket_url": "#/obs/bucket-hvnngyjf/list",
                "bucket_name": "bucket-hvnngyjf",
                "region": "cn-north-7"
            }
        ]
    }
  • 要素说明

    参数名

    参数类型

    备注

    success

    String

    请求是否成功,取值包括true和false。

    returnData

    Json

    返回对象。

    bucket_name

    String

    桶名称。

    bucket_type

    String

    桶类型。

状态码

具体请参考状态码

相关文档