{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"ApiActionDTO":{"properties":{"action":{"description":"操作类型","enum":["UNPUBLISH","STOP","RECOVER"],"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":"c08b50d766ea44da92c7d1dddbc8af70","info_version":"v1","method":"post","name":"ExecuteApiToInstance","parameters":{},"paths":{"/v1/{project_id}/service/apis/{api_id}/instances/{instance_id}/action":{"post":{"description":"- 下线API。将已发布的API下线。下线后,所有授权关系都会被解除,API将无法再被调用。\n- 停用API。将已发布的API临时下线。下线后,授权关系会保留,停用期间API将无法再被调用。\n- 恢复API。将已停用的API恢复使用。恢复后, API重新提供调用。\n> * 恢复请求的发起者若非审核人,需要API的审核人完成申请的审核。\n> * 下线/停用请求的发起者,必须为API的审核人。\n> * 下线/停用功能需要为已授权的应用预留充分的准备时间,需至少提前2天发起请求。若需要立即执行下线/停用,需要发起请求后,无有效的授权应用或是有效的授权应用均处理完消息(立即执行,或定期后完成执行)。","operationId":"ExecuteApiToInstance","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":"api操作参数。","in":"body","name":"ExecuteApiToInstanceRequestBody","required":true,"schema":{"$ref":"#/definitions/ApiActionDTO"}}],"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"}