This class represents a simple script that can run on a provisioned VM.
name | data type | description |
---|---|---|
name | string | The name of the script |
contents | string | The contents of the script |
Properties inherited from OwnedObject |
||
owner | string | The owner (username) for the particular object. This value is set when the DAO saves the object based on the principal who made the call. It is created automatically. No need to set during a POST |
id | string | The UID of this object. This value is auto generated by the DAO when the object is saved. |
timestamp | number | The object's creation date in unix time stamp. It is created automatically. No need to set during a POST |
Example
{ "name" : "config.sh", "contents" : " #!/bin/bash\necho \"Reading system-wide config....\" >&2\\n. /etc/cool.cfg\nif [ -r ~/.coolrc ]; then\n echo \"Reading user config....\" >&2\\n . ~/.coolrc\\nfi", "owner" : "user1", "id" : "58e3946e0fb4f562d84ba1ad", "timestamp" : 1499793079011 }