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.


  • Sample requests
    /? ClusterId=C-F32FB31D82954C64
    &Service. 1 ServiceName=HDFS
    &<Common request parameters>
  • Successful response examples
    JSON format
  • Error response examples
    JSON format
        "message":"It is not allow to execute this operation,please use RAM to authorize!",

Error codes

View error codes.