/mgmt/config/default/Language PUT

Use the HTTP PUT method with the /mgmt/config/default/Language/name resource to amend language settings.

Resource URL

https://host:port/mgmt/config/default/Language/name
Where port is 5554 by default. name is one of the valid language codes listed under Name in the Request body format description (Request body format).

Request headers

The following header must be sent with the request:
Authorization
This header must be sent to perform authentication.

Request body format

The request is in JSON format. It contains the following fields:
Name
String
The code for the language. The following codes are available on the appliance:
  • de
  • en
  • es
  • fr
  • it
  • ja
  • ko
  • pt_BR
  • zh_CN
  • zh_TW
  • ru
mAdminState
String.
The administrative state of the system settings, can be one of the following values:
  • enabled
  • disabled

Security requirements

The caller must be authenticated as an appliance user with sufficient authority. For more information about security, see Types of user and how they are authenticated and User authorization, credential mapping, and access profiles.

Response status codes

200
The system settings were successfully updated.
400
Invalid data provided.
401
Not authenticated.
The caller must be authenticated as an appliance user. See Types of user and how they are authenticated for more information.
403
Not authorized.
The caller is authenticated but does not the authority to perform this action. See User authorization, credential mapping, and access profiles for more information.

Response headers

Content-Type
This header is returned with a value of application/json.

Response body format

The response is in JSON format. Each object contains the following fields:
self
String.
The URL of the PUT request.
doc
String.
Not currently used.
Location
String.
The URL of the object updated.

Examples

The following example enables the French language.

The following URL is used with the HTTP PUT method:
PUT /mgmt/config/default/Language/fr
The following listing shows the request:
{
  "Language": {
    "name": "fr",
    "mAdminState": "enabled"
  }
}
After the Location field is updated, the following response is returned:
{
   "_links" : {
     "self" : {
        "href" : "/mgmt/config/default/Language/fr"
     }, 
        "doc" : {
          "href" : "/mgmt/docs/config/Language"
     }      
   }, 
   "fr" : "Configuration was updated."
}