MachineSpecification
Specification for a cloud agnostic machine.
{
"name": "string",
"projectId": "e058",
"description": "string",
"flavor": "small, medium, large",
"image": "vmware-gold-master, ubuntu-latest, rhel-compliant, windows",
"imageRef": "ami-f6795a8c",
"nics": [
{
"name": "string",
"description": "string",
"deviceIndex": 1,
"networkId": "dcd9",
"addresses": [
"string"
],
"securityGroupIds": [
"string"
]
}
],
"disks": [
{
"name": "string",
"description": "string",
"blockDeviceId": "1298765"
}
],
"bootConfig": {
"content": "#cloud-config\nrepo_update: true\nrepo_upgrade: all\n\npackages:\n - mysql-server\n\nruncmd:\n - sed -e '/bind-address/ s/^#*/#/' -i /etc/mysql/mysql.conf.d/mysqld.cnf\n - service mysql restart\n - mysql -e \"GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'mysqlpassword';\"\n - mysql -e \"FLUSH PRIVILEGES;\"\n"
},
"machineCount": 3,
"constraints": [
{
"mandatory": false,
"expression": "ha:strong"
}
],
"imageDiskConstraints": [
{
"mandatory": false,
"expression": "ha:strong"
}
],
"tags": [
{
"key": "string",
"value": "string"
}
]
}
A human-friendly name used as an identifier in APIs that support this option.
The id of the project the current user belongs to.
Describes machine within the scope of your organization and is not propagated to the cloud
Flavor of machine instance.
Type of image used for this machine.
Direct image reference used for this machine (name, path, location, uri, etc.). Valid if no image property is provided
A set of network interface controller specifications for this machine. If not specified, then a default network connection will be created.
Number of machines to provision - default 1.
Constraints that are used to drive placement policies for the virtual machine that is produced from this specification. Constraint expressions are matched against tags on existing placement targets.
Constraints that are used to drive placement policies for the image disk. Constraint expressions are matched against tags on existing placement targets.
A set of tag keys and optional values that should be set on any resource that is produced from this specification.
Additional custom properties that may be used toextend the machine.