project resource availability
project resource availability
The OLP CLI supports the following:
- list the resources and subresources available for linking to the project.
project resource availability list
Lists the resources and subresources available for linking to the project identified by the provided HRN.
olp project resource availability list <project HRN> [command parameters]Required parameters:
<project HRN>The HRN of the project.--type <resource type>A type of resource for which link availability is listed for the specified<project HRN>. For example:catalog,pipeline,pipeline-template,schema,artifact,flow,flow-pattern,service.
Optional parameters:
--limit <max number of availabilities>Specifies the maximum number of resource link availabilities to be returned.--credentials <path to credentials file>The name of a credentials file to use with the command. Credentials files are downloaded separately from the platform portal.--profile <profile name>The name of the credentials profile to use from theolpcli.inifile.--jsonDisplays the command result in JSON format.--quietDisplays resources' HRNs, each on a new line.
For more information on using credentials and profiles, see Credentials setup.
Example:
The command below lists the resources, of the specified type, available for linking to the project identified by the
provided project HRN. The output is returned in json format.
olp project resource availability list hrn:here:authorization::org:project/my-project-1234 \
--type catalog --jsonolp project resource availability list hrn:here:authorization::org:project/my-project-1234 ^
--type catalog --jsonOutput:
{
"resources": [
{
"hrn": "hrn:here:data::org:mycatalog1",
"type": "catalog"
},
{
"hrn": "hrn:here:data::org:mycatalog2",
"type": "catalog",
"allowedActions": [
"readResource"
],
"linkOptions": [
{
"allowedActions": [
"readResource"
]
},
{
"externalId": "A-S0001234",
"allowedActions": [
"readResource"
],
"subresources": [
"USA-IL-CHICAGO",
"DEU"
]
}
]
},
{
"hrn": "hrn:here:data::org:mycatalog3",
"allowedActions": [
"readResource",
"writeResource"
],
"type": "catalog"
}
]
}Updated 18 days ago