Method
|
GET
|
URL
|
/v2/<object_full_identifier>
|
Parameters
|
fields, incomingRelationships, filter, sort, limit, offset, exclude_total_count, data_format, suppress_ror
|
Response Content Type
|
application/json
|
|
Each returned record includes the __object_identifier pseudo-field, which contains the full identifier of the object to which the record belongs.
|
Parameter
|
Description
|
Data Type
|
Example
|
---|---|---|---|
fields
|
Object fields to be retrieved. Eager loading is supported in depth, and related record fields can be eager-loaded if relationships between records exist.
If not specified, all object fields are retrieved by default.
|
String
|
Retrieve only the uuid, owner, private, active, and deleted fields for each record:
/v2/<object_full_identifier>?fields=io_uuid,io_owner,io_private,io_active,io_deleted
|
incomingRelationships
|
Incoming relationships of the object to use to retrieve related records.
|
String
|
Retrieve the related records for the application_log_related_to incoming relationship for each record:
/v2/<object_full_identifier>?incomingRelationships=application_log_related_to
|
filter
|
Filtering condition on records to retrieve. The SMQL WHERE clause is supported for filtering eager-loaded fields.
If not specified, all undeleted records are retrieved by default.
|
String
|
Retrieve only the records updated by the system user:
/v2/<object_full_identifier>?filter=io_updated_by.io_username='system'
|
sort
|
Sorting criteria for retrieved records. The SMQL ORDER BY clause is supported for sorting eager-loaded fields. Ascending (ASC) and descending (DESC) criteria are supported. ASC is the default.
If not specified, records are retrieved in no specific order.
|
String
|
Retrieve all records sorted by creation date in descending order:
/v2/<object_full_identifier>?sort=io_created_on+DESC
Retrieve all records sorted by the full name of the user who created the record (default ascending) and by the creation date in descending order:
/v2/<object_full_identifier>?sort=io_created_by.io_full_name,io_created_on+DESC
|
limit
|
The number of records to retrieve. SMQL LIMIT clause syntax is supported. If specified, the response includes the X-Total-Count header with the total count of records that can be be retrieved without the limit. Consider using exclude_total_count if calculation of this value is not performant.
If not specified, and no filtering specified, all undeleted records are retrieved.
|
Integer
|
Retrieve 100 records for an object:
/v2/<object_full_identifier>?limit=100
|
offset
|
Offset to use to retrieve records. ServiceMax recommends combining this parameter with the sort parameter. SQML OFFSET clause syntax is supported
If not specified, records are retrieved with no offset.
|
Integer
|
Retrieve the next 100 records after the first 500, ordered by Name:
/v2/<object_full_identifier>?sort=io_name&limit=100&offset=500
|
exclude_total_count
|
Set this flag to exclude the X-Total-Count header, which is provided by default when you use limit to specify the number of records returned.
If limit is not set and the total number of selected records is large, performance may be impacted depending on permissions configuration. In these cases, use this parameter to reduce the number of calculation iterations of the total count.
|
Boolean
|
Retrieve the next 100 records after the first 500 sorted by Name without calculating the total count:
/v2/<object_full_identifier>?sort=io_name&limit=100&offset=500&exclude_total_count=true
|
data_format
|
The output data format. Supported values are basic (default) and extended.
The basic format corresponds to the example response shown above. The extended format includes additional information for specific data types. For more information, see Extended Output Data Format.
|
String
|
Retrieve a list of records with extended output data:
/v2/<object_full_identifier>?data_format=extended
|
suppress_ror
|
Whether to bypass recalculation for recalculate-on-read fields.When specified, RoR fields are read instead of recalculated, and their values are returned from the database.
|
Boolean
|
Retrieve a list of records with recalculate-on-read suppressed:
/v2/<object_full_identifier>?suppress_ror=true
|
HTTP Status Code
|
Error Type
|
Error Message
|
---|---|---|
400
|
missing_parameter_error
|
Missing or invalid required parameter
|
400
|
smql_query_error
|
SMQL query error
|
400
|
serialization_error
|
Serialization error
|
500
|
server_error
|
Server error
|