You can call this operation to add a service for a specified cluster.

Request parameters

Name Type Required Example Description
ClusterId String Yes C-D7958B72E59BAB88 The cluster ID.
RegionId String Yes cn-hangzhou The region location ID.
AccessKeyId String No LTAI8ljWyu7yj9yG The AccessKey ID.
Comment String No addService The comment of the service adding.
Service.N.ServiceName String Yes HDFS The service to add. Sample values: HDFS and YARN.

Response parameters

Name Type Example Description
RequestId String EBB4D49C-4064-4818-B3AE-4C6BE5FC8264 The request ID.

Examples

  • Sample requests
    /? ClusterId=C-F32FB31D82954C64
    &RegionId=cn-hangzhou 
    &AccessKeyId=xxx 
    &Comment=addService
    &Service. 1 ServiceName=HDFS
    &<Common request parameters>
  • Successful response examples
    JSON format
    {
        "requestId":"EBB4D49C-4064-4818-B3AE-4C6BE5FC8264"
    }
  • Error response examples
    JSON format
    {
        "code":"RAM.Permission.NotAllow",
        "message":"It is not allow to execute this operation,please use RAM to authorize!",
        "requestId":"9AEDC439-1F63-491D-B8C6-9737C372BF3A",
        "successResponse":false
    }

Error codes

View error codes.