1. Packages
  2. Dynatrace
  3. API Docs
  4. ManagedNetworkZones
Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse

dynatrace.ManagedNetworkZones

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse

    This resource requires the cluster API token scope Service Provider API (ServiceProviderAPI)

    Dynatrace Documentation

    • Network zones - https://docs.dynatrace.com/docs/manage/network-zones

    • Cluster API v2 - https://www.dynatrace.com/support/help/managed-cluster/cluster-api/cluster-api-v2

    Resource Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as dynatrace from "@pulumiverse/dynatrace";
    
    const test = new dynatrace.ManagedNetworkZones("test", {
        alternativeZones: ["alternativeexample"],
        description: "This is an example network zone",
        fallbackMode: "ANY_ACTIVE_GATE",
    });
    
    import pulumi
    import pulumiverse_dynatrace as dynatrace
    
    test = dynatrace.ManagedNetworkZones("test",
        alternative_zones=["alternativeexample"],
        description="This is an example network zone",
        fallback_mode="ANY_ACTIVE_GATE")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-dynatrace/sdk/go/dynatrace"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := dynatrace.NewManagedNetworkZones(ctx, "test", &dynatrace.ManagedNetworkZonesArgs{
    			AlternativeZones: pulumi.StringArray{
    				pulumi.String("alternativeexample"),
    			},
    			Description:  pulumi.String("This is an example network zone"),
    			FallbackMode: pulumi.String("ANY_ACTIVE_GATE"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Dynatrace = Pulumiverse.Dynatrace;
    
    return await Deployment.RunAsync(() => 
    {
        var test = new Dynatrace.ManagedNetworkZones("test", new()
        {
            AlternativeZones = new[]
            {
                "alternativeexample",
            },
            Description = "This is an example network zone",
            FallbackMode = "ANY_ACTIVE_GATE",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.dynatrace.ManagedNetworkZones;
    import com.pulumi.dynatrace.ManagedNetworkZonesArgs;
    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 test = new ManagedNetworkZones("test", ManagedNetworkZonesArgs.builder()
                .alternativeZones("alternativeexample")
                .description("This is an example network zone")
                .fallbackMode("ANY_ACTIVE_GATE")
                .build());
    
        }
    }
    
    resources:
      test:
        type: dynatrace:ManagedNetworkZones
        properties:
          alternativeZones:
            - alternativeexample
          description: This is an example network zone
          fallbackMode: ANY_ACTIVE_GATE
    

    Create ManagedNetworkZones Resource

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

    Constructor syntax

    new ManagedNetworkZones(name: string, args?: ManagedNetworkZonesArgs, opts?: CustomResourceOptions);
    @overload
    def ManagedNetworkZones(resource_name: str,
                            args: Optional[ManagedNetworkZonesArgs] = None,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def ManagedNetworkZones(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            alternative_zones: Optional[Sequence[str]] = None,
                            description: Optional[str] = None,
                            fallback_mode: Optional[str] = None,
                            name: Optional[str] = None,
                            num_of_configured_activegates: Optional[int] = None,
                            num_of_configured_oneagents: Optional[int] = None,
                            num_of_oneagents_from_other_zones: Optional[int] = None,
                            num_of_oneagents_using: Optional[int] = None)
    func NewManagedNetworkZones(ctx *Context, name string, args *ManagedNetworkZonesArgs, opts ...ResourceOption) (*ManagedNetworkZones, error)
    public ManagedNetworkZones(string name, ManagedNetworkZonesArgs? args = null, CustomResourceOptions? opts = null)
    public ManagedNetworkZones(String name, ManagedNetworkZonesArgs args)
    public ManagedNetworkZones(String name, ManagedNetworkZonesArgs args, CustomResourceOptions options)
    
    type: dynatrace:ManagedNetworkZones
    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 ManagedNetworkZonesArgs
    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 ManagedNetworkZonesArgs
    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 ManagedNetworkZonesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ManagedNetworkZonesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ManagedNetworkZonesArgs
    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 managedNetworkZonesResource = new Dynatrace.ManagedNetworkZones("managedNetworkZonesResource", new()
    {
        AlternativeZones = new[]
        {
            "string",
        },
        Description = "string",
        FallbackMode = "string",
        Name = "string",
        NumOfConfiguredActivegates = 0,
        NumOfConfiguredOneagents = 0,
        NumOfOneagentsFromOtherZones = 0,
        NumOfOneagentsUsing = 0,
    });
    
    example, err := dynatrace.NewManagedNetworkZones(ctx, "managedNetworkZonesResource", &dynatrace.ManagedNetworkZonesArgs{
    	AlternativeZones: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Description:                  pulumi.String("string"),
    	FallbackMode:                 pulumi.String("string"),
    	Name:                         pulumi.String("string"),
    	NumOfConfiguredActivegates:   pulumi.Int(0),
    	NumOfConfiguredOneagents:     pulumi.Int(0),
    	NumOfOneagentsFromOtherZones: pulumi.Int(0),
    	NumOfOneagentsUsing:          pulumi.Int(0),
    })
    
    var managedNetworkZonesResource = new ManagedNetworkZones("managedNetworkZonesResource", ManagedNetworkZonesArgs.builder()
        .alternativeZones("string")
        .description("string")
        .fallbackMode("string")
        .name("string")
        .numOfConfiguredActivegates(0)
        .numOfConfiguredOneagents(0)
        .numOfOneagentsFromOtherZones(0)
        .numOfOneagentsUsing(0)
        .build());
    
    managed_network_zones_resource = dynatrace.ManagedNetworkZones("managedNetworkZonesResource",
        alternative_zones=["string"],
        description="string",
        fallback_mode="string",
        name="string",
        num_of_configured_activegates=0,
        num_of_configured_oneagents=0,
        num_of_oneagents_from_other_zones=0,
        num_of_oneagents_using=0)
    
    const managedNetworkZonesResource = new dynatrace.ManagedNetworkZones("managedNetworkZonesResource", {
        alternativeZones: ["string"],
        description: "string",
        fallbackMode: "string",
        name: "string",
        numOfConfiguredActivegates: 0,
        numOfConfiguredOneagents: 0,
        numOfOneagentsFromOtherZones: 0,
        numOfOneagentsUsing: 0,
    });
    
    type: dynatrace:ManagedNetworkZones
    properties:
        alternativeZones:
            - string
        description: string
        fallbackMode: string
        name: string
        numOfConfiguredActivegates: 0
        numOfConfiguredOneagents: 0
        numOfOneagentsFromOtherZones: 0
        numOfOneagentsUsing: 0
    

    ManagedNetworkZones Resource Properties

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

    Inputs

    The ManagedNetworkZones resource accepts the following input properties:

    AlternativeZones List<string>
    A list of alternative network zones.
    Description string
    A short description of the network zone
    FallbackMode string
    The fallback mode of the network zone. Possible values: ANY_ACTIVE_GATE, NONE, ONLY_DEFAULT_ZONE
    Name string
    Name of the network zone cannot be modified once created. Dynatrace stores the field in lowercase, allowed characters: alphanumeric, hyphen, underscore, dot
    NumOfConfiguredActivegates int
    The number of ActiveGates in the network zone.
    NumOfConfiguredOneagents int
    The number of OneAgents that are configured to use the network zone as primary.
    NumOfOneagentsFromOtherZones int
    The number of OneAgents from other network zones that are using ActiveGates in the network zone.
    NumOfOneagentsUsing int
    The number of OneAgents that are using ActiveGates in the network zone.
    AlternativeZones []string
    A list of alternative network zones.
    Description string
    A short description of the network zone
    FallbackMode string
    The fallback mode of the network zone. Possible values: ANY_ACTIVE_GATE, NONE, ONLY_DEFAULT_ZONE
    Name string
    Name of the network zone cannot be modified once created. Dynatrace stores the field in lowercase, allowed characters: alphanumeric, hyphen, underscore, dot
    NumOfConfiguredActivegates int
    The number of ActiveGates in the network zone.
    NumOfConfiguredOneagents int
    The number of OneAgents that are configured to use the network zone as primary.
    NumOfOneagentsFromOtherZones int
    The number of OneAgents from other network zones that are using ActiveGates in the network zone.
    NumOfOneagentsUsing int
    The number of OneAgents that are using ActiveGates in the network zone.
    alternativeZones List<String>
    A list of alternative network zones.
    description String
    A short description of the network zone
    fallbackMode String
    The fallback mode of the network zone. Possible values: ANY_ACTIVE_GATE, NONE, ONLY_DEFAULT_ZONE
    name String
    Name of the network zone cannot be modified once created. Dynatrace stores the field in lowercase, allowed characters: alphanumeric, hyphen, underscore, dot
    numOfConfiguredActivegates Integer
    The number of ActiveGates in the network zone.
    numOfConfiguredOneagents Integer
    The number of OneAgents that are configured to use the network zone as primary.
    numOfOneagentsFromOtherZones Integer
    The number of OneAgents from other network zones that are using ActiveGates in the network zone.
    numOfOneagentsUsing Integer
    The number of OneAgents that are using ActiveGates in the network zone.
    alternativeZones string[]
    A list of alternative network zones.
    description string
    A short description of the network zone
    fallbackMode string
    The fallback mode of the network zone. Possible values: ANY_ACTIVE_GATE, NONE, ONLY_DEFAULT_ZONE
    name string
    Name of the network zone cannot be modified once created. Dynatrace stores the field in lowercase, allowed characters: alphanumeric, hyphen, underscore, dot
    numOfConfiguredActivegates number
    The number of ActiveGates in the network zone.
    numOfConfiguredOneagents number
    The number of OneAgents that are configured to use the network zone as primary.
    numOfOneagentsFromOtherZones number
    The number of OneAgents from other network zones that are using ActiveGates in the network zone.
    numOfOneagentsUsing number
    The number of OneAgents that are using ActiveGates in the network zone.
    alternative_zones Sequence[str]
    A list of alternative network zones.
    description str
    A short description of the network zone
    fallback_mode str
    The fallback mode of the network zone. Possible values: ANY_ACTIVE_GATE, NONE, ONLY_DEFAULT_ZONE
    name str
    Name of the network zone cannot be modified once created. Dynatrace stores the field in lowercase, allowed characters: alphanumeric, hyphen, underscore, dot
    num_of_configured_activegates int
    The number of ActiveGates in the network zone.
    num_of_configured_oneagents int
    The number of OneAgents that are configured to use the network zone as primary.
    num_of_oneagents_from_other_zones int
    The number of OneAgents from other network zones that are using ActiveGates in the network zone.
    num_of_oneagents_using int
    The number of OneAgents that are using ActiveGates in the network zone.
    alternativeZones List<String>
    A list of alternative network zones.
    description String
    A short description of the network zone
    fallbackMode String
    The fallback mode of the network zone. Possible values: ANY_ACTIVE_GATE, NONE, ONLY_DEFAULT_ZONE
    name String
    Name of the network zone cannot be modified once created. Dynatrace stores the field in lowercase, allowed characters: alphanumeric, hyphen, underscore, dot
    numOfConfiguredActivegates Number
    The number of ActiveGates in the network zone.
    numOfConfiguredOneagents Number
    The number of OneAgents that are configured to use the network zone as primary.
    numOfOneagentsFromOtherZones Number
    The number of OneAgents from other network zones that are using ActiveGates in the network zone.
    numOfOneagentsUsing Number
    The number of OneAgents that are using ActiveGates in the network zone.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ManagedNetworkZones 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 ManagedNetworkZones Resource

    Get an existing ManagedNetworkZones 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?: ManagedNetworkZonesState, opts?: CustomResourceOptions): ManagedNetworkZones
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alternative_zones: Optional[Sequence[str]] = None,
            description: Optional[str] = None,
            fallback_mode: Optional[str] = None,
            name: Optional[str] = None,
            num_of_configured_activegates: Optional[int] = None,
            num_of_configured_oneagents: Optional[int] = None,
            num_of_oneagents_from_other_zones: Optional[int] = None,
            num_of_oneagents_using: Optional[int] = None) -> ManagedNetworkZones
    func GetManagedNetworkZones(ctx *Context, name string, id IDInput, state *ManagedNetworkZonesState, opts ...ResourceOption) (*ManagedNetworkZones, error)
    public static ManagedNetworkZones Get(string name, Input<string> id, ManagedNetworkZonesState? state, CustomResourceOptions? opts = null)
    public static ManagedNetworkZones get(String name, Output<String> id, ManagedNetworkZonesState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    AlternativeZones List<string>
    A list of alternative network zones.
    Description string
    A short description of the network zone
    FallbackMode string
    The fallback mode of the network zone. Possible values: ANY_ACTIVE_GATE, NONE, ONLY_DEFAULT_ZONE
    Name string
    Name of the network zone cannot be modified once created. Dynatrace stores the field in lowercase, allowed characters: alphanumeric, hyphen, underscore, dot
    NumOfConfiguredActivegates int
    The number of ActiveGates in the network zone.
    NumOfConfiguredOneagents int
    The number of OneAgents that are configured to use the network zone as primary.
    NumOfOneagentsFromOtherZones int
    The number of OneAgents from other network zones that are using ActiveGates in the network zone.
    NumOfOneagentsUsing int
    The number of OneAgents that are using ActiveGates in the network zone.
    AlternativeZones []string
    A list of alternative network zones.
    Description string
    A short description of the network zone
    FallbackMode string
    The fallback mode of the network zone. Possible values: ANY_ACTIVE_GATE, NONE, ONLY_DEFAULT_ZONE
    Name string
    Name of the network zone cannot be modified once created. Dynatrace stores the field in lowercase, allowed characters: alphanumeric, hyphen, underscore, dot
    NumOfConfiguredActivegates int
    The number of ActiveGates in the network zone.
    NumOfConfiguredOneagents int
    The number of OneAgents that are configured to use the network zone as primary.
    NumOfOneagentsFromOtherZones int
    The number of OneAgents from other network zones that are using ActiveGates in the network zone.
    NumOfOneagentsUsing int
    The number of OneAgents that are using ActiveGates in the network zone.
    alternativeZones List<String>
    A list of alternative network zones.
    description String
    A short description of the network zone
    fallbackMode String
    The fallback mode of the network zone. Possible values: ANY_ACTIVE_GATE, NONE, ONLY_DEFAULT_ZONE
    name String
    Name of the network zone cannot be modified once created. Dynatrace stores the field in lowercase, allowed characters: alphanumeric, hyphen, underscore, dot
    numOfConfiguredActivegates Integer
    The number of ActiveGates in the network zone.
    numOfConfiguredOneagents Integer
    The number of OneAgents that are configured to use the network zone as primary.
    numOfOneagentsFromOtherZones Integer
    The number of OneAgents from other network zones that are using ActiveGates in the network zone.
    numOfOneagentsUsing Integer
    The number of OneAgents that are using ActiveGates in the network zone.
    alternativeZones string[]
    A list of alternative network zones.
    description string
    A short description of the network zone
    fallbackMode string
    The fallback mode of the network zone. Possible values: ANY_ACTIVE_GATE, NONE, ONLY_DEFAULT_ZONE
    name string
    Name of the network zone cannot be modified once created. Dynatrace stores the field in lowercase, allowed characters: alphanumeric, hyphen, underscore, dot
    numOfConfiguredActivegates number
    The number of ActiveGates in the network zone.
    numOfConfiguredOneagents number
    The number of OneAgents that are configured to use the network zone as primary.
    numOfOneagentsFromOtherZones number
    The number of OneAgents from other network zones that are using ActiveGates in the network zone.
    numOfOneagentsUsing number
    The number of OneAgents that are using ActiveGates in the network zone.
    alternative_zones Sequence[str]
    A list of alternative network zones.
    description str
    A short description of the network zone
    fallback_mode str
    The fallback mode of the network zone. Possible values: ANY_ACTIVE_GATE, NONE, ONLY_DEFAULT_ZONE
    name str
    Name of the network zone cannot be modified once created. Dynatrace stores the field in lowercase, allowed characters: alphanumeric, hyphen, underscore, dot
    num_of_configured_activegates int
    The number of ActiveGates in the network zone.
    num_of_configured_oneagents int
    The number of OneAgents that are configured to use the network zone as primary.
    num_of_oneagents_from_other_zones int
    The number of OneAgents from other network zones that are using ActiveGates in the network zone.
    num_of_oneagents_using int
    The number of OneAgents that are using ActiveGates in the network zone.
    alternativeZones List<String>
    A list of alternative network zones.
    description String
    A short description of the network zone
    fallbackMode String
    The fallback mode of the network zone. Possible values: ANY_ACTIVE_GATE, NONE, ONLY_DEFAULT_ZONE
    name String
    Name of the network zone cannot be modified once created. Dynatrace stores the field in lowercase, allowed characters: alphanumeric, hyphen, underscore, dot
    numOfConfiguredActivegates Number
    The number of ActiveGates in the network zone.
    numOfConfiguredOneagents Number
    The number of OneAgents that are configured to use the network zone as primary.
    numOfOneagentsFromOtherZones Number
    The number of OneAgents from other network zones that are using ActiveGates in the network zone.
    numOfOneagentsUsing Number
    The number of OneAgents that are using ActiveGates in the network zone.

    Package Details

    Repository
    dynatrace pulumiverse/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse