Get the name of the default search for the specified type

get

/apiplatform/administration/v1/preferences/user/searches/{type}/default

Returns the name of the default search for the specified type. The response also contains HATEOAS links to related operations.

All authenticated users can access this resource.

Request

Supported Media Types
Path Parameters
  • Specifies the search type, valid values are: api, application, gateway, service_account and role.
Query Parameters
  • Collection Format: csv
    Pass optional fields, separated by commas, in this parameter to return them in the response. See the operation's description for a list of field values.
Back to Top

Response

Supported Media Types

200 Response

The user's default search for the specified type.
Body ()
Root Schema : UserDefaultSearchResponse
Match All
Show Source
Nested Schema : UserDefaultSearchName
Type: object
Show Source
Nested Schema : LinksResponseFeature
Type: object
Show Source

403 Response

Forbidden.
Body ()
Root Schema : Error
Type: object
Show Source
Nested Schema : errorDetails
Type: array
additional errors
Show Source

500 Response

Unexpected error.
Body ()
Root Schema : Error
Type: object
Show Source
Nested Schema : errorDetails
Type: array
additional errors
Show Source
Back to Top

Examples

The following example shows how to retrieve the default saved search for a resource type by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL

curl -i -X GET 
-u apicsadmin:password
https://example.com/apiplatform/administration/v1/preferences/user/searches/{type}/default

Where {type} is a resource type, like api, application, gateway, etc.

Example of Response Headers

The following shows an example of the response headers.

HTTP/1.1 200 OK
Server: Oracle-Traffic-Director/12.2.1.2.0
Date: Wed, 26 Jul 2017 17:10:11 GMT
Transfer-encoding: chunked
Content-type: application/json
X-oracle-dms-ecid: kKFfG1P0000000000
X-oracle-dms-rid: 0:1
Via: 1.1 otd_opc-config
Proxy-agent: Oracle-Traffic-Director/12.2.1.2.0
Content-encoding: gzip
Vary: accept-encoding

Example of Response Body

The following example shows the contents of the response body in JSON format, including details about each saved search for the resource type and HATEOAS links to related operations.

{
    "defaultSearchName": "weather",
    "links": [
        {
            "templated": "true",
            "method": "GET",
            "rel": "canonical",
            "href": "https://example.com:443/apiplatform/administration/v1/preferences/user/searches/api/default"
        },
        {
            "templated": "true",
            "method": "PUT",
            "rel": "edit",
            "href": "https://example.com:443/apiplatform/administration/v1/preferences/user/searches/api/default"
        }
    ]
}
Back to Top