latestOpenAPI 3.0.02026-08-2045003.8 MB
72813baf8d47
Ocean ECS
Update VNG
Update a specified virtual node group in an Ocean cluster.
put/ocean/aws/ecs/launchSpec/{launchSpecId}
Parameters
#/paths/~1azure~1costs/get/parameters/0 — unresolved $ref
#/paths/~1ocean~1aws~1ecs~1launchSpec~1%7BlaunchSpecId%7D/get/parameters/1 — unresolved $ref
#/paths/~1aws~1ec2~1group~1%7BgroupId%7D/put/parameters/2 — unresolved $ref
Request body
Example request
{
"launchSpec": {
"id": "ols-1234abcd",
"name": "mySpecLauncher",
"imageId": "img2",
"images": [
{
"id": "ami-ID"
}
],
"userData": "dXNlcmJhc2g2NGVuY29kZWQ=",
"securityGroupIds": [
"sg1, sg3"
],
"instanceTypes": [
"c3.2xlarge, c4.2xlarge"
],
"preferredSpotTypes": [
"c3.2xlarge",
"c4.2xlarge"
],
"subnetIds": [
"subnet-01234566789abcdef, subnet-9876543210ghijkl"
],
"iamInstanceProfile": [
"arn:aws:iam::123456789123:instance-profile"
],
"attributes": [
{
"key": "key1",
"value": "value1"
}
],
"autoScale": {
"headrooms": [
{
"cpuPerUnit": 1024,
"memoryPerUnit": 512,
"numOfUnits": 2
}
]
},
"tags": [
{
"tagKey": "Creator",
"tagValue": "John Doe"
}
],
"blockDeviceMappings": [
{
"deviceName": "/dev/xvda",
"ebs": {
"throughput": 125,
"iops": 1,
"kmsKeyId": "alias/aws/ebs",
"snapshotId": "snap-abcdefghi111110",
"volumeType": "gp2",
"dynamicVolumeSize": {
"baseSize": 50,
"resource": "CPU",
"sizePerResourceUnit": 20
}
}
}
],
"instanceMetadataOptions": {
"httpTokens": "optional",
"httpPutResponseHopLimit": 12
},
"scheduling": {
"tasks": [
{
"isEnabled": true,
"cronExpression": "0 1 * * *",
"taskType": "manualHeadroomUpdate",
"config": {
"headrooms": [
{
"cpuPerUnit": 1024,
"memoryPerUnit": 512,
"numOfUnits": 2
}
]
}
}
]
},
"strategy": {
"spotPercentage": 70
},
"createdAt": "2019-06-03T08:13:08.000Z",
"updatedAt": "2019-06-10T15:06:13.000Z"
}
}