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":{"ApiParaForAuthToInstance":{"properties":{"api_id":{"description":"api编号","example":"47046fe7830c1be77cb0dc23bd86afa5","type":"string"},"app_id":{"description":"app编号","example":"908489209a320df61607355c57c82882","type":"string"},"apply_type":{"description":"申请类型","enum":["APPLY_TYPE_AUTHORIZE","APPLY_TYPE_API_CANCEL_AUTHORIZE","APPLY_TYPE_APP_CANCEL_AUTHORIZE","APPLY_TYPE_APPLY","APPLY_TYPE_RENEW"],"type":"string"},"instance_id":{"description":"集群编号","example":"APIG","type":"string"},"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":"21ca31c827b2417998a4eeae767a4eb7","info_version":"v1","method":"post","name":"AuthorizeActionApiToInstance","parameters":{},"paths":{"/v1/{project_id}/service/apis/authorize/action":{"post":{"description":"- API主动授权:  API审核人可发起,API主动授权成功后,在有效期内,APP即可访问该API。API授权包含授权和续约两部分功能。\n    * 授权:授权会给予APP在有效期内访问API的权利。\n    * 续约:续约会更新授权有效期,仅支持延长有效期,不能减少。\n- API解除授权:  API审核人可发起,解除API对APP的授权关系。解除授权后,APP将不再能够调用该API。API解除已授权的APP关系,需要为APP预留至少2天的准备时间。\n- APP解除授权:  APP所有者可发起,解除API对APP的授权关系。解除授权后,APP将不再能够调用该API。APP解除自己的授权关系,无需预留准备时间。\n- APP申请授权:  APP所有者可发起,APP申请API后,待API的审核人完成审核,APP即可访问该API。授权会给予APP在有效期内访问API的权利,需要API审核。\n- APP申请续约:  APP所有者可发起,续约会更新授权有效期,仅支持延长有效期,不能减少,需要API审核。\n> * 申请自己的API推荐采用API主动授权/续约,无需审核。\n> * 自己的应用推荐采用APP解除授权,无需预留准备时间。","operationId":"AuthorizeActionApiToInstance","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":"授权相关参数。","in":"body","name":"AuthorizeActionApiToInstanceRequestBody","required":true,"schema":{"$ref":"#/definitions/ApiParaForAuthToInstance"}}],"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"}