APPLICATIONS
APPLICATIONS
Class AssetHelper This is a helper class for assets.
User can manage assets in cloudmunch using this helper.
__construct(\CloudMunch\helper\CloudMunch\AppContext $appContext, \CloudMunch\helper\CloudMunch\loghandling\LogHandler $logHandler)
Constructor to initialise Application Context and LogHandler.
| \CloudMunch\helper\CloudMunch\AppContext | $appContext | |
| \CloudMunch\helper\CloudMunch\loghandling\LogHandler | $logHandler |
addAsset(string $assetname, string $assettype, string $assetStatus, string $assetExternalRef, array $assetData) : \CloudMunch\helper\json
Helper method to add an asset to CloudMunch service.
| string | $assetname | Name of the asset |
| string | $assettype | Type of asset |
| string | $assetStatus | Asset status ,valid values are STATUS_RUNNING,STATUS_STOPPED,STATUS_NIL |
| string | $assetExternalRef | ID of any referenced asset. |
| array | $assetData | Array of asset properties |
object data {"id":"contextid","name":"contextname"}