[{"label":"Latest (v1.1)","version":"latest"}]
vmc

Set Locale

Description

Sets the locale for the session which is used for translating responses.

Request

Request

URL

URL


post
https://vmc.vmware.com/vmc/api/locale
Copy

Request Body

Request Body

VmcLocale of type(s) application/json Required

The locale to be set.

{
	"locale": "string"
}
string
locale Optional

The locale to be used for translating responses for the session

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns VmcLocale of type(s) application/json
{
	"locale": "string"
}
string
locale Optional

The locale to be used for translating responses for the session

Errors

Errors

401

Unauthorized


403

Forbidden

Code Samples

Code Samples

PowerCLI Client SDK Example

$VmcLocale = Initialize-VmcLocale -Locale "MyLocale"
Invoke-LocalePost -VmcLocale $VmcLocale

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"locale":"string"}' https://vmc.vmware.com/vmc/api/locale
Vendor Extensions

Vendor Extensions

This operation contains the following vendor extensions defined in the spec:
x-vmc-ui-servicename: locale
x-vmw-vapi-methodname: set


[{"label":"Latest (v1.1)","version":"latest"}]
vmc
Feedback

Was this page helpful?