Query Namespace

Last updated: 2020-06-05 21:42:44

    1. API Description

    This API (DescribeNamespace) is used to query all the created namespaces.

    Domain name: monitor.api.qcloud.com

    2. Input Parameters

    The following request parameter list only provides API request parameters. Common request parameters are also needed when the API is called. The Action field for this API is DescribeNamespace.

    Parameter Name Required Type Description
    None No None None

    3. Output Parameters

    Parameter Name Type Description
    code Int Error code, 0: Successful; other values: Failed. For more information, please see Error Codes
    message String Error message
    data Array Array for returning Namespace name

    4. Error Codes

    Error Code Error Description Error Message
    -503 Incorrect request parameter InvalidParameter
    -505 Parameter is missing InvalidParameter.MissingParameter
    -507 Limit has been exceeded OperationDenied.ExceedLimit
    -509 Incorrect dimension group InvalidParameter.DimensionGroupError
    -513 DB operation failed InternalError.DBoperationFail

    5. Example

    Input

     https://monitor.api.qcloud.com/v2/index.php?Action=DescribeNamespace
     &<Common request parameters>
    

    Output

    'code': 0,
    'message': ''
    'data': ["cvm","process"]
    }

    Indicate two existing Namespace with the names of cvm and process

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help