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>. Acceptable values: 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 the olpcli.ini file.
  • --json Displays the command result in JSON format.
  • --quiet Displays 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.

Linux
Windows
olp project resource availability list hrn:here-cn:authorization::org:project/my-project-1234 \
    --type catalog --json
olp project resource availability list hrn:here-cn:authorization::org:project/my-project-1234 ^
    --type catalog --json

Output:


{
  "resources": [
    {
      "hrn": "hrn:here-cn:data::org:mycatalog1",
      "type": "catalog"
    },
    {
      "hrn": "hrn:here-cn:data::org:mycatalog2",
      "type": "catalog",
      "allowedActions": [
        "readResource"
      ],
      "linkOptions": [
        {
            "allowedActions": [
                "readResource"
            ]
        },
        {
            "externalId": "A-S0001234",
            "allowedActions": [
                "readResource"
            ],
            "subresources": [
                "USA-IL-CHICAGO",
                "DEU"
            ]
        }
     ]
    },
    {
      "hrn": "hrn:here-cn:data::org:mycatalog3",
      "allowedActions": [
        "readResource",
        "writeResource"
      ],
      "type": "catalog"
    }
  ]
}

results matching ""

    No results matching ""