批量更新实例元数据(Beta)
PUT
/nacos/v1/ns/instance/metadata/batch
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PUT 'http://127.0.0.1:8848/nacos/v1/ns/instance/metadata/batch?namespaceId=public&serviceName=xxx@xxx&metadata={{metadata}}'
Response Response Example
{
"updated": [
"2.2.2.2:8080:unknown:xxxx-cluster:ephemeral",
"3.3.3.3:8080:unknown:xxxx-cluster:ephemeral"
]
}
Request
Query Params
namespaceId
string
required
Example:
public
serviceName
string
required
Example:
xxx@xxx
consistencyType
string
optional
instances
string
optional
metadata
string
required
Example:
{{metadata}}
Responses
Modified at 2022-11-14 02:31:26