# Getting infrastructure profiles

# Getting infrastructure profiles Admin only Paginated

To get the infrastructure profiles of a realm, use one of the following endpoints:

GET /api/infrastructure-profile
POST /api/infrastructure-profile

On success the response will be the default API response with the data being a data array of infrastructure profiles. The infrastructure profile entities will be in the following format:

[
    {
        "serial": "string",
        "name": "string",
        "description": "string|null",
        "creationDate": "2023-12-15T15:30:52.768Z",
        "expirationDate": "2023-12-15T15:30:52.768Z",
        "revokeDate": "2023-12-15T15:30:52.768Z|null",
        "lastOcsp": "2023-12-15T15:30:52.768Z|null"
    }
]

The search parameter for this paginated endpoint is a string that will be used to search for infrastructure profiles with a name or serial that contains the search string.

The following keys are supported for the sort parameter:

Key Description
serial Sort by the serial number of the infrastructure profile
creation_date Sort by the creation date of the infrastructure profile
expiration_date Sort by the expiration date of the infrastructure profile

The following keys are supported for the filter parameter:

Key Description Example Value
invalid Filter by whether the infrastructure profile is revoked or not "true"
minCreateTime Filter by the minimum creation date of the infrastructure profile "2023-12-15T18:48:28.775Z"
maxCreateTime Filter by the maximum creation date of the infrastructure profile "2023-12-15T18:48:28.775Z"
minExpirationTime Filter by the minimum expiration date of the infrastructure profile "2023-12-15T18:48:28.775Z"
maxExpirationTime Filter by the maximum expiration date of the infrastructure profile "2023-12-15T18:48:28.775Z"