Sites
Retrieves a list of sites accessible by the user.
get/sites
Request
- Base URLhttps://api.acquia.com/v3
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
offsetinteger
Example:20
The number of items to skip before starting to collect the result set.
limitinteger
Example:10
The maximum number of items to return per page.
filterstring
Filter the result set using field-based criteria. Format: field=value or field<operator>value Logical operators:
- , (comma) - OR logic between filters
- ; (semicolon) - AND logic between filters
- Note: Cannot mix OR and AND operators in the same query Comparison operators:
- = - Equals. This is the default comparison operator; : is accepted as a backward-compatible alias for =
- != - Does not equal
- > - Greater than
- < - Less than
- >= - Greater than or equal to
- <= - Less than or equal to
- =@ - Contains substring
- !@ - Does not contain substring Wildcards:
- * - Wildcard character for pattern matching Examples:
- status=active - Filter by status equals active
- name=@prod - Filter by name containing "prod"
- status=active;type=standard - Status is active AND type is standard
- status=active,status=pending - Status is active OR pending
sortstring
Sort the result set by one or more fields. Format: field1,field2,-field3 Sort order:
- No prefix - Ascending order (default)
- - prefix - Descending order Multiple fields:
- Fields are processed in the order specified
- First field has highest priority
- Use comma to separate multiple fields Examples:
- name - Sort by name in ascending order
- -created_at - Sort by created_at in descending order
- name,-created_at - Sort by name ascending, then created_at descending
- status,name,-updated_at - Sort by status ascending, then name ascending, then updated_at descending
Response
OK
Example response
{
"_links": {
"self": {
"href": "https://api.acquia.com/v3/resources?sort=name,-created_at"
},
"sort": {
"href": "https://api.acquia.com/v3/resources{?sort}",
"templated": true
}
},
"_embedded": {
"items": [
{
"id": "1",
"name": "Resource 1",
"_links": {
"self": {
"href": "https://api.acquia.com/v3/resources/1"
}
}
},
{
"id": "2",
"name": "Resource 2",
"_links": {
"self": {
"href": "https://api.acquia.com/v3/resources/2"
}
}
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.