You can call this operation to query the links of services that are used in an E-MapReduce (EMR) cluster.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description 
Action String Yes ListClusterServiceQuickLink

The operation that you want to perform. Set the value to ListClusterServiceQuickLink.

ClusterId String Yes C-4DBD656F20CE****

The ID of the cluster.

RegionId String Yes cn-hangzhou

The ID of the region where your cluster resides.

AccessKeyId String No LTAI8ljWyu7y****

The AccessKey ID provided to you by Alibaba Cloud, which specifies the ID of the user.

ServiceName String No SPARK

The name of the service.

Response parameters

Parameter Type Example Description 
QuickLinkList

The list of links.

QuickLink

The information of a link.

Port String 8888

The port number of the cluster endpoint.

Protocol String https

The connection protocol.

QuickLinkAddress String knox.C-4DBD656F20CEAE0B.cn-hangzhou.emr.aliyuncs.com:8888

The URL of the service.

ServiceDisplayName String Hue

The display name of the service.

ServiceName String HUE

The name of the service.

Type String KNOX

The type of the service.

RequestId String BF4FBAC6-B03E-4BFB-B6DB-EB53C34F2E22

The ID of the request.

Examples

Sample requests


http(s)://[Endpoint]/? Action=ListClusterServiceQuickLink
&ClusterId=C-4DBD656F20CE****
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<ListClusterServiceQuickLinkResponse>
	  <quickLinkList>
		    <port>8443</port>
		    <protocol>https</protocol>
		    <quickLinkAddress>knox.C-4DBD656F20CE****.cn-hangzhou.emr.aliyuncs.com:8443/gateway/cluster-topo/hdfs/</quickLinkAddress>
		    <serviceDisplayName>HDFS</serviceDisplayName>
		    <serviceName>HDFS</serviceName>
		    <type>KNOX</type>
	  </quickLinkList>
	  <quickLinkList>
		    <port>8443</port>
		    <protocol>https</protocol>
		    <quickLinkAddress>knox.C-4DBD656F20CE****.cn-hangzhou.emr.aliyuncs.com:8443/gateway/cluster-topo/yarn/</quickLinkAddress>
		    <serviceDisplayName>YARN</serviceDisplayName>
		    <serviceName>YARN</serviceName>
		    <type>KNOX</type>
	  </quickLinkList>
	  <quickLinkList>
		    <port>8443</port>
		    <protocol>https</protocol>
		    <quickLinkAddress>knox.C-4DBD656F20CE****.cn-hangzhou.emr.aliyuncs.com:8443/gateway/cluster-topo/sparkhistory/</quickLinkAddress>
		    <serviceDisplayName>Spark</serviceDisplayName>
		    <serviceName>SPARK</serviceName>
		    <type>KNOX</type>
	  </quickLinkList>
	  <quickLinkList>
		    <port>8888</port>
		    <protocol>http</protocol>
		    <quickLinkAddress>knox.C-4DBD656F20CE****.cn-hangzhou.emr.aliyuncs.com:8888</quickLinkAddress>
		    <serviceDisplayName>Hue</serviceDisplayName>
		    <serviceName>HUE</serviceName>
		    <type>DEFAULT</type>
	  </quickLinkList>
	  <quickLinkList>
		    <port>8080</port>
		    <protocol>http</protocol>
		    <quickLinkAddress>knox.C-4DBD656F20CE****.cn-hangzhou.emr.aliyuncs.com:8080</quickLinkAddress>
		    <serviceDisplayName>Zeppelin</serviceDisplayName>
		    <serviceName>ZEPPELIN</serviceName>
		    <type>DEFAULT</type>
	  </quickLinkList>
	  <quickLinkList>
		    <port>8443</port>
		    <protocol>https</protocol>
		    <quickLinkAddress>knox.C-4DBD656F20CE****.cn-hangzhou.emr.aliyuncs.com:8443/gateway/cluster-topo/ganglia/</quickLinkAddress>
		    <serviceDisplayName>Ganglia</serviceDisplayName>
		    <serviceName>GANGLIA</serviceName>
		    <type>KNOX</type>
	  </quickLinkList>
	  <requestId>162E738D-8EF8-4C26-AE55-42DA6857A043</requestId>
</ListClusterServiceQuickLinkResponse>

JSON format

{
	"requestId":"162E738D-8EF8-4C26-AE55-42DA6857A043",
	"quickLinkList":[
		{
			"port":"8443",
			"quickLinkAddress":"knox.C-4DBD656F20CE****.cn-hangzhou.emr.aliyuncs.com:8443/gateway/cluster-topo/hdfs/",
			"protocol":"https",
			"type":"KNOX",
			"serviceDisplayName":"HDFS",
			"serviceName":"HDFS"
		},
		{
			"port":"8443",
			"quickLinkAddress":"knox.C-4DBD656F20CE****.cn-hangzhou.emr.aliyuncs.com:8443/gateway/cluster-topo/yarn/",
			"protocol":"https",
			"type":"KNOX",
			"serviceDisplayName":"YARN",
			"serviceName":"YARN"
		},
		{
			"port":"8443",
			"quickLinkAddress":"knox.C-4DBD656F20CE****.cn-hangzhou.emr.aliyuncs.com:8443/gateway/cluster-topo/sparkhistory/",
			"protocol":"https",
			"type":"KNOX",
			"serviceDisplayName":"Spark",
			"serviceName":"SPARK"
		},
		{
			"port":"8888",
			"quickLinkAddress":"knox.C-4DBD656F20CE****.cn-hangzhou.emr.aliyuncs.com:8888",
			"protocol":"http",
			"type":"DEFAULT",
			"serviceDisplayName":"Hue",
			"serviceName":"HUE"
		},
		{
			"port":"8080",
			"quickLinkAddress":"knox.C-4DBD656F20CE****.cn-hangzhou.emr.aliyuncs.com:8080",
			"protocol":"http",
			"type":"DEFAULT",
			"serviceDisplayName":"Zeppelin",
			"serviceName":"ZEPPELIN"
		},
		{
			"port":"8443",
			"quickLinkAddress":"knox.C-4DBD656F20CE****.cn-hangzhou.emr.aliyuncs.com:8443/gateway/cluster-topo/ganglia/",
			"protocol":"https",
			"type":"KNOX",
			"serviceDisplayName":"Ganglia",
			"serviceName":"GANGLIA"
		}
	]
}

Error codes

HTTP status code Error code Error message Description 
403 Params.Illegal The specified parameters are wrongly formed.. The error message returned because the format of the specified parameter is invalid.
403 User.OtherUserResource.NotAllow It is not allowed to operate other user's resource The error message returned because you are not allowed to manage resources of other users.
403 Invalid.Cluster.Status Invalid cluster status %s in status list The error message returned because the status of the specified cluster is invalid.
403 Invalid.Cluster.Type Invalid cluster type %s in cluster type list The error message returned because the type of the specified cluster is invalid.
500 InternalError The request processing has failed due to some unknown error. The error message returned because an internal error has occurred. Submit a ticket.

For a list of error codes, visit the API Error Center.