Get Registration Token Statuses

Get Registration Token Statuses
Get statuses of all registration tokens.

Get statuses of all registration tokens. This is a list api To fetch all the generated token statuses.

Request
URI
GET
https://{api_host}/baremetal/registration-tokens/statuses
COPY
Query Parameters
integer
offset
Optional
Constraints: default: 0

Offset pagination parameter used to exclude from a response the first N items of a resource collection. Combine the limit and the page_size options to request a particular set or page of items.

integer
page_size
Optional
Constraints: default: 1000

Number of records to be returned in the API request from the provided offset

boolean,null
sort_ascending
Optional
Constraints: default: false

True, if the list of records returned need to be sorted in ascending order, false otherwise.

string
sort_by
Optional

The parameter name on which to sort the list of records. Only top-level parameters in the returned list of records will be supported. If not provided, system will define the parameter by which results are sorted.

string of array
display_name
Optional

Use this request param to filter by one or more display names.

string
tokens_status
Optional

Use this request param to filter by registration token status.Allowed values are: AVAILABLE, EXPIRED.


Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns RegistrationTokenStatusesList of type(s) application/json
This response body class contains all of the following: InlineRegistrationTokenStatusesList0 , InlineRegistrationTokenStatusesList1
{
    "offset": 0,
    "number_of_results": 0,
    "total_result_count": 0,
    "total_pages": 0,
    "sort_ascending": false,
    "sort_by": "string",
    "results": [
        {
            "id": "string",
            "display_name": "string",
            "description": "string",
            "allowed_instance_count": 0,
            "remaining_instance_count": 0,
            "status": "string",
            "expiration_timestamp": 0,
            "registration_manifest": "string"
        }
    ]
}

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 -H 'Authorization: <value>' https://{api_host}/baremetal/registration-tokens/statuses