Project Resource Link Availability Commands

The OLP CLI supports the following:

  • list the resources available to be linked to the project.

Lists the resources available to be linked to the project identified by the provided HRN.

olp project resource link 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 in the result (10 by default).
  • --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 Display the command's result in JSON format.
  • --quiet Display 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 link availability list hrn:here:authorization::myrealm:project/my-project-1234 \
    --type catalog --json
olp project resource link availability list hrn:here:authorization::myrealm:project/my-project-1234 ^
    --type catalog --json

Output:


{
  "resources": [
    {
      "hrn": "hrn:here:data::myrealm:mycatalog1",
      "type": "catalog"
    },
    {
      "hrn": "hrn:here:data::myrealm:mycatalog2",
      "allowedActions": [
        "readResource"
      ],
      "type": "catalog"
    },
    {
      "hrn": "hrn:here:data::myrealm:mycatalog3",
      "allowedActions": [
        "readResource",
        "writeResource"
      ],
      "type": "catalog"
    }
  ]
}

results matching ""

    No results matching ""