All Products
Search
Document Center

QueryDataSourceDef

Last Updated: Mar 05, 2019

Description

You can call this operation to retrieve the list of regions supported by DLA. For more information, see the region mapping table.

Request parameters

Name Type Required Description
Action String Yes The operation that you want to perform. Set the value to QueryDataSourceDef.
RegionID String Yes The ID of the region where you make the request. For more information, see DLA regions in Appendix.

Response parameters

Name Type Description
Common response parameters - For more information, see Common parameters.
RequestId String The GUID generated by Alibaba Cloud for the request.
RegionId String The ID of the region where you make the request.
RegionList List<String> The data source list.

RegionList

Name Type Description
dataSourceName String The code of the data source name.
roleArn String The ID of the region where you make the request.
authorizedURL String The URL through which you can authorize DLA to access this data source.

Sample requests

  1. http://openanalytics.cn-hangzhou.aliyuncs.com/?Action=QueryDataSourceDef
  2. &RegionID=<RegionID>, for example, cn-hangzhou
  3. &<Common request parameters>

Sample responses

XML format

  1. <QueryDataSourceDefResponse>
  2. <RequestId>2C68B6CC-6313-4F76-8618-9126BB3785AB</RequestId>
  3. <RegionId>cn-hangzhou</RegionId>
  4. <RegionList>
  5. <dataSourceName>OSS</dataSourceName>
  6. <roleArn>acs:ram::1863300811000000:role/aliyunopenanalyticsaccessingossrole</roleArn>
  7. <authorizedURL>https://ram.console.aliyun.com/#/role/authorize?request=%7B%22Requests%22:%20%7B%22request1%22:%20%7B%22RoleName%22:%20%22AliyunOpenAnalyticsAccessingOSSRole%22,%20%22TemplateId%22:%20%22OSSRole%22%7D%7D,%20%22ReturnUrl%22:%20%22https:%2F%2Fopenanalytics.console.aliyun.com%2F%22,%20%22Service%22:%20%22OpenAnalytics%22%7D</authorizedURL>
  8. </RegionList>
  9. <RegionList>
  10. <dataSourceName>OTS</dataSourceName>
  11. <roleArn>acs:ram::1863300811000000:role/aliyunopenanalyticsaccessingotsrole</roleArn>
  12. <authorizedURL>https://ram.console.aliyun.com/#/role/authorize?request=%7B%22Requests%22:%20%7B%22request1%22:%20%7B%22RoleName%22:%20%22AliyunOpenAnalyticsAccessingOTSRole%22,%20%22TemplateId%22:%20%22OTSRole%22%7D%7D,%20%22ReturnUrl%22:%20%22https:%2F%2Fopenanalytics.console.aliyun.com%2F%22,%20%22Service%22:%20%22OpenAnalytics%22%7D</authorizedURL>
  13. </RegionList>
  14. </QueryDataSourceDefResponse>

JSON format

  1. {
  2. "RequestId": "2C68B6CC-6313-4F76-8618-9126BB3785AB",
  3. "RegionId": "cn-hangzhou",
  4. "RegionList": [
  5. {
  6. "roleArn": "acs:ram::1863300811000000:role/aliyunopenanalyticsaccessingossrole",
  7. "authorizedURL": "https://ram.console.aliyun.com/#/role/authorize?request=%7B%22Requests%22:%20%7B%22request1%22:%20%7B%22RoleName%22:%20%22AliyunOpenAnalyticsAccessingOSSRole%22,%20%22TemplateId%22:%20%22OSSRole%22%7D%7D,%20%22ReturnUrl%22:%20%22https:%2F%2Fopenanalytics.console.aliyun.com%2F%22,%20%22Service%22:%20%22OpenAnalytics%22%7D",
  8. "dataSourceName": "OSS"
  9. },
  10. {
  11. "roleArn": "acs:ram::1863300811000000:role/aliyunopenanalyticsaccessingotsrole",
  12. "authorizedURL": "https://ram.console.aliyun.com/#/role/authorize?request=%7B%22Requests%22:%20%7B%22request1%22:%20%7B%22RoleName%22:%20%22AliyunOpenAnalyticsAccessingOTSRole%22,%20%22TemplateId%22:%20%22OTSRole%22%7D%7D,%20%22ReturnUrl%22:%20%22https:%2F%2Fopenanalytics.console.aliyun.com%2F%22,%20%22Service%22:%20%22OpenAnalytics%22%7D",
  13. "dataSourceName": "OTS"
  14. }
  15. ]
  16. }