This API is used to import distribution information of physical shards in all schemas and use it to create schemas that contain the same physical shards and distribution relationship.
POST /v3/{project_id}/instances/{instance_id}/schema-metadata
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
project_id |
String |
Yes |
Project ID of a tenant in a region |
instance_id |
String |
Yes |
DDM instance ID |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. It can be obtained by calling an IAM API. The value of X-Subject-Token in the response header is the user token. |
Content-Type |
Yes |
String |
MIME type of the request body. Value range:
|
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
compressed_databases_info |
String |
Yes |
Distribution information of physical shards in a schema. This information is compressed and encoded. For the method to obtain the information, see section "Exporting Schema Metadata." |
dn_instance |
Yes |
Data nodes required for creating a schema. The number of data nodes should be consistent with the exported schema metadata and meet the following constraints:
|
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
dn_instance_id |
String |
Yes |
Data node ID |
admin_user |
String |
Yes |
Username for accessing the data node |
admin_password |
String |
Yes |
Password for accessing the data node |
Importing schema metadata
POST https://ddm.eu-de.otc.t-systems.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/1f5c9fd6cd984056ba89c8c87cc03278in09/schema-metadata
{
"compressed_databases_info":"H4sIAAAAAAAAAN3cTW/bRhgE4P/Csw7aL4rUtQUKX3wo0lMQCPxYNQJsOjApIIWR/17K1RvDPgQ9...",
"dn_instance":[
{
"dn_instance_id":"91b1272b09364ddeb999f1295bf0506ain01",
"admin_user":"root",
"admin_password":"PassWord_234"
}
]
}
Parameter |
Type |
Description |
|---|---|---|
instance_id |
String |
DDM instance ID |
instance_name |
String |
DDM instance name |
job_id |
String |
Task ID |
{
"job_id":"441d5677-b76a-4dd4-a97a",
"instance_id":"91b1272b09364ddeb999f1295bf0506ain09",
"instance_name":"ddm-test-01"
}
For details, see Abnormal Request Results.
For details, see Status Codes.
For details, see Error Codes.