All Products
Search
Document Center

Simple Log Service:UpdateRdsExternalStore

Last Updated:Jan 16, 2024

Updates an ApsaraDB RDS external store.

Usage notes

Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.

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 headers

This operation uses only common request headers and does not have operation-specific request headers. For more information, see Common request parameters.

Request syntax

PUT /externalstores/{externalStoreName} HTTP/1.1

Request parameters

Parameter

Type

Position

Required

Example

Description

project String Host Yes ali-test-project

The name of the project.

externalStoreName String Path Yes test-external-store

The name of the external store.

Object Body Yes

The request struct.

externalStoreName String Body Yes rds_store

The name of the external store.

storeType String Body Yes rds-vpc

The storage type. Set the value to rds-vpc, which indicates an ApsaraDB RDS for MySQL database in a virtual private cloud (VPC).

parameter Object Body Yes

The parameter struct.

vpc-id String Body No vpc-bp1aevy8sofi8mh1q****

The ID of the VPC to which the ApsaraDB RDS for MySQL instance belongs.

instance-id String Body No i-bp1b6c719dfa08exf****

The ID of the ApsaraDB RDS for MySQL instance.

host String Body No 192.168.XX.XX

The internal or public endpoint of the ApsaraDB RDS for MySQL instance.

port String Body Yes 3306

The internal or public port of the ApsaraDB RDS for MySQL instance.

username String Body Yes root

The username that is used to log on to the ApsaraDB RDS for MySQL instance.

password String Body Yes sfdsfldsfksfls****

The password that is used to log on to the ApsaraDB RDS for MySQL instance.

db String Body Yes meta

The name of the database in the ApsaraDB RDS for MySQL instance.

table String Body Yes join_meta

The name of the database table in the ApsaraDB RDS for MySQL instance.

region String Body Yes cn-qingdao

The region where the ApsaraDB RDS for MySQL instance resides. Valid values: cn-qingdao, cn-beijing, and cn-hangzhou.

Response parameters

Parameter

Type

Example

Description

Server String nginx

The name of the server.

Content-Type String application/json

The format of the response body.

Content-Length String 0

The length of the response body.

Connection String close

Indicates whether the connection is persistent. Valid values:

  • close: The connection is non-persistent. A new TCP connection is established for each HTTP request.
  • keep-alive: The connection is persistent. After a TCP connection is established, the connection remains open, and no more time or bandwidth is consumed to establish new connections.
Date String Sun, 27 May 2018 08:25:04 GMT

The time when the response was returned.

x-log-requestid String 5B0A6B60BB6EE39764D458B5

The request ID.

Examples

Sample requests

PUT /externalstores/test-external-store HTTP/1.1
Host:ali-test-project.cn-hangzhou.log.aliyuncs.com
Content-Type:application/json

{
  "externalStoreName" : "rds_store",
  "storeType" : "rds-vpc",
  "parameter" : {
    "vpc-id" : "vpc-bp1aevy8sofi8mh1q****",
    "instance-id" : "i-bp1b6c719dfa08exf****",
    "host" : "192.168.XX.XX",
    "port" : "3306",
    "username" : "root",
    "password" : "sfdsfldsfksfls****",
    "db" : "meta",
    "table" : "join_meta",
    "region" : "cn-qingdao"
  }
}

Sample success responses

JSON format

HTTP/1.1 200 OK

Error codes

For a list of error codes, see Service error codes.