VMware Aria Automation Orchestrator

 View Only

How to get information about the "Tier 0 Logical router" used in a Network Profile using API call

  • 1.  How to get information about the "Tier 0 Logical router" used in a Network Profile using API call

    Posted Mar 05, 2025 05:37 AM

    Dear Colleagues,

    I hope you are fine.

    I am working on an Orchestrator action to retrieve information about the tier 0 logical router used in a specific network profile through an API call.

    I was able to get the customProperties within the network profile as follows:

    request = restClient.createRequest("GET", "/iaas/api/network-profiles" , null);
    response:
    customProperties {3}
        datacenterId:Datacenter:datacenter-x
        edgeClusterRouterStateLink:/resources/routers/95f8307c-5197-4ab7-b78b-e9b937384aab
        tier0LogicalRouterStateLink:/resources/routers/41281a79-48ed-4354-b411-bafde9cf8942
    

    One of the custom properties is called tier0LogicalRouterStateLink

    Do you know if there is a way to get the information about router with id equals to 1281a79-48ed-4354-b411-bafde9cf8942?

    Is there any API to get the name of the router based on its ID?

    Best regards

    Antonio