catalog
catalog
The OLP CLI supports the following:
- list all visible catalogs
- create a catalog
- update a catalog
- show a catalog
- delete a catalog
- list dependencies of a catalog
- list permissions on a catalog across all organizations
- grant permissions on a catalog
- revoke permissions on a catalog
- delete versions of a catalog
- inspect a catalog
catalog list
Lists all catalogs that you can access and returns a catalog name on a separate line. The list of catalogs that are shown are dependent on the scope of the request:
- If the request contains no scope, the response will include all catalogs you can access, including catalogs inside all projects that you can access.
- If the request contains a project HRN as a scope, the response will only include catalogs that are part of that project.
To get more information about a catalog, see the show command.
olp catalog list [filter] [command options]Optional parameters:
[filter]Freeform text used to filter the catalog list. The filter checks if the catalog HRN contains thefilterstring.--credentials <path to credentials file>The name of a credentials file to use with the command. Credentials files are downloaded separately from the portal.--profile <profile name>The name of the credentials profile to use from theolpcli.inifile.--jsonDisplays the command result in JSON format.--quietDisplays catalog HRNs, each on a new line.--scope <project HRN>Specifies the project HRN to use as the scope in the request. The value specified with--scopeoverrides any value forhere.token.scopeprovided in the credentials file used for the command.
NoteThe
olp catalog listcommand returns all catalogs that are accessible to an app according to app permissions. The app can have access to catalogs based on direct permissions (that is, catalogs owned by or shared with the app), or by indirect permissions (such as when the app has permissions due to group membership or a realm-wide policy).
For more information on using credentials and profiles, see Credentials setup.
Example with filtering:
olp catalog list "first-catalog-example-id" --jsonOutput:
{"results": {"items": [
{"hrn": "hrn:here:data::org:first-catalog-example-id"}
]}}Example without filtering:
olp catalog list --jsonOutput:
{"results": {"items": [
{"hrn": "hrn:here:data::org:first-catalog-example-id"},
{"hrn": "hrn:here:data::org:second-catalog-example-id"}
]}}catalog create
Creates an empty catalog in the platform. Access to the created catalog depends on the scope of the request:
- If the request contains no scope, the calling App will be granted full access to the catalog, including the ability to share with others.
- If the request contains a project HRN as a scope, the catalog will be created inside of the project and access to it will be automatically available to all users and apps that have access to the project.
olp catalog create <catalog ID> <catalog name> --summary <catalog summary> [command options]
WarningCatalog IDs are part of the catalog HRN and are publicly visible. When you specify a catalog ID, do not include private or company confidential information. If you need to include private and confidential information, use the catalog name field instead, as that is private by default.
Required parameters:
<catalog ID>The ID of the catalog that the platform uses to generate the catalog HRN.<catalog name>The human-readable name of the catalog. Overrides any values provided with the--configparameter through the command line.--description <catalog description>A detailed description of the catalog and its contents. Enclose the description in quotes. Overrides any values provided with the--configparameter through the command line.--summary <catalog summary>A one-line summary of the catalog contents. Overrides any values provided with the--configparameter through the command line.
NoteYou can also specify the summary for a catalog through a configuration file referenced by the
--configoption.
Optional parameters:
--config <path to config file>The path to a local file that contains configuration for a new catalog.
NoteThe catalog HRN in the configuration file is ignored as the platform automatically generates the new HRN based on the catalog ID and your current app credentials.
-
--tags <tag1 tag2 ...>Catalog keywords used for search discovery. Overrides any values provided with the--configparameter through the command line. -
--notificationsIf set to true, a notification is written to the notification stream layer each time the catalog’s version changes. The default value is false. Overrides any values provided with the--configparameter through the command line. -
--skip-sharing-with-userPrevents sharing catalog permissions with the associated user account. The default value is false, as the CLI shares permissions with the user account. This option may be used to prevent associated user accounts from reaching the limit of resources they are allowed to create. If a scope is provided in the request, this option is required to be true and assumed to be a value of true. A value of false is ignored. -
--checkDisplays the configuration for the catalog to be created. -
--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 catalog HRN in JSON format. -
--quietDisplays the catalog HRN.NoteThe
--checkparameter cannot be combined with--quiet. -
--scope <project HRN>Specifies the project HRN to use as the scope in the request. The value specified with--scopeoverrides any value forhere.token.scopeprovided in the credentials file used for the command. -
--replicationSpace-separated list of supported replication regions. The first value is the primary region and the second value, if passed, is the secondary replication region. This parameter is optional, however, if passed, the primary region must be provided. If specified, the secondary region should not be the same as primary. For more information about multi-region support, see Data Security and Durability.NoteIf
--replicationparameter is passed, it overrides any values provided with the--configparameter. Otherwise, catalog is created using thereplicationconfiguration from the JSON file passed with the--config <config file>parameter.Sample JSON file with the
replicationproperty:{ . . . "replication": { "regions": [ { "role": "primary", "id": "us-oregon" }, { "role": "secondary", "id": "eu-ireland" } ] }, . . . } -
--auto-version-deletion <number of latest versions to keep>Defines the maximum number of catalog versions to keep at a time. If this maximum is reached and a new version is created, the oldest catalog version is automatically deleted. By default, automatic version deletion for catalogs is disabled.<number of latest versions to keep>must be of typelong. Overrides any values provided with the--configparameter through the command line.NoteThis parameter is applicable only with the
--config <config file>parameter in case the<config file>contains definition for at least one versioned layer.To disable automatic version deletion see catalog update commands.
-
--ttl <number of days>This property defines the number of days to keep versions, counting from their creation time, as part of the auto-version deletion mechanism. The minimum ttl value is3days. By default, ttl for catalogs is disabled. This parameter overrides any values provided with the--configparameter through the command line.NoteThis parameter is applicable only with the
--config <config file>parameter in case the<config file>contains definition for at least one versioned layer.To disable automatic version deletion see catalog update commands.
-
--retry <number of retries>Defines a number of retries if catalog creation failed with the403status code and theThese credentials do not authorize accesserror. The default value is0, which means no retries. The timeout before the first retry is 5 seconds. For each next retry, the timeout value will be doubled: 5 seconds, 10 seconds, 20 seconds, 40 seconds and so on.
For more information on using credentials and profiles, see Credentials setup.
Example:
The command below creates the empty catalog first-catalog-example on the platform,
and displays the catalog's HRN in the output.
To pass multiple arguments to a parameter that accepts them, separate
the arguments with spaces.
olp catalog create first-catalog-example-id first-catalog-example --summary "A new summary"Output:
Catalog hrn:here:data::org:first-catalog-example-id has been createdExample:
The command below creates an empty catalog second-catalog-example with two
tags (tag1 and tag2) in the platform and displays the catalog's HRN in the
console output.
olp catalog create second-catalog-example-id second-catalog-example --tags tag1 tag2 --summary "A new summary"Output:
Catalog hrn:here:data::org:second-catalog-example-id has been createdExample:
The command below creates an empty catalog third-catalog-example with
a primary replication region:
olp catalog create third-catalog-example-id third-catalog-example --replication eu-ireland --summary "A new summary"Output:
Catalog hrn:here:data::org:third-catalog-example-id has been createdExample:
The command below creates an empty catalog fourth-catalog-example with
primary and secondary replication regions:
olp catalog create fourth-catalog-example-id fourth-catalog-example --replication eu-ireland us-oregon --summary "A new summary"Output:
Catalog hrn:here:data::org:fourth-catalog-example-id has been createdNote that in the examples above, catalog names first-catalog-example and similar
serve as placeholders where you should pass the names of your own catalogs.
catalog update
Updates an existing catalog in the platform with the configuration specified in a configuration file.
olp catalog update <catalog HRN> [command options]
WarningCatalog configuration changes
The platform does not allow you to change a catalog's layer configuration.
Required parameters:
<catalog HRN>The HRN of the catalog.
Optional parameters:
-
--config <path to config file>The path of the file with the updated configuration. -
--name <catalog name>The human-readable name of the catalog. Overrides values provided with--configthrough the command line. -
--summary <catalog summary>A one-line summary of the catalog contents. Overrides values provided with--configthrough the command line. -
--description <catalog description>A detailed description of the catalog and its contents. Enclose the description in quotes. Overrides values provided with--configthrough the command line. -
--tags <tag1 tag2 ...>Catalog keywords used for search discovery. To unset tags, use--tags []. Overrides values provided with--configthrough the command line. -
--notificationsIf set to true, a notification is written to the notification stream layer each time the catalog’s version changes. The default value isfalse. Overrides values provided with--configthrough the command line. -
--checkDisplays the configuration for the catalog that would be applied. -
--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 empty output with no additional information.NoteThe
--checkparameter cannot be combined with--quiet. -
--scope <project HRN>Specifies the project HRN to use as the scope in the request. The value specified with--scopeoverrides any value forhere.token.scopeprovided in the credentials file used for the command. -
--auto-version-deletion <number of latest versions to keep | off>Defines the maximum number of catalog versions to keep at a time. If this maximum is reached and a new version is created, the oldest catalog version is automatically deleted. By default, automatic version deletion for catalogs is disabled.<number of latest versions to keep | off>can be of typelongor key wordoffto remove automatic version deletion from a catalog. Overrides any values provided with the--configparameter through the command line. -
--ttl <number of days | off>This property defines the number of days to keep versions, counting from their creation time, as part of the auto-version deletion mechanism. The minimum ttl value is3days. By default, ttl for catalogs is disabled.<number of days | off>can be of typelongor key wordoffto remove ttl from a catalog. Overrides any values provided with the--configparameter through the command line.
For more information on using credentials and profiles, see Credentials setup.
Example with config file:
olp catalog update hrn:here:data::org:first-catalog-example-id --config path/to/config.jsonExample configuration for a catalog with a volatile layer:
{
"name": "volatile-volatile-catalog",
"summary": "A short summary",
"description": "A longer description about what the catalog contains",
"tags": [
"tag1",
"tag2"
],
"layers": [
{
"id": "volatile-layer",
"name": "volatile-layer",
"summary": "A short summary",
"description": "A longer description about what the layer contains",
"layerType": "volatile",
"partitioningScheme": "generic",
"partitioning": {
"scheme": "generic"
},
"volume": {
"volumeType": "volatile"
},
"contentType": "application/x-protobuf"
}
]
}Example configuration for a catalog with a versioned layer:
{
"name": "versioned-durable-catalog",
"summary": "A short summary",
"description": "A longer description about what the catalog contains",
"tags": [
"tag1",
"tag2"
],
"layers": [
{
"id": "versioned-layer",
"name": "versioned-layer",
"summary": "A short summary",
"description": "A longer description about what the layer contains",
"layerType": "versioned",
"partitioningScheme": "generic",
"partitioning": {
"scheme": "generic"
},
"volume": {
"volumeType": "durable"
},
"contentType": "application/x-protobuf",
"crc": "CRC-32C",
"digest": "MD5"
}
]
}Example configuration for a catalog with a stream layer:
{
"name": "stream-durable-catalog",
"summary": "A short summary",
"description": "A longer description about what the catalog contains",
"tags": [
"tag1",
"tag2"
],
"layers": [
{
"id": "stream-layer",
"name": "stream-layer",
"summary": "A short summary",
"description": "A longer description about what the layer contains",
"layerType": "stream",
"partitioningScheme": "generic",
"partitioning": {
"scheme": "generic"
},
"volume": {
"volumeType": "durable"
},
"contentType": "application/x-protobuf"
}
]
}Example configuration for a catalog with an interactive map layer:
{
"name": "interactive-map-catalog",
"summary": "A short summary",
"description": "A longer description about what the catalog contains",
"tags": [
"tag1",
"tag2"
],
"layers": [
{
"id": "interactive-map-layer",
"name": "interactive-map-layer",
"summary": "A short summary",
"description": "A longer description about what the layer contains",
"layerType": "interactivemap",
"volume": {
"volumeType": "durable"
},
"contentType": "application/geo+json",
"partitioning": {},
"interactiveMapProperties": {
"searchableProperties": [
"property-1",
"property-2"
]
}
}
]
}Output:
Please wait until the catalog is updated. This may take several minutes
Catalog hrn:here:data::org:first-catalog-example-id has been updatedExample with additional parameters:
olp catalog update hrn:here:data::org:first-catalog-example-id --name first-catalog-example-updated \
--summary "Updated summary" --description "Updated description"olp catalog update hrn:here:data::org:first-catalog-example-id --name first-catalog-example-updated ^
--summary "Updated summary" --description "Updated description"Output:
Please wait until the catalog is updated. This may take several minutes
Catalog hrn:here:data::org:first-catalog-example-id has been updatedExample with a catalog automatic version deletion removal:
olp catalog update hrn:here:data::org:first-catalog-example-id --auto-version-deletion offolp catalog update hrn:here:data::org:first-catalog-example-id --auto-version-deletion offOutput:
Please wait until the catalog is updated. This may take several minutes
Catalog hrn:here:data::org:first-catalog-example-id has been updatedFor more information on catalog configurations, see Data API.
catalog show
Shows the catalog configuration.
olp catalog show <catalog HRN> [command options]Required parameters:
<catalog HRN>The HRN of the catalog
Optional parameters:
--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 catalog's layer types and layer IDs, separated by space.--scope <project HRN>Specifies the project HRN to use as the scope in the request. The value specified with--scopeoverrides any value forhere.token.scopeprovided in the credentials file used for the command.
For more information on using credentials and profiles, see Credentials setup.
Example:
The command below shows the catalog configuration in JSON format.
olp catalog show hrn:here:data::org:first-catalog-example-id --json
Note
catalog show --jsoncommand output does not includecoverageandcontactsfields for catalog andhrnfield for a layer, that are present in the Config API response.catalog show --jsoncommand output containsmetadataVersionandmetadataMinimumVersionfields, that are received from the Metadata API. This meanscatalog show --jsoncommand output contains merged responses from Config API and Metadata API.
Output:
{
"summary": "",
"owner": {
"creator": {"id": "mzLcb1rL8nskvDQpCFEF"},
"organisation": {"id": "org"}
},
"billingTags": [],
"hrn": "hrn:here:data::org:first-catalog-example-id",
"created": "2018-03-02T10:41:09.309Z",
"name": "first-catalog-example",
"layers": [
{
"summary": "Summary",
"volume": {"volumeType": "durable"},
"layerType": "versioned",
"billingTags": [],
"crc": "CRC-32C",
"name": "Test Layer",
"contentEncoding": "gzip",
"description": "some description",
"partitioningScheme": "generic",
"partitioning": {"scheme": "generic"},
"id": "test-layer",
"contentType": "application/octet-stream",
"digest": "SHA-1",
"tags": []
},
{
"summary": "Summary",
"volume": {"volumeType": "durable"},
"layerType": "versioned",
"billingTags": [],
"crc": "CRC-32C",
"name": "Test Layer1",
"description": "some description",
"partitioningScheme": "generic",
"partitioning": {"scheme": "generic"},
"id": "test-layer1",
"contentType": "application/octet-stream",
"tags": []
}
],
"description": "",
"notifications": {
"enabled": false
},
"automaticVersionDeletion": {"numberOfVersionsToKeep": 100},
"id": "first-catalog-example-id",
"version": 4,
"metadataVersion": 21
"metadataMinimumVersion": 0
"tags": []
}catalog delete
Deletes a catalog from the platform.
olp catalog delete <catalog HRN> [command options]
WarningDeleting catalogs
This command removes the catalog completely; it cannot be restored.
Required parameters:
<catalog HRN>The HRN of the catalog.
Optional parameters:
--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.--quietDisplays empty output with no additional information.--scope <project HRN>Specifies the project HRN to use as the scope in the request. The value specified with--scopeoverrides any value forhere.token.scopeprovided in the credentials file used for the command.
For more information on using credentials and profiles, see Credentials setup.
Example:
The command below deletes the catalog from the platform.
olp catalog delete hrn:here:data::org:first-catalog-example-idOutput:
Catalog hrn:here:data::org:first-catalog-example-id has been removedcatalog dependency list
Lists all catalog dependencies for a specific version.
olp catalog dependency list <catalog HRN>Required parameters:
<catalog HRN>The HRN of the catalog.
Optional parameters:
--version <catalog version>The catalog version. The default value is the latest version.--direct-onlyWhen enabled, only direct dependencies are displayed. When disabled, both direct and indirect dependencies are displayed. Disabled 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 theolpcli.inifile.--jsonDisplays the command result in JSON format.--quietDisplays HRNs of catalog dependencies, each on a new line.--scope <project HRN>Specifies the project HRN to use as the scope in the request. The value specified with--scopeoverrides any value forhere.token.scopeprovided in the credentials file used for the command.
For more information on using credentials and profiles, see Credentials setup.
Example:
The command below lists all direct dependencies for the
hrn:here:data::org:first-catalog-example-id
catalog in JSON format.
olp catalog dependency list hrn:here:data::org:first-catalog-example-id --direct-only --jsonOutput:
{
"hrn": "hrn:here:data::org:first-catalog-example-id",
"version": 1,
"dependencies": [{
"hrn": "hrn:here:data::org:second-catalog-example-id",
"direct": true,
"version": 3
}]
}catalog permission list
List the permissions of users, apps, and groups across all organizations associated with a catalog.
olp catalog permission list <catalog HRN> [command options]Required parameters:
<catalog HRN>The HRN of the catalog.
Optional parameters:
--type <app|group|user>Specifies the type of entity to list.--limit <max number of entities>Specifies the maximum number of entities to be returned in the result (100 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 theolpcli.inifile.--jsonDisplays the command result in JSON format.--quietDisplays the entities' HRNs, each on a new line.
For more information on using credentials and profiles, see Credentials setup.
Example:
The command below lists the all the permissions associated with the
hrn:here:data::org:first-catalog-example-id
catalog in JSON format.
olp catalog permission list hrn:here:data::org:first-catalog-example-id \
--jsonolp catalog permission list hrn:here:data::org:first-catalog-example-id ^
--jsonOutput:
{"entityGrants": [
{
"entityId": {
"id": "HERE-05966c89-aaf1-4ae2-b0e4-3676b3f8b8c3",
"hrn": "hrn:here:account::org:user/HERE-05966c89-aaf1-4ae2-b0e4-3676b3f8b8c3",
"realmHrn": "hrn:here:account::org:realm/org",
"type": "user"
},
"permissions": [
{
"id": "PERM-7heTYzsR05VR_p3IeyaZKDdlVPb1zJJUmzLI9JUEDcc",
"action": "read",
"effect": "allow",
"resource": "hrn:here:data::org:first-catalog-example-id",
"serviceId": "SERVICE-b9acbead-4666-487e-88b0-cfb64ed0ac6a"
},
{
"id": "PERM-7heTYzsR0RV5_p3IeyaZKDdlVPb1zJJUmzLI9JUDEbb",
"action": "write",
"effect": "allow",
"resource": "hrn:here:data::org:first-catalog-example-id",
"serviceId": "SERVICE-b9acbead-4666-487e-88b0-cfb64ed0ac6a"
}
]
},
{
"entityId": {
"id": "my-app-1234",
"hrn": "hrn:here:account::org:app/my-app-1234",
"realmHrn": "hrn:here:account::org:realm/org",
"type": "app"
},
"permissions": [
{
"id": "PERM-7heTYzsR05VR_p3IeyaZKDdlVPb1zJJUmzKJ9JUECdd",
"action": "manage",
"effect": "allow",
"resource": "hrn:here:data::org:first-catalog-example-id",
"serviceId": "SERVICE-b9acbead-4666-487e-88b0-cfb64ed0ac6a"
}
]
}
]
}catalog permission grant
NoteAny catalog that is created in a project can be made available to be linked to other projects using the resource link availability commands. For more information, see managing project resource availability.
The following command is only applicable to catalogs created outside of a project.
Grants permission to perform specified actions on a catalog for users, apps, or groups.
olp catalog permission grant <catalog HRN> [command options]
WarningAny schemas associated with layers in the catalog are also shared.
Required parameters:
<catalog HRN>The HRN of the catalog.- Either of the following recipients:
--group <groupID1 groupID2 ...>The list of group IDs you want to grant catalog access to, separated by space.--user <userID1 userID2 ...>The list of user IDs you want to grant catalog access to, separated by space. This information can be found in the.here/credentials.propertiesfile, in the user's home directory, or via your profile.--app <appID1 appID2 ...>The list of application IDs you want to grant catalog access to, separated by space.
- Either of the following permissions:
--manageGrants manage and share access to the catalog.--readGrants read access to the catalog.--writeGrants write access to the catalog.--shareGrants share access to the catalog.
NoteYou must specify at least one
--manage,--read,--write, orshareparameter for a corresponding--group,--user, or--app.
Optional parameters:
--cross-realmA flag that allows granting catalog permissions (--read,--write,--manage,--share) to users, apps, or groups from different realms.--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.--quietDisplays empty output with no additional information.
For more information on using credentials and profiles, see Credentials setup.
Example with group ID:
olp catalog permission grant hrn:here:data::org:first-catalog-example-id --group \
GROUP-example-group-id --read --write --manage --shareolp catalog permission grant hrn:here:data::org:first-catalog-example-id --group ^
GROUP-example-group-id --read --write --manage --shareOutput:
Granted read, write, manage, share access for a group GROUP-example-group-id to the catalog hrn:here:data::org:first-catalog-example-idcatalog permission revoke
NoteAny catalog that is created in a project can be made unavailable to be linked to other projects using the resource link availability commands. For more information, see managing project resource availability.
The following command is only applicable for catalogs created outside of a project
Revokes permissions to perform specified actions on a catalog for users, apps, or groups.
olp catalog permission revoke <catalog HRN> [command options]Required parameters:
<catalog HRN>The HRN of the catalog.- Either of the following recipients:
--app <appID1 appID2 ...>The list of application IDs you want to revoke catalog access from, separated by space.--user <userID1 userID2 ...>The list of user IDs you want to revoke catalog access from, separated by space. This information can be found in the.here/credentials.propertiesfile, in the user's home directory, or via your profile.--group <groupID1 groupID2 ...>The list of group IDs you want to revoke catalog access from, separated by space.
- Either of the following permissions:
--manageRevokes manage and share access to the catalog.--readRevokes read access to the catalog.--writeRevokes write access to the catalog.--shareRevokes share access to the catalog.
NoteYou must specify at least one
--manage,--read,--write, orshareparameter for a corresponding--group,--user, or--app.
Optional parameters:
--cross-realmA flag that allows revoking catalog permissions (--read,--write,--manage,--share) from users, apps, or groups from different realms.NoteThe
catalog permission revokecommand does not accept any of the--read|--write|--manage|--shareflags if--cross-realmis passed.--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.--quietDisplays empty output with no additional information.
For more information on using credentials and profiles, see Credentials setup.
Example with group ID:
olp catalog permission revoke hrn:here:data::org:first-catalog-example-id \
--group GROUP-example-group-id --read --write --manage --shareolp catalog permission revoke hrn:here:data::org:first-catalog-example-id ^
--group GROUP-example-group-id --read --write --manage --shareOutput:
Revoked read, write, manage, share access for a group GROUP-example-group-id to the catalog hrn:here:data::org:first-catalog-example-idcatalog version delete
Deletes those catalog versions that are less than the specified one and sets a new
minimum version. To check the current minimum version, refer to the values for
metadataMinimumVersion in JSON output and metadata minimum version in
verbose output of the olp catalog show command.
NoteCatalog version
The catalog version in this command stands for a single version of all the versioned layers in the catalog.
olp catalog version delete <catalog HRN> <version> [command options]
WarningRisk of data loss
The result of the delete command is irreversible. Once data is deleted, it cannot be restored.
Required parameters:
<catalog HRN>The HRN of the catalog.<version>The earliest catalog version that will not be deleted.
Optional parameters:
--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.--quietDisplays empty output with no additional information.--scope <project HRN>Specifies the project HRN to use as the scope in the request. The value specified with--scopeoverrides any value forhere.token.scopeprovided in the credentials file used for the command.
For more information on using credentials and profiles, see Credentials setup.
Example:
The command below deletes versions of the
hrn:here:data::org:first-catalog-example-id
catalog that are less than the 4 version.
olp catalog version delete hrn:here:data::org:first-catalog-example-id 4Output:
Successfully deleted catalog versions less than 4catalog inspect
Opens an external browser and navigates to the catalog overview page in the platform portal. The command fails if you cannot access the catalog.
To inspect a specific layer, see the
olp catalog layer inspect command.
olp catalog inspect <catalog HRN> [command options]Optional parameters:
--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.--quietDisplays empty output with no additional information.--scope <project HRN>Specifies the project HRN to use as the scope in the request. The value specified with--scopeoverrides any value forhere.token.scopeprovided in the credentials file used for the command.
NoteThe
olp catalog inspectcommand checks whether the catalog is accessible to an app according to app permissions. However, for the catalog to be visible in the portal, your user too must have read permissions to the catalog.
For more information on using credentials and profiles, see Credentials setup.
Example:
The command below opens an external browser and navigates to the
hrn:here:data::org:first-catalog-example-id
catalog overview page in the platform portal.
olp catalog inspect hrn:here:data::org:first-catalog-example-idOutput:
A browser page should be opened shortly. If the browser does not show up, manually navigate to https://platform.here.com/data/hrn:here:data::org:first-catalog-example-id
NOTE: Your platform user must have read access to hrn:here:data::org:first-catalog-example-idUpdated 21 days ago