huawei-cloud-api-definitions-FunctionGraph 0.1.20250124

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":null,"components":null,"consumes":"[\"application/json\"]","definitions":{"CreateEventRequestBody":{"properties":{"content":{"description":"测试事件content,为json字符串的base64编码","example":"eyJrIjoidiJ9","type":"string"},"name":{"description":"测试事件名称。只能由字母、数字、中划线和下划线组成,且必须以大写或小写字母开头","example":"event-xx","pattern":"$[a-zA-Z][a-zA-Z0-9-_]*","type":"string"}},"required":["content","name"]},"CreateEventResponseBody":{"description":"创建测试事件响应返回体。","properties":{"id":{"description":"测试事件ID。","example":"b6ef601f-47c1-4ccd-a3a5-0b5913f539c9","type":"string"},"name":{"description":"测试事件名称。","example":"event-u0cr","type":"string"}}},"ErrorResp":{"properties":{"error_code":{"description":"错误码","type":"string"},"error_msg":{"description":"错误信息","type":"string"}}}},"description":null,"group_id":"cb46b925a4eb40a192520da4fc33b990","host":"functiongraph.cn-north-4.myhuaweicloud.com","id":"5017cac54f47491cbded7352604f2bae","info_version":"v2","method":"post","name":"CreateEvent","parameters":{"Content-Type":{"default":"application/json","description":"消息体的类型(格式)","in":"header","name":"Content-Type","required":true,"type":"string","x-example":"application/json"},"X-Auth-Token":{"description":"用户Token。\n\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","name":"X-Auth-Token","required":true,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXX..."},"function_urn":{"description":"函数的URN,详细解释见FunctionGraph函数模型的描述。","in":"path","name":"function_urn","required":true,"type":"string","x-example":"urn:fss:{region}:46b6f338fc3445b8846c71dfb1fbxxxx:function:csharp:test2-0:latest"},"project_id":{"description":"租户项目 ID,获取方式请参见[获取项目ID](functiongraph_06_0260.xml)。","in":"path","name":"project_id","required":true,"type":"string","x-example":"46b6f338fc3445b8846c71dfb1fbd9e8"}},"paths":{"/v2/{project_id}/fgs/functions/{function_urn}/events":{"post":{"description":"创建测试事件","operationId":"CreateEvent","parameters":[{"$ref":"#/parameters/project_id"},{"$ref":"#/parameters/function_urn"},{"$ref":"#/parameters/X-Auth-Token"},{"$ref":"#/parameters/Content-Type"},{"description":"创建测试事件请求体","in":"body","name":"CreateEventRequestBody","required":true,"schema":{"$ref":"#/definitions/CreateEventRequestBody"}}],"responses":{"200":{"description":"OK","examples":{"application/json":{"id":"3b659dc0-12fc-40dc-aa05-a321d9424cb3","name":"event-k9r3"}},"schema":{"$ref":"#/definitions/CreateEventResponseBody"}},"400":{"description":"Bad Request 请求错误。","schema":{"$ref":"#/definitions/ErrorResp"}},"401":{"description":"Unauthorized 鉴权失败。","schema":{"$ref":"#/definitions/ErrorResp"}},"403":{"description":"Forbidden 没有操作权限。","schema":{"$ref":"#/definitions/ErrorResp"}},"404":{"description":"Not Found 找不到资源。","schema":{"$ref":"#/definitions/ErrorResp"}},"500":{"description":"Internal Server Error 服务内部错误。","schema":{"$ref":"#/definitions/ErrorResp"}}},"summary":"创建测试事件","tags":["函数测试事件"],"x-produc-type":"functiongraph","x-request-examples-1":{"content":"eyJrIjoidiJ9","name":"event-xx"},"x-request-examples-description-1":"创建名为event-xx,内容为{\"k\":\"v\"}的测试事件。","x-request-examples-url-1":"POST https://{Endpoint}/v2/{project_id}/fgs/functions/{function_urn}/events","x-support-sdk":"Y"}}},"product_short":"FunctionGraph","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"创建测试事件","tags":"函数测试事件","uri":null,"version":"2.0"}