Help Center/ ServiceStage/ API Reference (Kuala Lumpur Region)/ CSE API/ Modifying the Extended Information About a Microservice Instance
Updated on 2022-08-15 GMT+08:00

Modifying the Extended Information About a Microservice Instance

Function

This API is used to add or update the extended information about a microservice instance based on the instance ID after the instance is registered.

URI

PUT /v4/{project_id}/registry/microservices/{serviceId}/instances/{instanceId}/properties

Table 1 Path parameters

Parameter

Type

Mandatory

Description

project_id

String

Yes

Fixed value: default.

serviceId

String

Yes

Microservice ID, which must be unique.

The value must be 1 to 64 characters long.

Regular expression: ^.*$

instanceId

String

Yes

Microservice instance ID, which must be unique.

The value must be 1 to 64 characters long.

Regular expression: ^[A-Za-z0-9_.-]*$

Request

Request parameters

Table 2 Request body parameters

Parameter

Type

Mandatory

Description

properties

Map<String, String>

No

Extended attribute of the microservice instance. You can customize a key and value.

Response

Response parameters

None

Example

Example request

{
    "properties": {
	    "attr1": "value1"
    }
}

Example response

None

Status Code

See Status Codes.

Error Code

See CSE Error Codes.