azure-native-v2.managednetwork.ManagedNetworkPeeringPolicy
Explore with Pulumi AI
The Managed Network Peering Policy resource Azure REST API version: 2019-06-01-preview. Prior API version in Azure Native 1.x: 2019-06-01-preview.
Create ManagedNetworkPeeringPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ManagedNetworkPeeringPolicy(name: string, args: ManagedNetworkPeeringPolicyArgs, opts?: CustomResourceOptions);
@overload
def ManagedNetworkPeeringPolicy(resource_name: str,
args: ManagedNetworkPeeringPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ManagedNetworkPeeringPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
managed_network_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
location: Optional[str] = None,
managed_network_peering_policy_name: Optional[str] = None,
properties: Optional[ManagedNetworkPeeringPolicyPropertiesArgs] = None)
func NewManagedNetworkPeeringPolicy(ctx *Context, name string, args ManagedNetworkPeeringPolicyArgs, opts ...ResourceOption) (*ManagedNetworkPeeringPolicy, error)
public ManagedNetworkPeeringPolicy(string name, ManagedNetworkPeeringPolicyArgs args, CustomResourceOptions? opts = null)
public ManagedNetworkPeeringPolicy(String name, ManagedNetworkPeeringPolicyArgs args)
public ManagedNetworkPeeringPolicy(String name, ManagedNetworkPeeringPolicyArgs args, CustomResourceOptions options)
type: azure-native:managednetwork:ManagedNetworkPeeringPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ManagedNetworkPeeringPolicyArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. ManagedNetworkPeeringPolicyArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ManagedNetworkPeeringPolicyArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ManagedNetworkPeeringPolicyArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. ManagedNetworkPeeringPolicyArgs - 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 managedNetworkPeeringPolicyResource = new AzureNative.Managednetwork.ManagedNetworkPeeringPolicy("managedNetworkPeeringPolicyResource", new()
{
ManagedNetworkName = "string",
ResourceGroupName = "string",
Location = "string",
ManagedNetworkPeeringPolicyName = "string",
Properties =
{
{ "type", "string" },
{ "hub",
{
{ "id", "string" },
} },
{ "mesh", new[]
{
{
{ "id", "string" },
},
} },
{ "spokes", new[]
{
{
{ "id", "string" },
},
} },
},
});
example, err := managednetwork.NewManagedNetworkPeeringPolicy(ctx, "managedNetworkPeeringPolicyResource", &managednetwork.ManagedNetworkPeeringPolicyArgs{
ManagedNetworkName: "string",
ResourceGroupName: "string",
Location: "string",
ManagedNetworkPeeringPolicyName: "string",
Properties: map[string]interface{}{
"type": "string",
"hub": map[string]interface{}{
"id": "string",
},
"mesh": []map[string]interface{}{
map[string]interface{}{
"id": "string",
},
},
"spokes": []map[string]interface{}{
map[string]interface{}{
"id": "string",
},
},
},
})
var managedNetworkPeeringPolicyResource = new ManagedNetworkPeeringPolicy("managedNetworkPeeringPolicyResource", ManagedNetworkPeeringPolicyArgs.builder()
.managedNetworkName("string")
.resourceGroupName("string")
.location("string")
.managedNetworkPeeringPolicyName("string")
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
managed_network_peering_policy_resource = azure_native.managednetwork.ManagedNetworkPeeringPolicy("managedNetworkPeeringPolicyResource",
managed_network_name=string,
resource_group_name=string,
location=string,
managed_network_peering_policy_name=string,
properties={
type: string,
hub: {
id: string,
},
mesh: [{
id: string,
}],
spokes: [{
id: string,
}],
})
const managedNetworkPeeringPolicyResource = new azure_native.managednetwork.ManagedNetworkPeeringPolicy("managedNetworkPeeringPolicyResource", {
managedNetworkName: "string",
resourceGroupName: "string",
location: "string",
managedNetworkPeeringPolicyName: "string",
properties: {
type: "string",
hub: {
id: "string",
},
mesh: [{
id: "string",
}],
spokes: [{
id: "string",
}],
},
});
type: azure-native:managednetwork:ManagedNetworkPeeringPolicy
properties:
location: string
managedNetworkName: string
managedNetworkPeeringPolicyName: string
properties:
hub:
id: string
mesh:
- id: string
spokes:
- id: string
type: string
resourceGroupName: string
ManagedNetworkPeeringPolicy 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 ManagedNetworkPeeringPolicy resource accepts the following input properties:
- Managed
Network Name This property is required. Changes to this property will trigger replacement.
- The name of the Managed Network.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- Location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- Managed
Network Peering Policy Name Changes to this property will trigger replacement.
- The name of the Managed Network Peering Policy.
- Properties
Pulumi.
Azure Native. Managed Network. Inputs. Managed Network Peering Policy Properties - Gets or sets the properties of a Managed Network Policy
- Managed
Network Name This property is required. Changes to this property will trigger replacement.
- The name of the Managed Network.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- Location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- Managed
Network Peering Policy Name Changes to this property will trigger replacement.
- The name of the Managed Network Peering Policy.
- Properties
Managed
Network Peering Policy Properties Args - Gets or sets the properties of a Managed Network Policy
- managed
Network Name This property is required. Changes to this property will trigger replacement.
- The name of the Managed Network.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- managed
Network Peering Policy Name Changes to this property will trigger replacement.
- The name of the Managed Network Peering Policy.
- properties
Managed
Network Peering Policy Properties - Gets or sets the properties of a Managed Network Policy
- managed
Network Name This property is required. Changes to this property will trigger replacement.
- The name of the Managed Network.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- managed
Network Peering Policy Name Changes to this property will trigger replacement.
- The name of the Managed Network Peering Policy.
- properties
Managed
Network Peering Policy Properties - Gets or sets the properties of a Managed Network Policy
- managed_
network_ name This property is required. Changes to this property will trigger replacement.
- The name of the Managed Network.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- managed_
network_ peering_ policy_ name Changes to this property will trigger replacement.
- The name of the Managed Network Peering Policy.
- properties
Managed
Network Peering Policy Properties Args - Gets or sets the properties of a Managed Network Policy
- managed
Network Name This property is required. Changes to this property will trigger replacement.
- The name of the Managed Network.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- managed
Network Peering Policy Name Changes to this property will trigger replacement.
- The name of the Managed Network Peering Policy.
- properties Property Map
- Gets or sets the properties of a Managed Network Policy
Outputs
All input properties are implicitly available as output properties. Additionally, the ManagedNetworkPeeringPolicy resource produces the following output properties:
Supporting Types
ManagedNetworkPeeringPolicyProperties, ManagedNetworkPeeringPolicyPropertiesArgs
- Type
This property is required. string | Pulumi.Azure Native. Managed Network. Type - Gets or sets the connectivity type of a network structure policy
- Hub
Pulumi.
Azure Native. Managed Network. Inputs. Resource Id - Gets or sets the hub virtual network ID
- Mesh
List<Pulumi.
Azure Native. Managed Network. Inputs. Resource Id> - Gets or sets the mesh group IDs
- Spokes
List<Pulumi.
Azure Native. Managed Network. Inputs. Resource Id> - Gets or sets the spokes group IDs
- Type
This property is required. string | Type - Gets or sets the connectivity type of a network structure policy
- Hub
Resource
Id - Gets or sets the hub virtual network ID
- Mesh
[]Resource
Id - Gets or sets the mesh group IDs
- Spokes
[]Resource
Id - Gets or sets the spokes group IDs
- type
This property is required. String | Type - Gets or sets the connectivity type of a network structure policy
- hub
Resource
Id - Gets or sets the hub virtual network ID
- mesh
List<Resource
Id> - Gets or sets the mesh group IDs
- spokes
List<Resource
Id> - Gets or sets the spokes group IDs
- type
This property is required. string | Type - Gets or sets the connectivity type of a network structure policy
- hub
Resource
Id - Gets or sets the hub virtual network ID
- mesh
Resource
Id[] - Gets or sets the mesh group IDs
- spokes
Resource
Id[] - Gets or sets the spokes group IDs
- type
This property is required. str | Type - Gets or sets the connectivity type of a network structure policy
- hub
Resource
Id - Gets or sets the hub virtual network ID
- mesh
Sequence[Resource
Id] - Gets or sets the mesh group IDs
- spokes
Sequence[Resource
Id] - Gets or sets the spokes group IDs
- type
This property is required. String | "HubAnd Spoke Topology" | "Mesh Topology" - Gets or sets the connectivity type of a network structure policy
- hub Property Map
- Gets or sets the hub virtual network ID
- mesh List<Property Map>
- Gets or sets the mesh group IDs
- spokes List<Property Map>
- Gets or sets the spokes group IDs
ManagedNetworkPeeringPolicyPropertiesResponse, ManagedNetworkPeeringPolicyPropertiesResponseArgs
- Etag
This property is required. string - A unique read-only string that changes whenever the resource is updated.
- Provisioning
State This property is required. string - Provisioning state of the ManagedNetwork resource.
- Type
This property is required. string - Gets or sets the connectivity type of a network structure policy
- Hub
Pulumi.
Azure Native. Managed Network. Inputs. Resource Id Response - Gets or sets the hub virtual network ID
- Mesh
List<Pulumi.
Azure Native. Managed Network. Inputs. Resource Id Response> - Gets or sets the mesh group IDs
- Spokes
List<Pulumi.
Azure Native. Managed Network. Inputs. Resource Id Response> - Gets or sets the spokes group IDs
- Etag
This property is required. string - A unique read-only string that changes whenever the resource is updated.
- Provisioning
State This property is required. string - Provisioning state of the ManagedNetwork resource.
- Type
This property is required. string - Gets or sets the connectivity type of a network structure policy
- Hub
Resource
Id Response - Gets or sets the hub virtual network ID
- Mesh
[]Resource
Id Response - Gets or sets the mesh group IDs
- Spokes
[]Resource
Id Response - Gets or sets the spokes group IDs
- etag
This property is required. String - A unique read-only string that changes whenever the resource is updated.
- provisioning
State This property is required. String - Provisioning state of the ManagedNetwork resource.
- type
This property is required. String - Gets or sets the connectivity type of a network structure policy
- hub
Resource
Id Response - Gets or sets the hub virtual network ID
- mesh
List<Resource
Id Response> - Gets or sets the mesh group IDs
- spokes
List<Resource
Id Response> - Gets or sets the spokes group IDs
- etag
This property is required. string - A unique read-only string that changes whenever the resource is updated.
- provisioning
State This property is required. string - Provisioning state of the ManagedNetwork resource.
- type
This property is required. string - Gets or sets the connectivity type of a network structure policy
- hub
Resource
Id Response - Gets or sets the hub virtual network ID
- mesh
Resource
Id Response[] - Gets or sets the mesh group IDs
- spokes
Resource
Id Response[] - Gets or sets the spokes group IDs
- etag
This property is required. str - A unique read-only string that changes whenever the resource is updated.
- provisioning_
state This property is required. str - Provisioning state of the ManagedNetwork resource.
- type
This property is required. str - Gets or sets the connectivity type of a network structure policy
- hub
Resource
Id Response - Gets or sets the hub virtual network ID
- mesh
Sequence[Resource
Id Response] - Gets or sets the mesh group IDs
- spokes
Sequence[Resource
Id Response] - Gets or sets the spokes group IDs
- etag
This property is required. String - A unique read-only string that changes whenever the resource is updated.
- provisioning
State This property is required. String - Provisioning state of the ManagedNetwork resource.
- type
This property is required. String - Gets or sets the connectivity type of a network structure policy
- hub Property Map
- Gets or sets the hub virtual network ID
- mesh List<Property Map>
- Gets or sets the mesh group IDs
- spokes List<Property Map>
- Gets or sets the spokes group IDs
ResourceId, ResourceIdArgs
- Id string
- Resource Id
- Id string
- Resource Id
- id String
- Resource Id
- id string
- Resource Id
- id str
- Resource Id
- id String
- Resource Id
ResourceIdResponse, ResourceIdResponseArgs
- Id string
- Resource Id
- Id string
- Resource Id
- id String
- Resource Id
- id string
- Resource Id
- id str
- Resource Id
- id String
- Resource Id
Type, TypeArgs
- Hub
And Spoke Topology - HubAndSpokeTopology
- Mesh
Topology - MeshTopology
- Type
Hub And Spoke Topology - HubAndSpokeTopology
- Type
Mesh Topology - MeshTopology
- Hub
And Spoke Topology - HubAndSpokeTopology
- Mesh
Topology - MeshTopology
- Hub
And Spoke Topology - HubAndSpokeTopology
- Mesh
Topology - MeshTopology
- HUB_AND_SPOKE_TOPOLOGY
- HubAndSpokeTopology
- MESH_TOPOLOGY
- MeshTopology
- "Hub
And Spoke Topology" - HubAndSpokeTopology
- "Mesh
Topology" - MeshTopology
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:managednetwork:ManagedNetworkPeeringPolicy myHubAndSpoke /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetwork/managedNetworks/{managedNetworkName}/managedNetworkPeeringPolicies/{managedNetworkPeeringPolicyName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0