更新时间:2022-05-07 GMT+08:00
分享

订购数据集服务

功能介绍

外部用户在NAIE平台上订购数据集服务。

URI

  • URI格式
    POST /softcomai/datalake/v1.0/external/datacatalog/order
  • 参数说明

    无。

请求

  • 请求样例
    POST https://ipaddr:port/softcomai/datalake/v1.0/datacatalog/order
    {
    	"user" : {
    		"id" : "telclommmd",
    		"type" : "test",
    		"appId" : "AI"
    	},
    	"resources_infos" : [{
    			"order_id" : "orderId-la4g45t8",
    			"resources" : [{
    					"type" : "OBS",
    					"attributes" : {
    						"storage_type" : "STANDARD",
    						"endpoint" : "obs.cn-north-4.myhuaweicloud.com",
    						"create_time" : "2018-11-20 11:02:25",
    						"bucket_type" : "private",
    						"bucket_url" : "#/obs/bucket-ptye9xuk/list",
    						"bucket_name" : "bucket-ptye9xuk",
    						"region" : "southchina"
    					}
    				}
    			]
    		}
    	],
    	"additionInfo" : {
    		"products" : [{
    				"code" : "11",
    				"regionId" : "southchina",
    				"azId" : "az-1",
    				"chargingMode" : "1",
    				"perioType" : "2",
    				"periodNumber" : "3",
    				"subscriptionNumber" : "4",
    				"attributes" : {
    					"hdfs测试数据模型" : 1
    				}
    			}
    		]
    	}
    }
  • 参数说明

    参数名

    是否必选

    参数类型

    备注

    user

    JSON

    用户信息,暂时不用,按照模板填写。

    resources_infos

    JSON

    资源信息。

    additionInfo

    JSON

    附加信息,描述订购内容。

响应

  • 成功响应样例
    HttpStatus:200
  • 失败响应样例
    HttpStatus:500
  • 要素说明

    参数名

    参数类型

    备注

    HttpStatus

    String

    请求是否成功。

状态码

具体请参考状态码

分享:

    相关文档

    相关产品