Modify service

Last updated: 2020-02-21 16:15:42

    Interface description

    This API (ModifyService) is used to modify service-related information. After the service is created, the name, description, and service type of the service can be modified.

    Input Parameter

    The following request parameter list only lists the API request parameters. For other parameters, please see Common Request Parameters .

    Parameter name Required Type Description
    ServiceId Yes String Unique Id of the service to be modified
    ServiceName No String Modified service name
    ServiceDesc No String Modified service description
    Protocol No String Modified service frontend request type, such as HTTP and HTTPS

    Output Parameter

    Parameter name Type Description
    Code Int Common error code, 0 indicates success, other values indicate failure. For more information, please see the error code page Common error code
    CodeDesc String Error code on the business side. Return the specific cause of the business error when a Success, error is returned on success.
    Message String Module error message description, related to interface
    ServiceId String Service unique Id
    ServiceName String Service Name
    ServiceDesc String Service description
    Protocol String The front-end request type of the service, such as HTTP and HTTPS
    ModifiedTime Timestamp Last Modification Time. Expressed according to the ISO8601 standard, and using UTC time. Format: YYYY-MM-DDThh:mm:ssZ

    Example

    https://apigateway.api.qcloud.com/v2/index.php?
    &<Common request parameters>
    &Action=ModifyService
    $serviceId=service-XXXX
    &serviceName=newTest
    &serviceDesc=newTestDescription
    &protocol=https

    The returned results are as below:

    {
        "code": "0",
        "message": "",
        "codeDesc": "Success",
        "serviceId": "service-XXXX",
        "serviceName": "newTest",
        "serviceDesc": "newTestDescription",
        "protocol": "https",
        "modifiedTime": "2017-08-07T00:00:00Z"
    }

    Was this page helpful?

    Was this page helpful?

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