dynatrace.ManagedNetworkZones
Explore with Pulumi AI
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:
- Alternative
Zones List<string> - A list of alternative network zones.
- Description string
- A short description of the network zone
- Fallback
Mode 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
- Num
Of intConfigured Activegates - The number of ActiveGates in the network zone.
- Num
Of intConfigured Oneagents - The number of OneAgents that are configured to use the network zone as primary.
- Num
Of intOneagents From Other Zones - The number of OneAgents from other network zones that are using ActiveGates in the network zone.
- Num
Of intOneagents Using - The number of OneAgents that are using ActiveGates in the network zone.
- Alternative
Zones []string - A list of alternative network zones.
- Description string
- A short description of the network zone
- Fallback
Mode 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
- Num
Of intConfigured Activegates - The number of ActiveGates in the network zone.
- Num
Of intConfigured Oneagents - The number of OneAgents that are configured to use the network zone as primary.
- Num
Of intOneagents From Other Zones - The number of OneAgents from other network zones that are using ActiveGates in the network zone.
- Num
Of intOneagents Using - The number of OneAgents that are using ActiveGates in the network zone.
- alternative
Zones List<String> - A list of alternative network zones.
- description String
- A short description of the network zone
- fallback
Mode 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
- num
Of IntegerConfigured Activegates - The number of ActiveGates in the network zone.
- num
Of IntegerConfigured Oneagents - The number of OneAgents that are configured to use the network zone as primary.
- num
Of IntegerOneagents From Other Zones - The number of OneAgents from other network zones that are using ActiveGates in the network zone.
- num
Of IntegerOneagents Using - The number of OneAgents that are using ActiveGates in the network zone.
- alternative
Zones string[] - A list of alternative network zones.
- description string
- A short description of the network zone
- fallback
Mode 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
- num
Of numberConfigured Activegates - The number of ActiveGates in the network zone.
- num
Of numberConfigured Oneagents - The number of OneAgents that are configured to use the network zone as primary.
- num
Of numberOneagents From Other Zones - The number of OneAgents from other network zones that are using ActiveGates in the network zone.
- num
Of numberOneagents Using - 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_ intconfigured_ activegates - The number of ActiveGates in the network zone.
- num_
of_ intconfigured_ oneagents - The number of OneAgents that are configured to use the network zone as primary.
- num_
of_ intoneagents_ from_ other_ zones - The number of OneAgents from other network zones that are using ActiveGates in the network zone.
- num_
of_ intoneagents_ using - The number of OneAgents that are using ActiveGates in the network zone.
- alternative
Zones List<String> - A list of alternative network zones.
- description String
- A short description of the network zone
- fallback
Mode 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
- num
Of NumberConfigured Activegates - The number of ActiveGates in the network zone.
- num
Of NumberConfigured Oneagents - The number of OneAgents that are configured to use the network zone as primary.
- num
Of NumberOneagents From Other Zones - The number of OneAgents from other network zones that are using ActiveGates in the network zone.
- num
Of NumberOneagents Using - 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.
- Alternative
Zones List<string> - A list of alternative network zones.
- Description string
- A short description of the network zone
- Fallback
Mode 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
- Num
Of intConfigured Activegates - The number of ActiveGates in the network zone.
- Num
Of intConfigured Oneagents - The number of OneAgents that are configured to use the network zone as primary.
- Num
Of intOneagents From Other Zones - The number of OneAgents from other network zones that are using ActiveGates in the network zone.
- Num
Of intOneagents Using - The number of OneAgents that are using ActiveGates in the network zone.
- Alternative
Zones []string - A list of alternative network zones.
- Description string
- A short description of the network zone
- Fallback
Mode 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
- Num
Of intConfigured Activegates - The number of ActiveGates in the network zone.
- Num
Of intConfigured Oneagents - The number of OneAgents that are configured to use the network zone as primary.
- Num
Of intOneagents From Other Zones - The number of OneAgents from other network zones that are using ActiveGates in the network zone.
- Num
Of intOneagents Using - The number of OneAgents that are using ActiveGates in the network zone.
- alternative
Zones List<String> - A list of alternative network zones.
- description String
- A short description of the network zone
- fallback
Mode 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
- num
Of IntegerConfigured Activegates - The number of ActiveGates in the network zone.
- num
Of IntegerConfigured Oneagents - The number of OneAgents that are configured to use the network zone as primary.
- num
Of IntegerOneagents From Other Zones - The number of OneAgents from other network zones that are using ActiveGates in the network zone.
- num
Of IntegerOneagents Using - The number of OneAgents that are using ActiveGates in the network zone.
- alternative
Zones string[] - A list of alternative network zones.
- description string
- A short description of the network zone
- fallback
Mode 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
- num
Of numberConfigured Activegates - The number of ActiveGates in the network zone.
- num
Of numberConfigured Oneagents - The number of OneAgents that are configured to use the network zone as primary.
- num
Of numberOneagents From Other Zones - The number of OneAgents from other network zones that are using ActiveGates in the network zone.
- num
Of numberOneagents Using - 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_ intconfigured_ activegates - The number of ActiveGates in the network zone.
- num_
of_ intconfigured_ oneagents - The number of OneAgents that are configured to use the network zone as primary.
- num_
of_ intoneagents_ from_ other_ zones - The number of OneAgents from other network zones that are using ActiveGates in the network zone.
- num_
of_ intoneagents_ using - The number of OneAgents that are using ActiveGates in the network zone.
- alternative
Zones List<String> - A list of alternative network zones.
- description String
- A short description of the network zone
- fallback
Mode 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
- num
Of NumberConfigured Activegates - The number of ActiveGates in the network zone.
- num
Of NumberConfigured Oneagents - The number of OneAgents that are configured to use the network zone as primary.
- num
Of NumberOneagents From Other Zones - The number of OneAgents from other network zones that are using ActiveGates in the network zone.
- num
Of NumberOneagents Using - 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.