huawei-cloud-api-definitions-COC 0.1.20251024

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"ReviewerInfo":{"description":"审批人信息","properties":{"reviewer_id":{"description":"审批人ID(IAM用户Id)","example":"e99a6f27cfe7497084ac9c07bfa573d7","maxLength":32,"minLength":0,"type":"string"},"reviewer_name":{"description":"审批人名称(IAM用户名)","example":"test","maxLength":64,"minLength":1,"type":"string"}},"required":["reviewer_id","reviewer_name"],"type":"object"},"ScriptDetailModel":{"description":"脚本详情","properties":{"content":{"description":"脚本内容","example":"echo \"aaa\"","maxLength":4096,"minLength":1,"type":"string"},"creator":{"description":"创建人","example":"testUser","maxLength":64,"minLength":1,"type":"string"},"creator_id":{"description":"创建人Id","example":"9fec03ee5b1040818b91bef6e16213dd","maxLength":32,"minLength":1,"type":"string"},"description":{"description":"脚本描述","example":"测试echo","maxLength":256,"minLength":1,"type":"string"},"enterprise_project_id":{"description":"企业项目id","example":"0","type":"string"},"gmt_created":{"description":"创建时间","example":1686059454716,"format":"int64","maximum":9223372036854775807,"minimum":1,"type":"integer"},"gmt_modified":{"description":"修改时间","example":1686059454716,"format":"int64","maximum":9223372036854775807,"minimum":1,"type":"integer"},"name":{"description":"脚本名称","example":"testEcho","maxLength":64,"minLength":1,"type":"string"},"operator":{"description":"修改人","example":"operator","maxLength":32,"minLength":1,"type":"string"},"properties":{"$ref":"#/definitions/ScriptPropertiesModel","description":"脚本标签:风险等级risk_level(取值范围:LOW/MEDIUM/HIGH)、审批人reviewer、脚本解释器interpreter等"},"script_params":{"description":"脚本入参","items":{"$ref":"#/definitions/ScriptParamDefine"},"maxItems":20,"minItems":0,"type":"array"},"script_uuid":{"description":"脚本uuid","example":"SC2023083111030804153ddb7","maxLength":25,"minLength":1,"type":"string"},"status":{"description":"脚本状态\nPENDING_APPROVE:待审批\nAPPROVED:正常(审批通过)\nREJECTED:驳回(审批人,驳回该脚本)","enum":["PENDING_APPROVE","APPROVED","REJECTED"],"example":"APPROVED","type":"string"},"type":{"description":"脚本类型\nSHELL:shell脚本,\nPYTHON:Python脚本,\nBAT:Bat脚本,","enum":["SHELL","PYTHON","BAT"],"example":"SHELL","type":"string"},"version":{"description":"脚本版本号\n约束条件 \n后期废除,不建议使用","example":"v1.0.1","maxLength":16,"minLength":1,"type":"string"}},"required":["content","creator","creator_id","description","gmt_created","name","properties","script_uuid","status","type"],"type":"object"},"ScriptParamDefine":{"description":"顺序参数,没有参数名字段\n参数顺序,从1开始,不连续会报错\n\napi层用不同的vo对象接收,管理面没有order字段。service层统一处理差异\n\n拼接:sh xxx.sh  'aaa' 'a' 'b'\n执行时值为空:sh xxx.sh  '' 'a' 'b'","properties":{"param_description":{"description":"参数描述","example":"测试参数","maxLength":256,"minLength":0,"type":"string"},"param_name":{"description":"参数名仅支持字母、数字以及下划线","example":"value","maxLength":64,"minLength":1,"type":"string"},"param_order":{"description":"该参数已废弃,传入该参数不会生效。","format":"int32","type":"integer"},"param_value":{"description":"1.参数长度为1-4096位\n2.可以包含大写字母、小写字母、数字及特殊字符(_-/.* ?:\",=+@#\\[{]})\n3.禁止出现连续'.'","example":"test","maxLength":4096,"minLength":0,"type":"string"},"sensitive":{"description":"是否是敏感参数","example":false,"type":"boolean"}},"required":["param_description","param_name","param_value","param_order","sensitive"],"type":"object"},"ScriptPropertiesModel":{"description":"脚本标签:风险等级risk_level(取值范围:LOW/MEDIUM/HIGH)、审批人reviewer、脚本解释器interpreter等","properties":{"protocol":{"description":"审批消息通知协议,用于通知审批人\nDEFAULT:默认\nSMS:短信\nEMAIL:邮件\nDING_TALK:钉钉\nWE_LINK:welink\nWECHAT:微信\nCALLNOTIFY:语言\nNOT_TO_NOTIFY:不通知","enum":["DEFAULT","SMS","EMAIL","DING_TALK","WE_LINK","WECHAT","CALLNOTIFY","NOT_TO_NOTIFY"],"example":"WECHAT","type":"string","x-internal":false},"reviewers":{"description":"审批人,不填写不需要审批","items":{"$ref":"#/definitions/ReviewerInfo"},"maxItems":5,"minItems":0,"type":"array","x-internal":"false"},"risk_level":{"description":"风险等级\nLOW:低风险\nMEDIUM:中风险\nHIGH:高风险","enum":["LOW","MEDIUM","HIGH"],"example":"LOW","type":"string"},"version":{"description":"脚本版本号","example":"v1.0.0","maxLength":10,"minLength":1,"type":"string"}},"required":["risk_level","version"],"type":"object"},"ShowScriptDetailRes":{"description":"查看自定义脚本详情的返回体","properties":{"data":{"$ref":"#/definitions/ScriptDetailModel","description":"自定义脚本的详细数据"}},"required":["data"],"type":"object"}},"description":null,"group_id":"82af75d8fb894fc2b06ca4175859ba53","host":"coc.myhuaweicloud.com","id":"100b21dff28d4c1695443c68998b0823","info_version":"v1","method":"get","name":"GetScript","parameters":{},"paths":{"/v1/job/scripts/{script_uuid}":{"get":{"description":"获取脚本详情\n约束条件:\n只能查询自定义脚本详情","operationId":"GetScript","parameters":[{"description":"脚本UUID","in":"path","name":"script_uuid","required":true,"type":"string"},{"description":"租户token","in":"header","name":"X-Auth-Token","required":true,"type":"string"},{"description":"国际化标记,zh-cn表示中文,en-us或不传表示英文","in":"header","name":"X-Language","required":false,"type":"string"},{"description":"项目ID,一个项目对应一个region","in":"header","name":"x-project-id","required":false,"type":"string"},{"description":"IAM5.0用户信息","in":"header","name":"x-user-profile","required":false,"type":"string"}],"responses":{"200":{"description":"脚本详情","schema":{"$ref":"#/definitions/ShowScriptDetailRes"}}},"summary":"获取自定义脚本详情","tags":["ScriptManagement"],"x-api-type":"open-api","x-apiexplorer-hide":false,"x-is-registered":"Y","x-order":5,"x-support-sdk":"Y"}}},"product_short":"COC","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"获取自定义脚本详情","tags":"ScriptManagement","uri":null,"version":"2.0"}