Retrieve log shipping tokens
POST/v1/log-shipping/tokens/search
Returns the relevant shipping tokens, filtered, sorted and paginated as per the request. Please ensure to change the region in the URL to match your account's region.
Request
- application/json
Body
- Array [
- ]
filter object
Filters your search for token attributes.
Set to true
to filter for enabled tokens. Set to false
to filter for disabled tokens.
sort object[]
Sorts the results before returning them.
Possible values: [CREATED_AT
, NAME
]
To sort by creation date, use "createdAt"
. To sort by name, use "name"
.
For descending order, use true
. For ascending order, use false
.
pagination object
Default pagination is a page of 25 results. Look for the total
field in the response for the number of available results overall, and use the pagination function to page through the results.
Default value: 1
If you overshoot the page number, it will return empty with no results, but it won't fail the request.
Possible values: <= 1000
Default value: 25
Controls the number of results per page. Valid inputs are 1 to 1000.
Responses
- 200
successful operation
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
results object[]
This token's name.
This token's ID.
The token itself.
Unix timestamp of when this token was last updated.
Email address of the last user to update this token.
Unix timestamp of when this token was created.
Email address of the user who created this token.
If this token is enabled, true
. If it's disabled, false
.
pagination object
Default pagination is a page of 25 results. Look for the total
field in the response for the number of available results overall, and use the pagination function to page through the results.
Default value: 1
If you overshoot the page number, it will return empty with no results, but it won't fail the request.
Possible values: <= 1000
Default value: 25
Controls the number of results per page. Valid inputs are 1 to 1000.
{
"total": 0,
"results": [
{
"name": "apac prod",
"id": 786351,
"token": "6bLXmMA6FLibc7ySSqNcCfvbhtqT0rPS",
"updatedAt": 414720000,
"updatedBy": "shalom.the.mighty@gmail.com",
"createdAt": 389836800,
"createdBy": "you.got.this@gmail.com",
"enabled": true
}
],
"pagination": {
"pageNumber": 1,
"pageSize": 100
}
}