Create Registration Token

Create Registration Token
Create a registration token for one or more baremetal servers with SSP

API to create a new registration token that can be used to register baremetal servers.

Request
URI
POST
https://{api_host}/baremetal/registration-tokens
COPY
Request Body

Information for generating the registration token.

RegistrationToken of type(s) application/json
Required
This request body class requires all of the following: InlineRegistrationToken1
{
    "_create_user": "string",
    "_create_time": 0,
    "_last_modified_user": "string",
    "_last_modified_time": 0,
    "_revision": 0,
    "_resource_type": "string",
    "_system_owned": false,
    "id": "string",
    "display_name": "string",
    "description": "string",
    "site_ids": [
        "string"
    ],
    "allowed_instance_count": 0,
    "passphrase": "string",
    "device_type": "string",
    "expiry_time_since_creation_mins": 0
}
Authentication
This operation uses the following authentication methods.
Responses
201

Created

Returns RegistrationToken of type(s) application/json
This response body class contains all of the following: InlineRegistrationToken1
"RegistrationToken Object"

default

Error response on API failure.

Returns Error of type(s) application/json
{
    "error_code": 0,
    "module_name": "string",
    "error_message": "string"
}
integer
error_code
Required

HTTP Status or Application error code.

string
module_name
Optional

Module where the error happened.

string
error_message
Required

Message describing the error.


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/baremetal/registration-tokens