Get all domains
get
/PASService/rest/services/v1/url/domains
Get all domains.
Request
Query Parameters
-
limit(required): integer(int32)
This parameter restricts the number of resources returned inside the resource collection. If the limit exceeds the resource count then the framework will only return the available resources.
-
offset(required): integer(int32)
Used to define the starting position of the resource collection. If offset exceeds the resource count then no resources are returned. Default value is 0.
-
q(required): string
This query parameter defines the where clause. The resource collection will be queried using the provided expressions. The value of this query parameter is one or more expressions. Example: ?q=Deptno>=10 and <= 30;Loc!=NY.
There's no request body for this operation.
Back to TopResponse
200 Response
This section describes the 200 status response for this operation. This response code indicates that the operation has completed successfully. This operation fetches all the domains successfully.
Examples
This example describes how to get the list of all domain.
Example cURL Command
Use the following cURL command to submit a request on the REST resource:
curl \ -X GET \ -H "Content-Type: application/json" \ -u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \ -L "http://server:port/PASService/rest/services/v1/url/domains?q=domainName eq "json.org""
Example Response Body
The following shows an example of the response body in JSON format:
{ "count": 3, "offset": 0, "limit": 100, "entityList": [ { "links": [ { "href": "http://server:port/PASService/rest/services/v1/domains/B6DE80E7-0081-4A6C-B713-8EC1D88A68B3", "rel": "self", "mediaType": "application/json", "method": "GET" } ], "fields": null, "creationDate": "2023-09-21T00:00:00Z", "status": "ACTIVE", "domainId": "B6DE80E7-0081-4A6C-B713-8EC1D88A68B3", "domainName": "adobe.com", "createdBy": "qatester3", "updatedBy": "", "updatedDate": null }, { "links": [ { "href": "http://server:port/PASService/rest/services/v1/domains/D418BB5B-EE2E-47C0-B6FC-96A9B2E8F174", "rel": "self", "mediaType": "application/json", "method": "GET" } ], "fields": null, "creationDate": "2023-09-21T00:00:00Z", "status": "ACTIVE", "domainId": "D418BB5B-EE2E-47C0-B6FC-96A9B2E8F174", "domainName": "oracle.com", "createdBy": "qatester3", "updatedBy": "", "updatedDate": null }, { "links": [ { "href": "http://server:port/PASService/rest/services/v1/domains/24A8EDE2-A49B-408B-B8A8-572F6659EE26", "rel": "self", "mediaType": "application/json", "method": "GET" } ], "fields": null, "creationDate": "2023-09-20T00:00:00Z", "status": "ACTIVE", "domainId": "24A8EDE2-A49B-408B-B8A8-572F6659EE26", "domainName": "adobe.com", "createdBy": "qatester3", "updatedBy": "", "updatedDate": null } ], "allowedDomains": null }