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":{"FuncAsyncDestinationConfig":{"description":"函数异步调用目标参数配置。","properties":{"on_failure":{"$ref":"#/definitions/FuncDestinationConfig","description":"当函数执行失败(系统错误或函数内部错误)时,函数计算将调用该配置对应的目标。"},"on_success":{"$ref":"#/definitions/FuncDestinationConfig","description":"当函数执行成功时,函数计算将调用该配置对应的目标。"}}},"FuncDestinationConfig":{"description":"函数通知目标参数配置。","properties":{"destination":{"description":"目标类型。\n\n- OBS:通知到OBS服务。\n- SMN:通知到SMN服务。\n- DIS:通知到DIS服务。\n- FunctionGraph: 通知到函数服务。","enum":["OBS","SMN","DIS","FunctionGraph"],"example":"OBS","type":"string"},"param":{"description":"通知目标服务对应参数,json字符串。\n\n- OBS:包含bucket桶,对象目录前缀prefix,对象默认expires过期时间[0~365]天,0默认不过期。\n- SMN:包含smn 主题topic_urn。\n- DIS:包含DIS 通道名stream_name。\n- FunctionGraph:包含func_urn,函数urn","example":"{\"bucket\":\"fgs-invoke\",\"prefix\":\"/function1/\",\"expires\":1}","type":"string"}}},"ListFunctionAsyncInvokeConfigResponseBody":{"description":"函数异步配置返回结构体。","properties":{"async_invoke_configs":{"description":"函数异步配置列表。","items":{"$ref":"#/definitions/ListFunctionAsyncInvokeConfigResult"},"type":"array"},"count":{"description":"列表总数。","example":60,"format":"int64","minimum":0,"type":"integer"},"page_info":{"$ref":"#/definitions/PageInfo"}},"required":["async_invoke_configs","count","page_info"]},"ListFunctionAsyncInvokeConfigResult":{"description":"函数异步配置返回结构体。","properties":{"created_time":{"description":"异步调用配置的创建时间。","example":"2021-03-04T14:50:02+08:00","type":"string"},"destination_config":{"$ref":"#/definitions/FuncAsyncDestinationConfig","description":"异步调用目标。"},"enable_async_status_log":{"description":"开启异步调用状态持久化","example":false,"type":"boolean"},"func_urn":{"description":"函数URN。","example":"urn:fss:{region}:5691ba790e2b46ceb38316xxxxxxxxxx:function:default:test_async:latest","maxLength":269,"minLength":1,"type":"string"},"last_modified":{"description":"异步调用配置的最后更改时间。","example":"2021-03-04T14:50:02+08:00","type":"string"},"max_async_event_age_in_seconds":{"description":"消息最大存活时长,取值范围[60,86400]。单位:秒。","example":60,"type":"integer"},"max_async_retry_attempts":{"description":"异步调用失败后的最大重试次数,默认值为3。取值范围[0,8]。","example":3,"type":"integer"}},"required":["destination_config","func_urn","max_async_event_age_in_seconds","max_async_retry_attempts"]},"PageInfo":{"properties":{"current_count":{"description":"当前页总数","example":2,"format":"int64","type":"integer"},"next_marker":{"description":"下一次读取位置","example":2,"format":"int64","type":"integer"},"previous_marker":{"description":"上一次读取位置","example":0,"format":"int64","type":"integer"}},"required":["current_count","next_marker","previous_marker"]}},"description":null,"group_id":"cb46b925a4eb40a192520da4fc33b990","host":"functiongraph.cn-north-4.myhuaweicloud.com","id":"6e62b143786944debd3baaed8be71d1d","info_version":"v2","method":"get","name":"ListFunctionAsyncInvokeConfig","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}/async-invoke-configs":{"get":{"description":"获取指定函数所有版本的异步配置列表。。","operationId":"ListFunctionAsyncInvokeConfig","parameters":[{"$ref":"#/parameters/project_id"},{"$ref":"#/parameters/function_urn"},{"default":"0","description":"上一次查询到的最后的记录位置。","in":"query","maxLength":64,"minLength":1,"name":"marker","required":false,"type":"string"},{"default":"10","description":"每页显示的条目数量。\n- 如果不提供该值或者提供的值等于0,则使用默认值:10,最大值100,大于100取值100。\n- 如果该值小于0,则返回参数错误。","in":"query","maxLength":64,"maximum":100,"minLength":1,"minimum":0,"name":"limit","required":false,"type":"string"},{"$ref":"#/parameters/X-Auth-Token"},{"$ref":"#/parameters/Content-Type"}],"responses":{"200":{"description":"Ok","examples":{"application/json":{"async_invoke_configs":[{"count":2,"created_time":"2021-03-04T14:50:02+08:00","destination_config":{"on_failure":{"destination":"FunctionGraph","param":"{\"func_urn\":\"urn:fss:{region}:5691ba790e2b46ceb38316xxxxxxxxxx:function:default:testPython:latest\"}"},"on_success":{"destination":"FunctionGraph","param":"{\"func_urn\":\"urn:fss:{region}:5691ba790e2b46ceb38316xxxxxxxxxx:function:default:testPython:latest\"}"}},"func_urn":"urn:fss:{region}:5691ba790e2b46ceb38316xxxxxxxxxx:function:default:test_async:latest","last_modified":"2021-03-04T14:50:02+08:00","max_async_event_age_in_seconds":60,"max_async_retry_attempts":1,"page_info":{"current_count":2,"next_marker":2,"previous_marker":0}}]}},"schema":{"$ref":"#/definitions/ListFunctionAsyncInvokeConfigResponseBody"}}},"summary":"获取函数异步配置列表","tags":["函数异步配置"],"x-produc-type":"functiongraph","x-request-examples-description-1":"获取函数异步配置列表。","x-request-examples-url-1":"GET /v2/{project_id}/fgs/functions/{function_urn}/async-invoke-configs","x-support-sdk":"Y"}}},"product_short":"FunctionGraph","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"获取函数异步配置列表","tags":"函数异步配置","uri":null,"version":"2.0"}