Change Security Groups
Change security groups for a vSphere machine network interfaces. Securing group that is part of the same deployment can be added or removed for a machine network interface.
The id of the vSphere machine.
The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
Change security groups details
Show optional properties
{
"id": "9.0E49",
"_links": {}
}
{
"id": "9.0E49",
"createdAt": "2012-09-27",
"updatedAt": "2012-09-27",
"owner": "[email protected]",
"ownerType": "ad_group",
"orgId": "42413b31-1716-477e-9a88-9dc1c3cb1cdf",
"_links": {
"empty": false
},
"name": "my-name",
"description": "my-description",
"networkInterfaceSpecifications": [
{
"name": "string",
"description": "string",
"deviceIndex": 1,
"networkId": "54097407-4532-460c-94a8-8f9e18f4c925",
"fabricNetworkId": "54097407-4532-460c-94a8-8f9e18f4c925",
"addresses": [
"10.1.2.190"
],
"macAddress": "[\"00:50:56:99:d8:34\"]",
"securityGroupIds": [
"string"
],
"customProperties": {
"awaitIp": "true"
}
}
]
}
The id of this resource instance
Date when the entity was created. The date is in ISO 8601 and UTC.
Date when the entity was last updated. The date is ISO 8601 and UTC.
Email of the user or display name of the group that owns the entity.
Type of a owner(user/ad_group) that owns the entity.
The id of the organization this entity belongs to.
HATEOAS of the entity
A human-friendly name used as an identifier in APIs that support this option.
A human-friendly description.
A set of network interface controller specifications for this machine. If not specified, then no reconfiguration will be performed.
Accepted
"RequestTracker Object"
Progress of the request as percentage.
Status message of the request.
Status of the request.
Collection of resources.
Name of the operation.
ID of this request.
Self link of this request.
ID of the deployment, this request is connected to.
Invalid Request - bad data
"ServiceErrorResponse Object"
message
messageId
stackTrace
statusCode
errorCode
details
serverErrorId
documentKind
internalErrorCode
Forbidden
"ServiceErrorResponse Object"
message
messageId
stackTrace
statusCode
errorCode
details
serverErrorId
documentKind
internalErrorCode
Not found
"ServiceErrorResponse Object"
message
messageId
stackTrace
statusCode
errorCode
details
serverErrorId
documentKind
internalErrorCode
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"_links:"object","id:"string"}' https://{api_host}/iaas/api/machines/{id}/operations/change-security-groups