1. Packages
  2. Infoblox Provider
  3. API Docs
  4. NetworkView
infoblox 2.9.0 published on Monday, Apr 14, 2025 by infobloxopen

infoblox.NetworkView

Explore with Pulumi AI

infoblox logo
infoblox 2.9.0 published on Monday, Apr 14, 2025 by infobloxopen

    # Network view

    The infoblox.NetworkView resource enables you to perform create and update operations on network views in a NIOS appliance. The resource represents the ‘networkview’ WAPI object in NIOS.

    The following list describes the parameters you can define in the infoblox.NetworkView resource block:

    • name: required, specifies the desired name of the network view as shown in the NIOS appliance. The name has the same requirements as the corresponding parameter in WAPI.
    • comment: optional, describes the network view.
    • ext_attrs: optional, specifies the set of NIOS extensible attributes that will be attached to the network view.

    !> Once the network view is created, you cannot change the name parameter.

    You can modify or even remove the comment and ext_attrs parameters from the resource block.

    Example of Network View Resource

    import * as pulumi from "@pulumi/pulumi";
    import * as infoblox from "@pulumi/infoblox";
    
    const netview1234 = new infoblox.NetworkView("netview1234", {
        comment: "example network view",
        extAttrs: JSON.stringify({
            Location: "the North pole",
        }),
    });
    
    import pulumi
    import json
    import pulumi_infoblox as infoblox
    
    netview1234 = infoblox.NetworkView("netview1234",
        comment="example network view",
        ext_attrs=json.dumps({
            "Location": "the North pole",
        }))
    
    package main
    
    import (
    	"encoding/json"
    
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/infoblox/v2/infoblox"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"Location": "the North pole",
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		_, err = infoblox.NewNetworkView(ctx, "netview1234", &infoblox.NetworkViewArgs{
    			Comment:  pulumi.String("example network view"),
    			ExtAttrs: pulumi.String(json0),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Infoblox = Pulumi.Infoblox;
    
    return await Deployment.RunAsync(() => 
    {
        var netview1234 = new Infoblox.NetworkView("netview1234", new()
        {
            Comment = "example network view",
            ExtAttrs = JsonSerializer.Serialize(new Dictionary<string, object?>
            {
                ["Location"] = "the North pole",
            }),
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.infoblox.NetworkView;
    import com.pulumi.infoblox.NetworkViewArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    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 netview1234 = new NetworkView("netview1234", NetworkViewArgs.builder()
                .comment("example network view")
                .extAttrs(serializeJson(
                    jsonObject(
                        jsonProperty("Location", "the North pole")
                    )))
                .build());
    
        }
    }
    
    resources:
      netview1234:
        type: infoblox:NetworkView
        properties:
          comment: example network view
          extAttrs:
            fn::toJSON:
              Location: the North pole
    

    The minimal resource block required to create a network view is as follows:

    import * as pulumi from "@pulumi/pulumi";
    import * as infoblox from "@pulumi/infoblox";
    
    const nv1 = new infoblox.NetworkView("nv1", {});
    
    import pulumi
    import pulumi_infoblox as infoblox
    
    nv1 = infoblox.NetworkView("nv1")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/infoblox/v2/infoblox"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := infoblox.NewNetworkView(ctx, "nv1", nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Infoblox = Pulumi.Infoblox;
    
    return await Deployment.RunAsync(() => 
    {
        var nv1 = new Infoblox.NetworkView("nv1");
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.infoblox.NetworkView;
    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 nv1 = new NetworkView("nv1");
    
        }
    }
    
    resources:
      nv1:
        type: infoblox:NetworkView
    

    Create NetworkView Resource

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

    Constructor syntax

    new NetworkView(name: string, args?: NetworkViewArgs, opts?: CustomResourceOptions);
    @overload
    def NetworkView(resource_name: str,
                    args: Optional[NetworkViewArgs] = None,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def NetworkView(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    comment: Optional[str] = None,
                    ext_attrs: Optional[str] = None,
                    name: Optional[str] = None,
                    network_view_id: Optional[str] = None)
    func NewNetworkView(ctx *Context, name string, args *NetworkViewArgs, opts ...ResourceOption) (*NetworkView, error)
    public NetworkView(string name, NetworkViewArgs? args = null, CustomResourceOptions? opts = null)
    public NetworkView(String name, NetworkViewArgs args)
    public NetworkView(String name, NetworkViewArgs args, CustomResourceOptions options)
    
    type: infoblox:NetworkView
    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 NetworkViewArgs
    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 NetworkViewArgs
    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 NetworkViewArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NetworkViewArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NetworkViewArgs
    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 networkViewResource = new Infoblox.NetworkView("networkViewResource", new()
    {
        Comment = "string",
        ExtAttrs = "string",
        Name = "string",
        NetworkViewId = "string",
    });
    
    example, err := infoblox.NewNetworkView(ctx, "networkViewResource", &infoblox.NetworkViewArgs{
    Comment: pulumi.String("string"),
    ExtAttrs: pulumi.String("string"),
    Name: pulumi.String("string"),
    NetworkViewId: pulumi.String("string"),
    })
    
    var networkViewResource = new NetworkView("networkViewResource", NetworkViewArgs.builder()
        .comment("string")
        .extAttrs("string")
        .name("string")
        .networkViewId("string")
        .build());
    
    network_view_resource = infoblox.NetworkView("networkViewResource",
        comment="string",
        ext_attrs="string",
        name="string",
        network_view_id="string")
    
    const networkViewResource = new infoblox.NetworkView("networkViewResource", {
        comment: "string",
        extAttrs: "string",
        name: "string",
        networkViewId: "string",
    });
    
    type: infoblox:NetworkView
    properties:
        comment: string
        extAttrs: string
        name: string
        networkViewId: string
    

    NetworkView 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 NetworkView resource accepts the following input properties:

    Comment string
    A description of the network view.
    ExtAttrs string
    The Extensible attributes of the network container to be added/updated, as a map in JSON format
    Name string
    Specifies the desired name of the network view as shown in the NIOS appliance. The name has the same requirements as the corresponding parameter in WAPI.
    NetworkViewId string
    Comment string
    A description of the network view.
    ExtAttrs string
    The Extensible attributes of the network container to be added/updated, as a map in JSON format
    Name string
    Specifies the desired name of the network view as shown in the NIOS appliance. The name has the same requirements as the corresponding parameter in WAPI.
    NetworkViewId string
    comment String
    A description of the network view.
    extAttrs String
    The Extensible attributes of the network container to be added/updated, as a map in JSON format
    name String
    Specifies the desired name of the network view as shown in the NIOS appliance. The name has the same requirements as the corresponding parameter in WAPI.
    networkViewId String
    comment string
    A description of the network view.
    extAttrs string
    The Extensible attributes of the network container to be added/updated, as a map in JSON format
    name string
    Specifies the desired name of the network view as shown in the NIOS appliance. The name has the same requirements as the corresponding parameter in WAPI.
    networkViewId string
    comment str
    A description of the network view.
    ext_attrs str
    The Extensible attributes of the network container to be added/updated, as a map in JSON format
    name str
    Specifies the desired name of the network view as shown in the NIOS appliance. The name has the same requirements as the corresponding parameter in WAPI.
    network_view_id str
    comment String
    A description of the network view.
    extAttrs String
    The Extensible attributes of the network container to be added/updated, as a map in JSON format
    name String
    Specifies the desired name of the network view as shown in the NIOS appliance. The name has the same requirements as the corresponding parameter in WAPI.
    networkViewId String

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    InternalId string
    Ref string
    NIOS object's reference, not to be set by a user.
    Id string
    The provider-assigned unique ID for this managed resource.
    InternalId string
    Ref string
    NIOS object's reference, not to be set by a user.
    id String
    The provider-assigned unique ID for this managed resource.
    internalId String
    ref String
    NIOS object's reference, not to be set by a user.
    id string
    The provider-assigned unique ID for this managed resource.
    internalId string
    ref string
    NIOS object's reference, not to be set by a user.
    id str
    The provider-assigned unique ID for this managed resource.
    internal_id str
    ref str
    NIOS object's reference, not to be set by a user.
    id String
    The provider-assigned unique ID for this managed resource.
    internalId String
    ref String
    NIOS object's reference, not to be set by a user.

    Look up Existing NetworkView Resource

    Get an existing NetworkView 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?: NetworkViewState, opts?: CustomResourceOptions): NetworkView
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            comment: Optional[str] = None,
            ext_attrs: Optional[str] = None,
            internal_id: Optional[str] = None,
            name: Optional[str] = None,
            network_view_id: Optional[str] = None,
            ref: Optional[str] = None) -> NetworkView
    func GetNetworkView(ctx *Context, name string, id IDInput, state *NetworkViewState, opts ...ResourceOption) (*NetworkView, error)
    public static NetworkView Get(string name, Input<string> id, NetworkViewState? state, CustomResourceOptions? opts = null)
    public static NetworkView get(String name, Output<String> id, NetworkViewState state, CustomResourceOptions options)
    resources:  _:    type: infoblox:NetworkView    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:
    Comment string
    A description of the network view.
    ExtAttrs string
    The Extensible attributes of the network container to be added/updated, as a map in JSON format
    InternalId string
    Name string
    Specifies the desired name of the network view as shown in the NIOS appliance. The name has the same requirements as the corresponding parameter in WAPI.
    NetworkViewId string
    Ref string
    NIOS object's reference, not to be set by a user.
    Comment string
    A description of the network view.
    ExtAttrs string
    The Extensible attributes of the network container to be added/updated, as a map in JSON format
    InternalId string
    Name string
    Specifies the desired name of the network view as shown in the NIOS appliance. The name has the same requirements as the corresponding parameter in WAPI.
    NetworkViewId string
    Ref string
    NIOS object's reference, not to be set by a user.
    comment String
    A description of the network view.
    extAttrs String
    The Extensible attributes of the network container to be added/updated, as a map in JSON format
    internalId String
    name String
    Specifies the desired name of the network view as shown in the NIOS appliance. The name has the same requirements as the corresponding parameter in WAPI.
    networkViewId String
    ref String
    NIOS object's reference, not to be set by a user.
    comment string
    A description of the network view.
    extAttrs string
    The Extensible attributes of the network container to be added/updated, as a map in JSON format
    internalId string
    name string
    Specifies the desired name of the network view as shown in the NIOS appliance. The name has the same requirements as the corresponding parameter in WAPI.
    networkViewId string
    ref string
    NIOS object's reference, not to be set by a user.
    comment str
    A description of the network view.
    ext_attrs str
    The Extensible attributes of the network container to be added/updated, as a map in JSON format
    internal_id str
    name str
    Specifies the desired name of the network view as shown in the NIOS appliance. The name has the same requirements as the corresponding parameter in WAPI.
    network_view_id str
    ref str
    NIOS object's reference, not to be set by a user.
    comment String
    A description of the network view.
    extAttrs String
    The Extensible attributes of the network container to be added/updated, as a map in JSON format
    internalId String
    name String
    Specifies the desired name of the network view as shown in the NIOS appliance. The name has the same requirements as the corresponding parameter in WAPI.
    networkViewId String
    ref String
    NIOS object's reference, not to be set by a user.

    Package Details

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