Queries the details of an external store.

Request syntax

http://ali-yunlei-chengdu.cn-chengdu.log.aliyuncs.com:80/externalstores/<external_store_name> 
'Content-Length': '0', 
'x-log-bodyrawsize': '0', 
'x-log-apiversion': '0.6.0', 
'x-log-signaturemethod': 'hmac-sha1', 
'Host': 'ali-yunlei-chengdu.cn-chengdu.log.aliyuncs.com', 
'Date': 'Thu, 19 Apr 2018 03:26:49 GMT', 
'Authorization': 'LOG <yourAccessKeyId>:<yourSignature>'

Request parameters

  • Request headers

    The GetExternalStore operation does not have operation-specific request headers. For information about the common request headers of Log Service API operations, see Common request headers.

  • Parameters
    Parameter Type Required Example Description
    external_store_name string Yes rds_store The name of the external store.

Response parameters

  • Response headers

    The GetExternalStore operation does not have operation-specific response headers. For information about the common response headers of Log Service API operations, see Common response headers.

  • Response elements
    The response body of the GetExternalStore operation contains a list of all configuration files of the project. The following table describes the parameters of the response body.
    Parameter Type Example Description
    vpc-id string vpc-bp1aevy8sofi8mh1q**** The ID of the VPC to which the RDS instance belongs.
    instance-id string i-bp1b6c719dfa08exf**** The ID of the RDS instance. Both vpc-id and instance-id can be empty. If you do not specify the parameters, it means that the external store is not in VPC and is accessible from the Internet.
    host string 192.***. ***. *** The host on which the RDS instance resides. This parameter is required if both vpc-id and instance-id are empty.
    port string 3306 The port number of the RDS instance.
    username string root The username that is used to log on to the RDS instance.
    password string sfdsfldsfksfls**** The password that is used to log on to the RDS instance.
    db string meta The name of the RDS database.
    table string join_meta The name of the table.
    region string cn-qingdao The region to which the RDS instance belongs. Only three regions are available: China (Qingdao), China (Beijing), and China (Hangzhou).

Examples

  • Sample requests
    http://ali-yunlei-chengdu.cn-chengdu.log.aliyuncs.com:80/externalstores/rds_store
    'Content-Length': '0', 
    'x-log-bodyrawsize': '0', 
    'x-log-apiversion': '0.6.0', 
    'x-log-signaturemethod': 'hmac-sha1', 
    'Host': 'ali-yunlei-chengdu.cn-chengdu.log.aliyuncs.com', 
    'Date': 'Thu, 19 Apr 2018 03:26:49 GMT', 
    'Authorization': 'LOG <yourAccessKeyId>:<yourSignature>'
  • Sample success responses
    Header :
    {   
        "content-length": "730",
        "server": "nginx/1.6.1",
        "connection": "close",
        "date": "Mon, 09 Nov 2015 08:29:15 GMT",
        "content-type": "application/json",
        "x-log-requestid": "5640595B99248CAA23004A59"
    }
    Body :{
      'storeType': 'rds-vpc', 
      'parameter': {
                   'region': 'cn-qingdao', 
                   'vpc-id': 'vpc-p1aevy8sofi8mh1q****', 
                   'instance-id': 'i-bp1b6c719dfa08exf****', 
                   'host': '192.168.XX.XX', 
                   'port': '3306', 
                   'username': 'root', 
                   'db': 'meta', 
                   'table': 'join_meta'
                   }
    }

Error codes

HTTP status code Error code Error message Description
400 ProjectAlreadyExist Project {project} already exists. The error message returned because the specified project already exists.
400 ParameterInvalid The body is not valid json string. The error message returned because a parameter value is invalid.
500 InternalServerError Specified Server Error Message. The error message returned because an internal server error has occurred.

For more information about the error codes, see Common error codes.