[{"label":"Latest (6.4.0)","version":"latest"}]
vrealize-network-insight-api

Add Tier

Description

Create a tier of an application with specified membership criteria or members list. The membership criteria is defined in terms of virtual machines or IP addresses/subnet. Please refer to API Guide on how to construct membership criteria.

Request

Request

URL

URL


post
https://vrni.example.com/api/ni/groups/applications/{id}/tiers
Copy

Path Parameters

Path Parameters

string
id Required

The Entity ID of object requestion information on


Request Body

Request Body

TierRequest of type(s) application/json Required
{
    "group_membership_criteria": [
        {
            "membership_type": "SearchMembershipCriteria",
            "search_membership_criteria": {
                "entity_type": "VirtualMachine",
                "filter": "security_groups.entity_id = '18230:82:604573173'"
            }
        },
        {
            "ip_address_membership_criteria": {
                "ip_addresses": [
                    "10.0.0.1",
                    "10.0.0.1/24",
                    "10.0.0.1-10.0.0.200"
                ]
            },
            "membership_type": "IPAddressMembershipCriteria"
        }
    ],
    "member_list": {
        "kubernetes_services": [
            {
                "key": {
                    "entity_id": "18230:1504:263252172",
                    "entity_type": "KUBERNETESSERVICE"
                },
                "name": "KS"
            }
        ],
        "physical_ips": [
            {
                "key": {
                    "entity_id": "18230:541:365252372",
                    "entity_type": "IPENDPOINT"
                },
                "name": "52.35.41.245"
            }
        ],
        "vms": [
            {
                "key": {
                    "entity_id": "18230:1:1158969162",
                    "entity_type": "VIRTUALMACHINE"
                },
                "name": "VM1"
            },
            {
                "key": {
                    "entity_id": "18230:601:863301375",
                    "entity_type": "EC2INSTANCE"
                },
                "name": "EC2-VM1"
            },
            {
                "key": {
                    "entity_id": "18230:1702:264351372",
                    "entity_type": "AZUREVM"
                },
                "name": "Azure-VM1"
            }
        ]
    },
    "name": "tier-1"
}
group_membership_criteria Optional

EntityType currently restricted to VirtualMachine


member_list Optional

Member list


string
name Optional
Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

201 Created

Returns Tier of type(s) application/json
This response body class contains all of the following: BaseEntity, InlineTier1
Errors

Errors

ApiError
400

Bad Request


401

Unauthorized


403

Forbidden


404

Not Found


500

Internal Error

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"group_membership_criteria":[{"membership_type":"SearchMembershipCriteria","search_membership_criteria":{"entity_type":"VirtualMachine","filter":"security_groups.entity_id = '18230:82:604573173'"}},{"ip_address_membership_criteria":{"ip_addresses":["10.0.0.1","10.0.0.1/24","10.0.0.1-10.0.0.200"]},"membership_type":"IPAddressMembershipCriteria"}],"member_list":{"kubernetes_services":[{"key":{"entity_id":"18230:1504:263252172","entity_type":"KUBERNETESSERVICE"},"name":"KS"}],"physical_ips":[{"key":{"entity_id":"18230:541:365252372","entity_type":"IPENDPOINT"},"name":"52.35.41.245"}],"vms":[{"key":{"entity_id":"18230:1:1158969162","entity_type":"VIRTUALMACHINE"},"name":"VM1"},{"key":{"entity_id":"18230:601:863301375","entity_type":"EC2INSTANCE"},"name":"EC2-VM1"},{"key":{"entity_id":"18230:1702:264351372","entity_type":"AZUREVM"},"name":"Azure-VM1"}]},"name":"tier-1"}' https://vrni.example.com/api/ni/groups/applications/{id}/tiers


Feedback

Was this page helpful?