huawei-cloud-api-definitions-DataArtsStudio 0.1.20250411

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"ApiParaForAuthorizeToInstance":{"properties":{"app_ids":{"description":"app编号列表","example":["908489209a320df61607355c57c82882"],"items":{"type":"string"},"type":"array"},"time":{"description":"截止时间","example":"2021-01-01T10:00:00.000Z","type":"string"}},"type":"object"},"ErrorResponse":{"properties":{"error_code":{"description":"错误码","example":"DLS.1000","maxLength":128,"minLength":1,"type":"string"},"error_msg":{"description":"错误描述","example":"process failed","maxLength":10240,"minLength":1,"type":"string"}},"type":"object"}},"description":null,"group_id":"23bb69798aaf409da161a43a90617121","host":"dayu.cn-north-4.myhuaweicloud.com","id":"053c0077415246878980a08544232a5d","info_version":"v1","method":"post","name":"AuthorizeApiToInstance","parameters":{},"paths":{"/v1/{project_id}/service/apis/{api_id}/instances/{instance_id}/authorize":{"post":{"description":"APP创建成功后,还不能访问API,如果想要访问某个API,需要将该API授权给APP。API主动授权成功后,在有效期内,APP即可访问该API。  \nAPI授权包含授权和续约两部分功能。  \n- 授权:授权会给予APP在有效期内访问API的权利。\n- 续约:续约会更新授权有效期,仅支持延长有效期,不能减少。","operationId":"AuthorizeApiToInstance","parameters":[{"description":"用户Token,使用[Token认证](dataartsstudio_02_0010.xml)时必选。通过调用“获取用户Token”接口获取响应消息头中X-Subject-Token的值。","in":"header","name":"X-Auth-Token","required":true,"type":"string"},{"description":"工作空间ID,获取方法请参见[实例ID和工作空间ID](dataartsstudio_02_0350.xml)。","in":"header","name":"workspace","required":true,"type":"string"},{"description":"数据服务的版本类型,指定SHARED共享版或EXCLUSIVE专享版。","enum":["SHARED","EXCLUSIVE"],"in":"header","name":"Dlm-Type","required":false,"type":"string"},{"default":"application/json","description":"消息体的类型(格式),有Body体的情况下必选,没有Body体无需填写。如果请求消息体中含有中文字符,则需要通过charset=utf8指定中文字符集,例如取值为:application/json;charset=utf8。","in":"header","name":"Content-Type","required":true,"type":"string"},{"description":"项目ID,获取方法请参见[项目ID和账号ID](projectid_accountid.xml)。","in":"path","name":"project_id","required":true,"type":"string"},{"description":"api编号。","in":"path","name":"api_id","required":true,"type":"string"},{"description":"集群编号。","in":"path","name":"instance_id","required":true,"type":"string"},{"description":"授权相关参数。","in":"body","name":"AuthorizeApiToInstanceRequestBody","required":true,"schema":{"$ref":"#/definitions/ApiParaForAuthorizeToInstance"}}],"produces":["application/json"],"responses":{"204":{"description":"操作API成功。"},"400":{"description":"BadRequest。","schema":{"$ref":"#/definitions/ErrorResponse"}}},"summary":"批量授权API(专享版)","tags":["API管理接口"],"x-api-type":"dataservice-openapi","x-is-registered":"Y","x-support-sdk":"Y"}}},"product_short":"DataArtsStudio","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"批量授权API(专享版)","tags":"API管理接口","uri":null,"version":"2.0"}