REST API  17
REST API for Luna Network HSMs
PATCH /api/lunasa/network

PATCH /api/lunasa/network

Sets the network information associated with the appliance.

User Privileges

Users with the following role privileges can perform this command:

  • admin
  • operator

Parameters

hostname

Specifies the hostname for the appliance.This parameter will be validated.

Use: Not Required

JSON Schema:

   Object
   type: string
   minLength: 1
   maxLength: 64
   pattern: ^[a-zA-Z0-9]([a-zA-Z0-9.-]{0,62}[a-zA-Z0-9])?$

Responses

204

Success

400

FRAMEWORK_BAD_REQUEST

Returned when the input data does not conform to the required validation schema.

400

APPLIANCE_FAILED_TO_SET_HOSTNAME

Unable to set specified hostname.

400

APPLIANCE_INVALID_VALUE_SPECIFIED

Hostname specified is invalid.

Example Request

   PATCH
   https://1.2.3.4:8443/api/lunasa/network
   {
        "hostname" : "MyHostname"
   }

Example Result

{
}