All Products
Search
Document Center

Simple Log Service:list_project

Last Updated:Oct 26, 2023

Queries all projects.

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 does not require specific parameters. For information about the global parameters of the Simple Log Service command-line interface (CLI), see Global parameters.

Examples

  • Sample requests

    Query all the projects in the region to which the default account belongs.

    aliyunlog log list_project
  • Sample responses

    {
      "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 an error message is returned, fix the error based on the error codes of the related API operation. For more information, see Error codes of ListProject.

API reference

ListProject