Skip to content

Resource#

A Resource defines the main structures within a project, outlining the various elements that the project comprises. Unlike Projects, Resources do not have a describe command. Resources can be defined and managed using YAML configuration files. They can be specified globally or within a workspace. Global Resources are accessible throughout the entire application, while workspace-specific Resources are only available within their respective workspaces.

Key Features of a Resource#

  • Project Integration: Defines the main structures within a project.
  • YAML Configuration: Resources are defined and managed through YAML files.
  • Scope: Can be defined globally or within a specific workspace.

Example YAML Configuration#

A typical Resource configuration in YAML might look like this:

Type: Resource
Kind: Object
Name: LibraryData
MetaData:
Specifications:
  Name: LibraryData
  Set: EShopping
  Workspace: MyWorks

Creating Resource#

To crete a new resource, use the resource submit command:

pars resource submit --file <file_path>

Listing Resources#

To list all available resources, use the resource list command:

pars resource list

Removing Resource#

To remove a resource, use the resource remove command:

pars resource remove <resource_name>

All Resource Types#