All Products
Search
Document Center

Simple Log Service:UpdateOssExternalStore

Last Updated:Jan 16, 2024

Updates an Object Storage Service (OSS) 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-oss-store

The name of the external store.

Object Body Yes

The request struct.

externalStoreName String Body Yes test-oss-store

The name of the external store.

storeType String Body Yes oss

The type of the external store. Set the value to oss.

parameter Object Body Yes

The parameters that are configured for the external store.

accessid String Body Yes LTAI5tFsHGGeYry*****1Sz

The AccessKey ID that is used to access the OSS bucket.

accesskey String Body Yes GyviCLDVHkHrOztdkxuE6******Rp6

The AccessKey secret that is used to access the OSS bucket.

endpoint String Body Yes oss-cn-hangzhou.aliyuncs.com

The OSS endpoint.

bucket String Body Yes my-bucket

The name of the OSS bucket.

objects Array of String Body Yes file-name

The name of the associated OSS bucket.

columns Array Body Yes

The associated fields.

name String Body Yes test

The name of the field.

type String Body Yes varchar

The type of the field.

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-oss-store HTTP/1.1
Host:ali-test-project.cn-hangzhou.log.aliyuncs.com
Content-Type:application/json

{
  "externalStoreName" : "test-oss-store",
  "storeType" : "oss",
  "parameter" : {
    "accessid" : "LTAI5tFsHGGeYry*****1Sz",
    "accesskey" : "GyviCLDVHkHrOztdkxuE6******Rp6",
    "endpoint" : "oss-cn-hangzhou.aliyuncs.com",
    "bucket" : "my-bucket",
    "objects" : [ "file-name" ],
    "columns" : [ {
      "name" : "test",
      "type" : "varchar"
    } ]
  }
}

Sample success responses

JSON format

HTTP/1.1 200 OK

Error codes

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