1. Packages
  2. Avi Provider
  3. API Docs
  4. Networkservice
avi 31.1.1 published on Monday, Apr 14, 2025 by vmware

avi.Networkservice

Explore with Pulumi AI

avi logo
avi 31.1.1 published on Monday, Apr 14, 2025 by vmware

    <!–

    Copyright 2021 VMware, Inc.
    SPDX-License-Identifier: Mozilla Public License 2.0
    

    –>

    layout: “avi”

    page_title: “Avi: avi.Networkservice” sidebar_current: “docs-avi-resource-networkservice” description: |- Creates and manages Avi NetworkService.

    avi.Networkservice

    The NetworkService resource allows the creation and management of Avi NetworkService

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as avi from "@pulumi/avi";
    
    const foo = new avi.Networkservice("foo", {tenantRef: "/api/tenant/?name=admin"});
    
    import pulumi
    import pulumi_avi as avi
    
    foo = avi.Networkservice("foo", tenant_ref="/api/tenant/?name=admin")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/avi/v31/avi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := avi.NewNetworkservice(ctx, "foo", &avi.NetworkserviceArgs{
    			TenantRef: pulumi.String("/api/tenant/?name=admin"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Avi = Pulumi.Avi;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Avi.Networkservice("foo", new()
        {
            TenantRef = "/api/tenant/?name=admin",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.avi.Networkservice;
    import com.pulumi.avi.NetworkserviceArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var foo = new Networkservice("foo", NetworkserviceArgs.builder()
                .tenantRef("/api/tenant/?name=admin")
                .build());
    
        }
    }
    
    resources:
      foo:
        type: avi:Networkservice
        properties:
          tenantRef: /api/tenant/?name=admin
    

    Create Networkservice Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Networkservice(name: string, args: NetworkserviceArgs, opts?: CustomResourceOptions);
    @overload
    def Networkservice(resource_name: str,
                       args: NetworkserviceArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def Networkservice(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       se_group_ref: Optional[str] = None,
                       service_type: Optional[str] = None,
                       vrf_ref: Optional[str] = None,
                       cloud_ref: Optional[str] = None,
                       configpb_attributes: Optional[Sequence[NetworkserviceConfigpbAttributeArgs]] = None,
                       markers: Optional[Sequence[NetworkserviceMarkerArgs]] = None,
                       name: Optional[str] = None,
                       networkservice_id: Optional[str] = None,
                       routing_services: Optional[Sequence[NetworkserviceRoutingServiceArgs]] = None,
                       tenant_ref: Optional[str] = None,
                       uuid: Optional[str] = None)
    func NewNetworkservice(ctx *Context, name string, args NetworkserviceArgs, opts ...ResourceOption) (*Networkservice, error)
    public Networkservice(string name, NetworkserviceArgs args, CustomResourceOptions? opts = null)
    public Networkservice(String name, NetworkserviceArgs args)
    public Networkservice(String name, NetworkserviceArgs args, CustomResourceOptions options)
    
    type: avi:Networkservice
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args NetworkserviceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args NetworkserviceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args NetworkserviceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NetworkserviceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NetworkserviceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var networkserviceResource = new Avi.Networkservice("networkserviceResource", new()
    {
        SeGroupRef = "string",
        ServiceType = "string",
        VrfRef = "string",
        CloudRef = "string",
        ConfigpbAttributes = new[]
        {
            new Avi.Inputs.NetworkserviceConfigpbAttributeArgs
            {
                Version = "string",
            },
        },
        Markers = new[]
        {
            new Avi.Inputs.NetworkserviceMarkerArgs
            {
                Key = "string",
                Values = new[]
                {
                    "string",
                },
            },
        },
        Name = "string",
        NetworkserviceId = "string",
        RoutingServices = new[]
        {
            new Avi.Inputs.NetworkserviceRoutingServiceArgs
            {
                AdvertiseBackendNetworks = "string",
                EnableAutoGateway = "string",
                EnableRouting = "string",
                EnableVipOnAllInterfaces = "string",
                EnableVmac = "string",
                FloatingIntfIp6Addresses = new[]
                {
                    new Avi.Inputs.NetworkserviceRoutingServiceFloatingIntfIp6AddressArgs
                    {
                        Addr = "string",
                        Type = "string",
                    },
                },
                FloatingIntfIp6Se2Addresses = new[]
                {
                    new Avi.Inputs.NetworkserviceRoutingServiceFloatingIntfIp6Se2AddressArgs
                    {
                        Addr = "string",
                        Type = "string",
                    },
                },
                FloatingIntfIpSe2s = new[]
                {
                    new Avi.Inputs.NetworkserviceRoutingServiceFloatingIntfIpSe2Args
                    {
                        Addr = "string",
                        Type = "string",
                    },
                },
                FloatingIntfIps = new[]
                {
                    new Avi.Inputs.NetworkserviceRoutingServiceFloatingIntfIpArgs
                    {
                        Addr = "string",
                        Type = "string",
                    },
                },
                FlowtableProfiles = new[]
                {
                    new Avi.Inputs.NetworkserviceRoutingServiceFlowtableProfileArgs
                    {
                        IcmpIdleTimeout = "string",
                        TcpClosedTimeout = "string",
                        TcpConnectionSetupTimeout = "string",
                        TcpHalfClosedTimeout = "string",
                        TcpIdleTimeout = "string",
                        TcpResetTimeout = "string",
                        UdpIdleTimeout = "string",
                    },
                },
                GracefulRestart = "string",
                NatPolicyRef = "string",
                RoutingByLinuxIpstack = "string",
            },
        },
        TenantRef = "string",
        Uuid = "string",
    });
    
    example, err := avi.NewNetworkservice(ctx, "networkserviceResource", &avi.NetworkserviceArgs{
    	SeGroupRef:  pulumi.String("string"),
    	ServiceType: pulumi.String("string"),
    	VrfRef:      pulumi.String("string"),
    	CloudRef:    pulumi.String("string"),
    	ConfigpbAttributes: avi.NetworkserviceConfigpbAttributeArray{
    		&avi.NetworkserviceConfigpbAttributeArgs{
    			Version: pulumi.String("string"),
    		},
    	},
    	Markers: avi.NetworkserviceMarkerArray{
    		&avi.NetworkserviceMarkerArgs{
    			Key: pulumi.String("string"),
    			Values: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	Name:             pulumi.String("string"),
    	NetworkserviceId: pulumi.String("string"),
    	RoutingServices: avi.NetworkserviceRoutingServiceArray{
    		&avi.NetworkserviceRoutingServiceArgs{
    			AdvertiseBackendNetworks: pulumi.String("string"),
    			EnableAutoGateway:        pulumi.String("string"),
    			EnableRouting:            pulumi.String("string"),
    			EnableVipOnAllInterfaces: pulumi.String("string"),
    			EnableVmac:               pulumi.String("string"),
    			FloatingIntfIp6Addresses: avi.NetworkserviceRoutingServiceFloatingIntfIp6AddressArray{
    				&avi.NetworkserviceRoutingServiceFloatingIntfIp6AddressArgs{
    					Addr: pulumi.String("string"),
    					Type: pulumi.String("string"),
    				},
    			},
    			FloatingIntfIp6Se2Addresses: avi.NetworkserviceRoutingServiceFloatingIntfIp6Se2AddressArray{
    				&avi.NetworkserviceRoutingServiceFloatingIntfIp6Se2AddressArgs{
    					Addr: pulumi.String("string"),
    					Type: pulumi.String("string"),
    				},
    			},
    			FloatingIntfIpSe2s: avi.NetworkserviceRoutingServiceFloatingIntfIpSe2Array{
    				&avi.NetworkserviceRoutingServiceFloatingIntfIpSe2Args{
    					Addr: pulumi.String("string"),
    					Type: pulumi.String("string"),
    				},
    			},
    			FloatingIntfIps: avi.NetworkserviceRoutingServiceFloatingIntfIpArray{
    				&avi.NetworkserviceRoutingServiceFloatingIntfIpArgs{
    					Addr: pulumi.String("string"),
    					Type: pulumi.String("string"),
    				},
    			},
    			FlowtableProfiles: avi.NetworkserviceRoutingServiceFlowtableProfileArray{
    				&avi.NetworkserviceRoutingServiceFlowtableProfileArgs{
    					IcmpIdleTimeout:           pulumi.String("string"),
    					TcpClosedTimeout:          pulumi.String("string"),
    					TcpConnectionSetupTimeout: pulumi.String("string"),
    					TcpHalfClosedTimeout:      pulumi.String("string"),
    					TcpIdleTimeout:            pulumi.String("string"),
    					TcpResetTimeout:           pulumi.String("string"),
    					UdpIdleTimeout:            pulumi.String("string"),
    				},
    			},
    			GracefulRestart:       pulumi.String("string"),
    			NatPolicyRef:          pulumi.String("string"),
    			RoutingByLinuxIpstack: pulumi.String("string"),
    		},
    	},
    	TenantRef: pulumi.String("string"),
    	Uuid:      pulumi.String("string"),
    })
    
    var networkserviceResource = new Networkservice("networkserviceResource", NetworkserviceArgs.builder()
        .seGroupRef("string")
        .serviceType("string")
        .vrfRef("string")
        .cloudRef("string")
        .configpbAttributes(NetworkserviceConfigpbAttributeArgs.builder()
            .version("string")
            .build())
        .markers(NetworkserviceMarkerArgs.builder()
            .key("string")
            .values("string")
            .build())
        .name("string")
        .networkserviceId("string")
        .routingServices(NetworkserviceRoutingServiceArgs.builder()
            .advertiseBackendNetworks("string")
            .enableAutoGateway("string")
            .enableRouting("string")
            .enableVipOnAllInterfaces("string")
            .enableVmac("string")
            .floatingIntfIp6Addresses(NetworkserviceRoutingServiceFloatingIntfIp6AddressArgs.builder()
                .addr("string")
                .type("string")
                .build())
            .floatingIntfIp6Se2Addresses(NetworkserviceRoutingServiceFloatingIntfIp6Se2AddressArgs.builder()
                .addr("string")
                .type("string")
                .build())
            .floatingIntfIpSe2s(NetworkserviceRoutingServiceFloatingIntfIpSe2Args.builder()
                .addr("string")
                .type("string")
                .build())
            .floatingIntfIps(NetworkserviceRoutingServiceFloatingIntfIpArgs.builder()
                .addr("string")
                .type("string")
                .build())
            .flowtableProfiles(NetworkserviceRoutingServiceFlowtableProfileArgs.builder()
                .icmpIdleTimeout("string")
                .tcpClosedTimeout("string")
                .tcpConnectionSetupTimeout("string")
                .tcpHalfClosedTimeout("string")
                .tcpIdleTimeout("string")
                .tcpResetTimeout("string")
                .udpIdleTimeout("string")
                .build())
            .gracefulRestart("string")
            .natPolicyRef("string")
            .routingByLinuxIpstack("string")
            .build())
        .tenantRef("string")
        .uuid("string")
        .build());
    
    networkservice_resource = avi.Networkservice("networkserviceResource",
        se_group_ref="string",
        service_type="string",
        vrf_ref="string",
        cloud_ref="string",
        configpb_attributes=[{
            "version": "string",
        }],
        markers=[{
            "key": "string",
            "values": ["string"],
        }],
        name="string",
        networkservice_id="string",
        routing_services=[{
            "advertise_backend_networks": "string",
            "enable_auto_gateway": "string",
            "enable_routing": "string",
            "enable_vip_on_all_interfaces": "string",
            "enable_vmac": "string",
            "floating_intf_ip6_addresses": [{
                "addr": "string",
                "type": "string",
            }],
            "floating_intf_ip6_se2_addresses": [{
                "addr": "string",
                "type": "string",
            }],
            "floating_intf_ip_se2s": [{
                "addr": "string",
                "type": "string",
            }],
            "floating_intf_ips": [{
                "addr": "string",
                "type": "string",
            }],
            "flowtable_profiles": [{
                "icmp_idle_timeout": "string",
                "tcp_closed_timeout": "string",
                "tcp_connection_setup_timeout": "string",
                "tcp_half_closed_timeout": "string",
                "tcp_idle_timeout": "string",
                "tcp_reset_timeout": "string",
                "udp_idle_timeout": "string",
            }],
            "graceful_restart": "string",
            "nat_policy_ref": "string",
            "routing_by_linux_ipstack": "string",
        }],
        tenant_ref="string",
        uuid="string")
    
    const networkserviceResource = new avi.Networkservice("networkserviceResource", {
        seGroupRef: "string",
        serviceType: "string",
        vrfRef: "string",
        cloudRef: "string",
        configpbAttributes: [{
            version: "string",
        }],
        markers: [{
            key: "string",
            values: ["string"],
        }],
        name: "string",
        networkserviceId: "string",
        routingServices: [{
            advertiseBackendNetworks: "string",
            enableAutoGateway: "string",
            enableRouting: "string",
            enableVipOnAllInterfaces: "string",
            enableVmac: "string",
            floatingIntfIp6Addresses: [{
                addr: "string",
                type: "string",
            }],
            floatingIntfIp6Se2Addresses: [{
                addr: "string",
                type: "string",
            }],
            floatingIntfIpSe2s: [{
                addr: "string",
                type: "string",
            }],
            floatingIntfIps: [{
                addr: "string",
                type: "string",
            }],
            flowtableProfiles: [{
                icmpIdleTimeout: "string",
                tcpClosedTimeout: "string",
                tcpConnectionSetupTimeout: "string",
                tcpHalfClosedTimeout: "string",
                tcpIdleTimeout: "string",
                tcpResetTimeout: "string",
                udpIdleTimeout: "string",
            }],
            gracefulRestart: "string",
            natPolicyRef: "string",
            routingByLinuxIpstack: "string",
        }],
        tenantRef: "string",
        uuid: "string",
    });
    
    type: avi:Networkservice
    properties:
        cloudRef: string
        configpbAttributes:
            - version: string
        markers:
            - key: string
              values:
                - string
        name: string
        networkserviceId: string
        routingServices:
            - advertiseBackendNetworks: string
              enableAutoGateway: string
              enableRouting: string
              enableVipOnAllInterfaces: string
              enableVmac: string
              floatingIntfIp6Addresses:
                - addr: string
                  type: string
              floatingIntfIp6Se2Addresses:
                - addr: string
                  type: string
              floatingIntfIpSe2s:
                - addr: string
                  type: string
              floatingIntfIps:
                - addr: string
                  type: string
              flowtableProfiles:
                - icmpIdleTimeout: string
                  tcpClosedTimeout: string
                  tcpConnectionSetupTimeout: string
                  tcpHalfClosedTimeout: string
                  tcpIdleTimeout: string
                  tcpResetTimeout: string
                  udpIdleTimeout: string
              gracefulRestart: string
              natPolicyRef: string
              routingByLinuxIpstack: string
        seGroupRef: string
        serviceType: string
        tenantRef: string
        uuid: string
        vrfRef: string
    

    Networkservice Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Networkservice resource accepts the following input properties:

    SeGroupRef string
    Service engine group to which the service is applied. It is a reference to an object of type serviceenginegroup. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    ServiceType string
    Indicates the type of networkservice. Enum options - ROUTING_SERVICE. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    VrfRef string
    Vrf context to which the service is scoped. It is a reference to an object of type vrfcontext. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    CloudRef string
    It is a reference to an object of type cloud. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    ConfigpbAttributes List<NetworkserviceConfigpbAttribute>
    Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Markers List<NetworkserviceMarker>
    List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Name string
    Name of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    NetworkserviceId string
    RoutingServices List<NetworkserviceRoutingService>
    Routing information of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    TenantRef string
    It is a reference to an object of type tenant. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Uuid string
    Uuid of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    SeGroupRef string
    Service engine group to which the service is applied. It is a reference to an object of type serviceenginegroup. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    ServiceType string
    Indicates the type of networkservice. Enum options - ROUTING_SERVICE. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    VrfRef string
    Vrf context to which the service is scoped. It is a reference to an object of type vrfcontext. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    CloudRef string
    It is a reference to an object of type cloud. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    ConfigpbAttributes []NetworkserviceConfigpbAttributeArgs
    Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Markers []NetworkserviceMarkerArgs
    List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Name string
    Name of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    NetworkserviceId string
    RoutingServices []NetworkserviceRoutingServiceArgs
    Routing information of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    TenantRef string
    It is a reference to an object of type tenant. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Uuid string
    Uuid of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    seGroupRef String
    Service engine group to which the service is applied. It is a reference to an object of type serviceenginegroup. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    serviceType String
    Indicates the type of networkservice. Enum options - ROUTING_SERVICE. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    vrfRef String
    Vrf context to which the service is scoped. It is a reference to an object of type vrfcontext. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    cloudRef String
    It is a reference to an object of type cloud. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    configpbAttributes List<NetworkserviceConfigpbAttribute>
    Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    markers List<NetworkserviceMarker>
    List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    name String
    Name of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    networkserviceId String
    routingServices List<NetworkserviceRoutingService>
    Routing information of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    tenantRef String
    It is a reference to an object of type tenant. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    uuid String
    Uuid of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    seGroupRef string
    Service engine group to which the service is applied. It is a reference to an object of type serviceenginegroup. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    serviceType string
    Indicates the type of networkservice. Enum options - ROUTING_SERVICE. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    vrfRef string
    Vrf context to which the service is scoped. It is a reference to an object of type vrfcontext. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    cloudRef string
    It is a reference to an object of type cloud. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    configpbAttributes NetworkserviceConfigpbAttribute[]
    Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    markers NetworkserviceMarker[]
    List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    name string
    Name of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    networkserviceId string
    routingServices NetworkserviceRoutingService[]
    Routing information of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    tenantRef string
    It is a reference to an object of type tenant. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    uuid string
    Uuid of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    se_group_ref str
    Service engine group to which the service is applied. It is a reference to an object of type serviceenginegroup. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    service_type str
    Indicates the type of networkservice. Enum options - ROUTING_SERVICE. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    vrf_ref str
    Vrf context to which the service is scoped. It is a reference to an object of type vrfcontext. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    cloud_ref str
    It is a reference to an object of type cloud. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    configpb_attributes Sequence[NetworkserviceConfigpbAttributeArgs]
    Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    markers Sequence[NetworkserviceMarkerArgs]
    List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    name str
    Name of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    networkservice_id str
    routing_services Sequence[NetworkserviceRoutingServiceArgs]
    Routing information of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    tenant_ref str
    It is a reference to an object of type tenant. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    uuid str
    Uuid of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    seGroupRef String
    Service engine group to which the service is applied. It is a reference to an object of type serviceenginegroup. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    serviceType String
    Indicates the type of networkservice. Enum options - ROUTING_SERVICE. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    vrfRef String
    Vrf context to which the service is scoped. It is a reference to an object of type vrfcontext. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    cloudRef String
    It is a reference to an object of type cloud. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    configpbAttributes List<Property Map>
    Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    markers List<Property Map>
    List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    name String
    Name of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    networkserviceId String
    routingServices List<Property Map>
    Routing information of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    tenantRef String
    It is a reference to an object of type tenant. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    uuid String
    Uuid of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Networkservice resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Networkservice Resource

    Get an existing Networkservice resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: NetworkserviceState, opts?: CustomResourceOptions): Networkservice
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cloud_ref: Optional[str] = None,
            configpb_attributes: Optional[Sequence[NetworkserviceConfigpbAttributeArgs]] = None,
            markers: Optional[Sequence[NetworkserviceMarkerArgs]] = None,
            name: Optional[str] = None,
            networkservice_id: Optional[str] = None,
            routing_services: Optional[Sequence[NetworkserviceRoutingServiceArgs]] = None,
            se_group_ref: Optional[str] = None,
            service_type: Optional[str] = None,
            tenant_ref: Optional[str] = None,
            uuid: Optional[str] = None,
            vrf_ref: Optional[str] = None) -> Networkservice
    func GetNetworkservice(ctx *Context, name string, id IDInput, state *NetworkserviceState, opts ...ResourceOption) (*Networkservice, error)
    public static Networkservice Get(string name, Input<string> id, NetworkserviceState? state, CustomResourceOptions? opts = null)
    public static Networkservice get(String name, Output<String> id, NetworkserviceState state, CustomResourceOptions options)
    resources:  _:    type: avi:Networkservice    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CloudRef string
    It is a reference to an object of type cloud. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    ConfigpbAttributes List<NetworkserviceConfigpbAttribute>
    Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Markers List<NetworkserviceMarker>
    List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Name string
    Name of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    NetworkserviceId string
    RoutingServices List<NetworkserviceRoutingService>
    Routing information of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    SeGroupRef string
    Service engine group to which the service is applied. It is a reference to an object of type serviceenginegroup. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    ServiceType string
    Indicates the type of networkservice. Enum options - ROUTING_SERVICE. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    TenantRef string
    It is a reference to an object of type tenant. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Uuid string
    Uuid of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    VrfRef string
    Vrf context to which the service is scoped. It is a reference to an object of type vrfcontext. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    CloudRef string
    It is a reference to an object of type cloud. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    ConfigpbAttributes []NetworkserviceConfigpbAttributeArgs
    Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Markers []NetworkserviceMarkerArgs
    List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Name string
    Name of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    NetworkserviceId string
    RoutingServices []NetworkserviceRoutingServiceArgs
    Routing information of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    SeGroupRef string
    Service engine group to which the service is applied. It is a reference to an object of type serviceenginegroup. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    ServiceType string
    Indicates the type of networkservice. Enum options - ROUTING_SERVICE. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    TenantRef string
    It is a reference to an object of type tenant. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Uuid string
    Uuid of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    VrfRef string
    Vrf context to which the service is scoped. It is a reference to an object of type vrfcontext. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    cloudRef String
    It is a reference to an object of type cloud. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    configpbAttributes List<NetworkserviceConfigpbAttribute>
    Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    markers List<NetworkserviceMarker>
    List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    name String
    Name of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    networkserviceId String
    routingServices List<NetworkserviceRoutingService>
    Routing information of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    seGroupRef String
    Service engine group to which the service is applied. It is a reference to an object of type serviceenginegroup. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    serviceType String
    Indicates the type of networkservice. Enum options - ROUTING_SERVICE. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    tenantRef String
    It is a reference to an object of type tenant. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    uuid String
    Uuid of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    vrfRef String
    Vrf context to which the service is scoped. It is a reference to an object of type vrfcontext. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    cloudRef string
    It is a reference to an object of type cloud. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    configpbAttributes NetworkserviceConfigpbAttribute[]
    Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    markers NetworkserviceMarker[]
    List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    name string
    Name of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    networkserviceId string
    routingServices NetworkserviceRoutingService[]
    Routing information of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    seGroupRef string
    Service engine group to which the service is applied. It is a reference to an object of type serviceenginegroup. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    serviceType string
    Indicates the type of networkservice. Enum options - ROUTING_SERVICE. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    tenantRef string
    It is a reference to an object of type tenant. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    uuid string
    Uuid of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    vrfRef string
    Vrf context to which the service is scoped. It is a reference to an object of type vrfcontext. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    cloud_ref str
    It is a reference to an object of type cloud. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    configpb_attributes Sequence[NetworkserviceConfigpbAttributeArgs]
    Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    markers Sequence[NetworkserviceMarkerArgs]
    List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    name str
    Name of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    networkservice_id str
    routing_services Sequence[NetworkserviceRoutingServiceArgs]
    Routing information of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    se_group_ref str
    Service engine group to which the service is applied. It is a reference to an object of type serviceenginegroup. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    service_type str
    Indicates the type of networkservice. Enum options - ROUTING_SERVICE. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    tenant_ref str
    It is a reference to an object of type tenant. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    uuid str
    Uuid of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    vrf_ref str
    Vrf context to which the service is scoped. It is a reference to an object of type vrfcontext. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    cloudRef String
    It is a reference to an object of type cloud. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    configpbAttributes List<Property Map>
    Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    markers List<Property Map>
    List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    name String
    Name of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    networkserviceId String
    routingServices List<Property Map>
    Routing information of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    seGroupRef String
    Service engine group to which the service is applied. It is a reference to an object of type serviceenginegroup. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    serviceType String
    Indicates the type of networkservice. Enum options - ROUTING_SERVICE. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    tenantRef String
    It is a reference to an object of type tenant. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    uuid String
    Uuid of the networkservice. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    vrfRef String
    Vrf context to which the service is scoped. It is a reference to an object of type vrfcontext. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.

    Supporting Types

    NetworkserviceConfigpbAttribute, NetworkserviceConfigpbAttributeArgs

    Version string
    Version string
    version String
    version string
    version String

    NetworkserviceMarker, NetworkserviceMarkerArgs

    Key string
    Values List<string>
    Key string
    Values []string
    key String
    values List<String>
    key string
    values string[]
    key str
    values Sequence[str]
    key String
    values List<String>

    NetworkserviceRoutingService, NetworkserviceRoutingServiceArgs

    NetworkserviceRoutingServiceFloatingIntfIp, NetworkserviceRoutingServiceFloatingIntfIpArgs

    Addr string
    Type string
    Addr string
    Type string
    addr String
    type String
    addr string
    type string
    addr str
    type str
    addr String
    type String

    NetworkserviceRoutingServiceFloatingIntfIp6Address, NetworkserviceRoutingServiceFloatingIntfIp6AddressArgs

    Addr string
    Type string
    Addr string
    Type string
    addr String
    type String
    addr string
    type string
    addr str
    type str
    addr String
    type String

    NetworkserviceRoutingServiceFloatingIntfIp6Se2Address, NetworkserviceRoutingServiceFloatingIntfIp6Se2AddressArgs

    Addr string
    Type string
    Addr string
    Type string
    addr String
    type String
    addr string
    type string
    addr str
    type str
    addr String
    type String

    NetworkserviceRoutingServiceFloatingIntfIpSe2, NetworkserviceRoutingServiceFloatingIntfIpSe2Args

    Addr string
    Type string
    Addr string
    Type string
    addr String
    type String
    addr string
    type string
    addr str
    type str
    addr String
    type String

    NetworkserviceRoutingServiceFlowtableProfile, NetworkserviceRoutingServiceFlowtableProfileArgs

    Package Details

    Repository
    avi vmware/terraform-provider-avi
    License
    Notes
    This Pulumi package is based on the avi Terraform Provider.
    avi logo
    avi 31.1.1 published on Monday, Apr 14, 2025 by vmware