Add Tier
Create a tier of an application by with specified membership criteria. The membership criteria id defined in terms of virtual machines or ip addresses/subnet. Please refer to API Guide on how to construct membership criteria.
Request
URI
POST
https://vrni.example.com/api/ni/groups/applications/{id}/tiers
COPY
Path Parameters
string
id
Required
entity id
Request Body
TierRequest
of type(s)
application/json
Required
{
"name": "tier-1",
"group_membership_criteria": [
{
"membership_type": "SearchMembershipCriteria",
"search_membership_criteria": {
"entity_type": "VirtualMachine",
"filter": "security_groups.entity_id = '18230:82:604573173'"
}
}
]
}
string
name
Optional
name
Responses
201
Created
Returns
Tier
of type(s)
application/json
This response body class contains all of the following:
BaseEntity
{
"entity_id": "string",
"name": "string",
"entity_type": "string",
"group_membership_criteria": [
{
"membership_type": "string",
"ip_address_membership_criteria": {
"ip_addresses": [
"string"
]
},
"search_membership_criteria": {
"entity_type": "string",
"filter": "string"
}
}
],
"application": {
"entity_id": "string",
"entity_type": "string"
}
}
400
Bad Request
Returns
ApiError
of type(s)
application/json
{
"code": 0,
"message": "string",
"details": [
{
"code": 0,
"message": "string",
"target": [
"string"
]
}
]
}
integer As int32
As int32
code
Optional
code
string
message
Optional
message
401
Unauthorized
Operation doesn't return any data structure
403
Forbidden
Operation doesn't return any data structure
404
Not Found
Operation doesn't return any data structure
500
Internal Error
Operation doesn't return any data structure