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
-
apiLabel(required): string
Minimum Length:
1
Maximum Length:255
The label used to identify the API.Allowed Values:[ "partsCatalogAPI", "capacityAPI", "coreAPI", "fieldCollaborationAPI", "inboundAPI", "metadataAPI", "outboundAPI", "statisticsAPI" ]
-
label(required): string
Minimum Length:
1
Maximum Length:255
The label used to retrieve the API access information of the application.
Response
Supported Media Types
- application/json
- application/schema+json
200 Response
This section describes the 200 status response for this operation.
Root Schema : Application
Type:
object
Title:
Show Source
Application
-
activityFields:
array Activity Fields
Title:
Activity Fields
The activity fields of the Inbound API specified in the request. -
apiEntities:
array API Entities
Title:
API Entities
The entities of Core API or Metadata API specified in the request. -
apiMethods:
array API Methods
Title:
API Methods
The methods Capacity API specified in the request. -
inventoryFields:
array Inventory Fields
Title:
Inventory Fields
The inventory fields of the Inbound Interface API specified in the request. -
label:
string
Title:
Label
Minimum Length:1
Maximum Length:255
The label of the API. -
name:
string
Title:
Name
Minimum Length:1
Maximum Length:255
The name of the API. -
providerFields:
array Provider Fields
Title:
Provider Fields
The provider fields of the Inbound Interface API specified in the request. -
requestFields:
array Request Fields
Title:
Request Fields
Not used. The request fields visibility is not applicable for any API. -
status:
string
Title:
Status
Allowed Values:[ "active", "inactive" ]
The status set for the application. -
userFields:
array User Fields
Title:
User Fields
Not used. The user fields visibility is not applicable for any API.
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:
Show Source
object
-
label:
string
Minimum Length:
1
Maximum Length:255
The label of the activity property. -
valuesVisibility:
array valuesVisibility
The visibility settings for each property.
-
visibilities:
array visibilities
The visibility settings for each field.
Nested Schema : items
Type:
Show Source
object
-
conditions:
array ApplicationApiAccessContextConditions
-
value:
string
The value set for the property.
Nested Schema : items
Type:
Show Source
object
-
function(required):
string
Allowed Values:
[ "in", "not_in", "contains", "dcontain", "is_null", "is_not_null" ]
The function used by the condition to display the property. -
label(required):
string
Minimum Length:
1
Maximum Length:40
The label of the property specified for the application. -
value:
string
The value used by the condition to test a function.
-
valueList:
array valueList
The list of values used by the condition to test a function.
Nested Schema : valueList
Type:
array
The list of values used by the condition to test a function.
Show Source
Nested Schema : items
Type:
Show Source
object
-
conditions:
array ApplicationApiAccessContextConditions
-
visibility:
string
Allowed Values:
[ "ReadOnly", "ReadWrite", "Mandatory" ]
The visibility settings defined for an activity field.
Nested Schema : ApplicationApiAccessEntity
Type:
Show Source
object
-
access:
string
Allowed Values:
[ "ReadOnly", "ReadWrite", "Hidden" ]
The visibility set for the entity. -
label:
string
Minimum Length:
1
Maximum Length:80
The label of the entity.
Nested Schema : ApplicationApiAccessMethod
Type:
Show Source
object
-
label:
string
Minimum Length:
1
Maximum Length:80
The label of the API method. -
status:
string
Allowed Values:
[ "on", "off" ]
The status of the API method.
Nested Schema : ApplicationApiAccessContextUser
Type:
Show Source
object
-
label:
string
Minimum Length:
1
Maximum Length:255
The label of the user property. -
visibilities:
array visibilities
Nested Schema : visibilities
Type:
Show Source
array
-
Array of:
object items
The collection of visibility settings for the property.
Nested Schema : items
Type:
object
The collection of visibility settings for the property.
Show Source
-
visibility:
string
Allowed Values:
[ "ReadOnly", "ReadWrite", "Mandatory" ]
The visibility value assigned to the property.
Default Response
This section describes the default error response for this operation.
Root Schema : Error
Type:
Show Source
object
-
detail:
string
The detailed description of this error.
-
status:
string
The HTTP status code of this error.
-
title(required):
string
The brief description of this error.
-
type(required):
string
The URL of the web page containing more details about this error.
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"
}
]
}