list_project
Updated at:
Lists all projects under the current account.
Request syntax
aliyunlog log list_project [--offset=<value>] [--size=<value>] [--access-id=<value>] [--access-key=<value>] [--sts-token=<value>] [--region-endpoint=<value>] [--client-name=<value>] [--jmes-filter=<value>] [--format-output=<value>] [--decode-output=<value>]
Request parameters
The list_project command has no command-specific parameters. For the global parameters supported by the Simple Log Service command-line interface (CLI), see Global parameters.
Examples
-
Sample request
List all projects in the region of the default account.
aliyunlog log list_project -
Sample response
{ "count": 2, "projects": [ { "createTime": "1614075057", "description": "", "lastModifyTime": "1614075057", "owner": "", "projectName": "datalab-174649******745-cn-hangzhou", "region": "cn-hangzhou", "status": "Disable" }, { "createTime": "1621930740", "description": "create project from cli", "lastModifyTime": "1621930740", "owner": "", "projectName": "project-ba", "region": "cn-hangzhou", "status": "Disable" } ], "total": 2 }
Error codes
If the command returns an error, resolve it based on the error codes for the related API operation. For more information, see Error codes.
API reference
Is this page helpful?