API Name | Description | Six-Segment Example of Resource |
SaveInstance | Saves the instance information of component | qcs::sls:${Region}:uin/:appname/${AppName}/stagename/${StageName} |
GetInstance | Gets the instance information of component | qcs::sls:${Region}:uin/:appname/${AppName}/stagename/${StageName} |
ListInstances | Gets the instance list information of component | qcs::sls:${Region}:uin/:appname/${AppName}/stagename/${StageName} |
RunComponent | Runs component instance | qcs::sls:${Region}:uin/:appname/${AppName}/stagename/${StageName} |
RunFinishComponent | Finishes running component instance | qcs::sls:${Region}:uin/:appname/${AppName}/stagename/${StageName} |
Parameter | Required | Description |
qcs | Yes | Tencent Cloud service abbreviation, which indicates a resource of Tencent Cloud. |
project_id | Yes | Project information description, which is only used to enable compatibility with legacy CAM logic. |
service_type | Yes | Product abbreviation, which is sls for Serverless Framework. |
region | Yes | |
account | No | Root account of resource owner, such as uin/164256472 . If it is empty, it indicates the root account of the CAM user who creates the policy. |
resource | Yes | Detailed resource information of each product, which is qcs::sls:${Region}:uin/:appname/${AppName}/stagename/${StageName} for Serverless Framework |
{"version": "2.0","statement": [{"action": ["sls:*"],"resource": "*","effect": "allow"}]}
{"version": "2.0","statement": [{"action": ["sls:Get*","sls:List*"],"resource": "*","effect": "allow"}]}
Was this page helpful?