Get platform preferences

get

/apiplatform/administration/v1/preferences/platform

Returns the platform preferences.

All authenticated users can access this resource. Users assigned a role other than admin only receive these fields and the HATEOAS links they have permission to access in the response: timeZoneID, portalEnabled, apiaryUrl, and gatewayInstallerUrl. Users assigned the admin role receive all fields and HATEOAS links for all related operations in the response.

Request

Supported Media Types
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 platform preferences.
Body ()
Root Schema : PlatformPreferencesResponse
Match All
Show Source
Nested Schema : PlatformPreferences
Type: object
Show Source
Nested Schema : LinksResponseFeature
Type: object
Show Source
Nested Schema : GeneralPlatformPreferences
Type: object
Show Source
Nested Schema : SecurityPreferences
Type: object
Show Source
Nested Schema : IdcsSecurity
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 current Oracle API Platform Cloud Service - Classic platform preferences 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/platform

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.0.0
Date: Mon, 02 Jan 2017 13:40:09 GMT
Content-length: 1253
Content-type: application/json
X-oracle-dms-ecid: 07v^m0LqR00000000
X-oracle-dms-rid: 0:1
Via: 1.1 otd_opc
Proxy-agent: Oracle-Traffic-Director/12.2.1.0.0

Example of Response Body

The following example shows the contents of the response body in JSON format, including the Oracle API Platform Cloud Service - Classic platform preferences and HATEOAS links:

{
    "general": {
        "portalUrlType": "DEFAULT",
        "portalShowOAuthClientId": true,
        "apiaryUrl": "https://enterprise-integrations.apiary.io",
        "gatewayDownloadUrl": "./downloads/ApicsGatewayInstaller.zip",
        "timeZoneId": "PST8PDT",
        "portalCustomUrl": "",
        "portalShowAppKey": true,
        "portalEnabled": true,
        "allowUnauthenticatedUsers": false,
        "portalBaseUrl": "http://example.com:443/developers",
        "allowSelfRegistration": false
    },
    "security": {
        "idcs": {
            "clientId": "",
            "endpointUrl": "",
            "description": "",
            "clientSecret": ""
        }
    },
    "links": [
        {
            "method": "GET",
            "rel": "self",
            "href": "http://example.com:443/apiplatform/administration/v1/preferences/platform"
        },
        {
            "method": "GET",
            "rel": "canonical",
            "href": "http://example.com:443/apiplatform/administration/v1/preferences/platform"
        },
        {
            "method": "PATCH",
            "rel": "edit",
            "href": "http://example.com:443/apiplatform/administration/v1/preferences/platform"
        }
    ]
}
Back to Top