An asset represents an instance of a given RXT asset type. A sample resource definition, together with information on all the properties that can be added in an assets resource definition are as follows:
Table of Contents |
---|
Sample
...
asset definition
Code Block |
---|
{ "attributes":{ "overview_provider":"wso2", "overview_name":"testasset1", "overview_version":"1.0.0", "overview_createdtime":"00000001439271880379" }, "name":"testasset1", "id":"b8ab988c-34dc-4e30-bcf5-ca4f6a5d6447", "type":"gadget", "path":"/_system/governance/gadgets/wso2/testasset1/1.0.0", "lifecycle":"SampleLifeCycle2", "lifecycleState":"Initial", "mediaType":"application/vnd.wso2-gadget+xml", "content":{ }, "thumbnail":"", "banner":"", "rating":0, "version":"1.0.0", "_default":true } |
Property definitions
Name | Description | Example Value | ||
---|---|---|---|---|
id | An ID to uniquely identify this asset of a given type. | 4d2ade44-b66c-4f8f-80bd-0125ae5044f6 | ||
type | The RXT type. | gadget | ||
path | Path to the asset. | /_system/governance/gadgets/admin/WSO2 Jira/1.0.0 | ||
lifecycle | The lifecycle bound to the asset. | SampleLifeCycle2 | ||
lifecycleState | The current lifecycle state of the resource.
| Published | ||
mediaType | The media type of the asset. | application/vnd.wso2-gadget+xml | ||
attributes | A JSON object representing the attributes of the asset. The contents of this object reflects the structure defined in the corresponding RXT definition file. If the attribute is located within a table element, it will be prefixed with the table name. | |||
name | The name of the asset. | WSO2 Jira | ||
thumbnail | The thumbnail of the asset. | |||
banner | The banner of the asset. | |||
rating | The value of the asset rating. | 0.0 | ||
version | The version of the asset. | 1.0.0 |