Asset Define
Paritech.Authority.Control Asset Define <Service> <Type> <Code>
Defines or redefines an Asset.
Any existing context data for this Asset will be merged with whatever is supplied, unless using the -Rename
option.
Arguments
Section titled “Arguments”Field | Description |
---|---|
Service | The Authority Service to connect to. |
Type | The type of the Asset. |
Code | The unique code of the Asset. |
Available Options
Section titled “Available Options”Option | Description |
---|---|
-App <Code> | Specifies metadata for an Application. Affects the -Meta and -ID options. Can be specified multiple times. |
-ID <Name> | Specifies a new ID for the current App. Can be specified multiple times. |
-Meta <Key> <Value> | Supplies a metadata key/value for the current App. Can be specified multiple times. |
-Rename <Type> <Code> | Specifies a new type and code for an existing Asset. |
-Val <Key> <Value> | Supplies a key/value for the current ID. Can be specified multiple times. |
Output
Section titled “Output”The process result will be 0 on success, and a negative value on failure.
Examples
Section titled “Examples”Paritech.Authority.Control Asset Define XOSP User 1234
More Information
Section titled “More Information”Utilises the /asset API.