• SAP HANA

saphana
  1. Help Center
  2. SAP HANA
  3. User Guide (API)
  4. Creating a HANA ECS
  5. (Optional) Updating the ECS Metadata

(Optional) Updating the ECS Metadata

Function

This API is used to update the ECS metadata.

API Format

Method

URI

Description

POST

/v2/{tenant_id}/servers/{server_id}/metadata

Updates the ECS metadata.

Restrictions

The ECS must be in the activestoppedpaused, or suspended state. That is, the value of the OS-EXT-STS:vm_state attribute of the ECS must be activestoppedpaused, or suspended.

Expansion

None

Request Parameters

Parameter

Type

Mandatory or Not

Description

Specified as needed

String

Yes

Specifies the metadata key pair.

agency_name

String

Yes

Set agency_name to DataProviderAccess.

Response Parameters

Parameter

Type

Mandatory or Not

Description

Specified as needed

String

Yes

Specifies the metadata key pair.

Request Example

POST /v2/9c53a566cb3443ab910cf0daebca90c4/servers/998af54b-5762-4041-abc1-f98a2c27b3a2/metadata

{
"metadata": {
"agency_name": "DataProviderAccess"
}
}

Response Example

{
"metadata": {
"agency_name": "DataProviderAccess"
}
}

Error Code

Error Code

Description

404

Server does not exist.

The cause is that the ECS is unavailable.