Query the Existence of a Namespace

Last updated: 2020-06-04 17:26:19

    Note:

    This is a legacy API which has been hidden and will no longer be updated. We recommend using the new TKE API 3.0 which is standardized and faster.

    API Description

    This API (NamespaceIsExists) queries the existence of the specified namespace.
    API domain name:

    ccr.api.qcloud.com

    Input Parameters

    The following parameters are action-specific. For common parameters required for all API requests, see Common Request Parameters.

    Parameter Name Description Type Required
    namespace Namespace to be queried String No

    Output Parameters

    Parameter Name Description Type
    code Common error code. 0: Successful; other values: Failed. Int
    codeDesc Description of the action status. When the action has succeeded, "Success" is returned. When the action has failed, a message describing the cause of the error is returned. String
    message Description of the Module error related to this API String
    isExist true: The namespace exists; false: The namespace does not exist String
    isPreserved true: The namespace is reserved; false: The namespace is not reserved Object Array

    Samples

    Input

      https://domain/v2/index.php?Action=NamespaceIsExists
      &namespace=mynamespace
      &other common parameters

    Output

    {
        "code": 0,
        "message": "", 
        "codeDesc": "Success",
        "data": {
            "isExist": false,
            "isPreserved": false
        }
    }

    Was this page helpful?

    Was this page helpful?

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