Get API access for an application

get

/rest/ofscMetadata/v1/applications/{label}/apiAccess/{apiLabel}

This operation retrieves the API access information of an application based on the specified API label and the application ID specified while creating the application.

Request

Path Parameters
  • Minimum Length: 1
    Maximum Length: 255
    The label used to identify the API.
    Allowed Values: [ "partsCatalogAPI", "capacityAPI", "coreAPI", "fieldCollaborationAPI", "inboundAPI", "metadataAPI", "outboundAPI", "statisticsAPI" ]
  • Minimum Length: 1
    Maximum Length: 255
    The label used to retrieve the API access information of the application.
Back to Top

Response

Supported Media Types

200 Response

This section describes the 200 status response for this operation.
Body ()
Root Schema : Application
Type: object
Title: Application
Show Source
Nested Schema : Activity Fields
Type: array
Title: Activity Fields
The activity fields of the Inbound API specified in the request.
Show Source
Nested Schema : API Entities
Type: array
Title: API Entities
The entities of Core API or Metadata API specified in the request.
Show Source
Nested Schema : API Methods
Type: array
Title: API Methods
The methods Capacity API specified in the request.
Show Source
Nested Schema : Inventory Fields
Type: array
Title: Inventory Fields
The inventory fields of the Inbound Interface API specified in the request.
Show Source
Nested Schema : Provider Fields
Type: array
Title: Provider Fields
The provider fields of the Inbound Interface API specified in the request.
Show Source
Nested Schema : Request Fields
Type: array
Title: Request Fields
Not used. The request fields visibility is not applicable for any API.
Show Source
Nested Schema : User Fields
Type: array
Title: User Fields
Not used. The user fields visibility is not applicable for any API.
Show Source
Nested Schema : ApplicationApiAccessContext
Type: object
Show Source
Nested Schema : valuesVisibility
Type: array
The visibility settings for each property.
Show Source
Nested Schema : visibilities
Type: array
The visibility settings for each field.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : ApplicationApiAccessContextConditions
Type: array
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : valueList
Type: array
The list of values used by the condition to test a function.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : ApplicationApiAccessEntity
Type: object
Show Source
  • Allowed Values: [ "ReadOnly", "ReadWrite", "Hidden" ]
    The visibility set for the entity.
  • Minimum Length: 1
    Maximum Length: 80
    The label of the entity.
Nested Schema : ApplicationApiAccessMethod
Type: object
Show Source
  • Minimum Length: 1
    Maximum Length: 80
    The label of the API method.
  • Allowed Values: [ "on", "off" ]
    The status of the API method.
Nested Schema : ApplicationApiAccessContextUser
Type: object
Show Source
Nested Schema : visibilities
Type: array
Show Source
Nested Schema : items
Type: object
The collection of visibility settings for the property.
Show Source
  • Allowed Values: [ "ReadOnly", "ReadWrite", "Mandatory" ]
    The visibility value assigned to the property.

Default Response

This section describes the default error response for this operation.
Body ()
Root Schema : Error
Type: object
Show Source
Back to Top

Examples

The following example shows how to retrieve API access (based on entities) by submitting a GET request on the REST resource using cURL:

cURL command Example

curl -u 'clientId@instance:clientSecret' \
 -X GET \
 --url 'https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscMetadata/v1/applications/5afbd589dd6042de63507621940f2f3a4a477fb6/apiAccess/metadataAPI'

Response Body Example

HTTP/1.1 200 OK
Server: nginx
Date: Thu, 03 Mar 2016 16:28:18 GMT
Content-Type: application/json; charset=utf-8
Connection: close
{
    "label": "metadataAPI",
    "name": "Metadata API",
    "status": "active",
    "apiEntities": [
        {
            "label": "metadata_api_activity_type",
            "access": "Hidden"
        },
        {
            "label": "metadata_api_applications",
            "access": "ReadWrite"
        },
        {
            "label": "metadata_api_capacity_area",
            "access": "Hidden"
        },
        {
            "label": "metadata_api_capacity_category",
            "access": "Hidden"
        },
        {
            "label": "metadata_api_map_layers",
            "access": "Hidden"
        },
        {
            "label": "metadata_api_non_working_reasons",
            "access": "Hidden"
        },
        {
            "label": "metadata_api_organizations",
            "access": "Hidden"
        },
        {
            "label": "metadata_api_property",
            "access": "Hidden"
        },
        {
            "label": "metadata_api_work_skill",
            "access": "Hidden"
        },
        {
            "label": "metadata_api_workzone",
            "access": "Hidden"
        }
    ],
    "links": [
        {
            "rel": "canonical",
            "href": "https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscMetadata/v1/applications/5afbd589dd6042de63507621940f2f3a4a477fb6/apiAccess/metadata_api"
        },
        {
            "rel": "describedby",
            "href": "https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscMetadata/v1/metadata-catalog/applications/apiAccess/metadata_api"
        }
    ]
}
Back to Top