Renaming Projects

Last updated: 2020-06-04 18:30:00


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

    1. API Description

    This API (ModifyMongoDBProject) is used to modify the project to which an instance belongs.
    API domain name:

    2. Input Parameters

    Below is a list of API request parameters. You need to add common request parameters to your request when calling this API. For more information, see Common Request Parameters. The Action field of this API is ModifyMongoDBProject.

    Parameter Name Required Type Description
    instanceIds.n No String One or more instance IDs. n represents an array subscript starting from 0. Instance ID can be obtained from the instanceId field in the return value of the DescribeMongoDBInstances API.
    projectId Yes Int Project ID. The value is subject to the projectId returned by User Account > User Account API Query > Project List

    3. Output Parameters

    Parameter Name Type Description
    code Int Common error code. 0: success; other values: failure. For more information, see Common Error Codes.
    message String Error message. A null value indicates a success
    codeDesc String 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.

    4. Error Codes

    The following lists the error codes related to this API.

    Error Code Error Message Error Description
    11050 InvalidParameter Invalid service parameter.
    11056 InstanceNotExists No corresponding instance was found.
    11057 InstanceBeenLocked Unable to execute operation because the instance is locked by another process
    10702 InstanceStatusAbnormal Unable to execute operation due to an abnormal instance status. For example, the instance’s status is "in process" or "isolated" or "deleted"

    5. Samples
        &<Common request parameter>

    Below is a sample return:

        "code": 0,
        "message": "",
        "codeDesc": "Success"

    Was this page helpful?

    Was this page helpful?

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