This topic describes asynchronous invocation configuration-related commands in the FC-API component.
Before you begin, make sure that the following operations are complete:
Query an asynchronous invocation configuration
Command syntax:
s cli fc-api getFunctionAsyncConfig --region <regionid> --access <accessname> --props <props> --serviceName <serviceName> --functionName <functionName> --qualifier <version or alias>
Parameters:
- --region string: the ID of the region where the resource is deployed.
- --access string: the alias of the key used.
- --props string: the properties of the component. For more information about the props parameter, see YAML syntax.
- --serviceName string: the name of the service.
- --functionName string: the name of the function.
- --qualifier string: the alias or version of the service.
Example:
s cli fc-api getFunctionAsyncConfig --serviceName mytest --functionName mytest --qualifier test
For information about the API operation for querying an asynchronous invocation configuration, see GetFunctionAsyncInvokeConfig.
Delete an asynchronous invocation configuration
Command syntax:
s cli fc-api deleteFunctionAsyncConfig --region <regionid> --access <accessname> --props <props> --serviceName <serviceName> --functionName <functionName> --qualifier <version or alias>
Parameters:
- --region string: the ID of the region where the resource is deployed.
- --access string: the alias of the key used.
- --props string: the properties of the component. For more information about the props parameter, see YAML syntax.
- --serviceName string: the name of the service.
- --functionName string: the name of the function.
- --qualifier string: the alias or version of the service.
Example:
s cli fc-api deleteFunctionAsyncConfig --serviceName mytest --functionName mytest --qualifier test
For information about the API operation for deleting an asynchronous invocation configuration, see DeleteFunctionAsyncInvokeConfig.