Creates an Object Storage Service (OSS) external store.
Operation description
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
POST /externalstores HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
project | string | Yes | A short description of struct | my-project |
body | object | Yes | The body of the request. | |
externalStoreName | string | Yes | The name of the external store. | test_oss_store |
storeType | string | Yes | The type of the external store. Set the value to oss. | oss |
parameter | object | Yes | The parameters of the external store. | |
accessid | string | Yes | The AccessKey ID. | LTAI5tFsHGGeYry*****1Sz |
accesskey | string | Yes | The AccessKey secret. | GyviCLDVHkHrOztdkxuE6******Rp6 |
endpoint | string | Yes | The OSS endpoint. For more information, see Regions and endpoints. | oss-cn-hangzhou.aliyuncs.com |
bucket | string | Yes | The name of the OSS bucket. | my-bucket |
objects | array | Yes | The associated OSS objects. Valid values of n: 1 to 100. | |
string | No | The name of the OSS object. Valid values of n: 1 to 100. | file-name | |
columns | array<object> | Yes | The associated fields. | |
object | No | |||
name | string | Yes | The name of the field. | auto-test |
type | string | Yes | The data type of the field. | sls |
Response parameters
Examples
Sample success responses
JSON
format
{}
Error codes
For a list of error codes, visit the Service error codes.