azure-native.network.RoutingRuleCollection
Explore with Pulumi AI
Defines the routing rule collection. Azure REST API version: 2024-03-01.
Example Usage
Create or Update a routing rule collection
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var routingRuleCollection = new AzureNative.Network.RoutingRuleCollection("routingRuleCollection", new()
{
AppliesTo = new[]
{
new AzureNative.Network.Inputs.NetworkManagerRoutingGroupItemArgs
{
NetworkGroupId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup",
},
},
ConfigurationName = "myTestRoutingConfig",
Description = "A sample policy",
NetworkManagerName = "testNetworkManager",
ResourceGroupName = "rg1",
RuleCollectionName = "testRuleCollection",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewRoutingRuleCollection(ctx, "routingRuleCollection", &network.RoutingRuleCollectionArgs{
AppliesTo: network.NetworkManagerRoutingGroupItemArray{
&network.NetworkManagerRoutingGroupItemArgs{
NetworkGroupId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup"),
},
},
ConfigurationName: pulumi.String("myTestRoutingConfig"),
Description: pulumi.String("A sample policy"),
NetworkManagerName: pulumi.String("testNetworkManager"),
ResourceGroupName: pulumi.String("rg1"),
RuleCollectionName: pulumi.String("testRuleCollection"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.RoutingRuleCollection;
import com.pulumi.azurenative.network.RoutingRuleCollectionArgs;
import com.pulumi.azurenative.network.inputs.NetworkManagerRoutingGroupItemArgs;
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 routingRuleCollection = new RoutingRuleCollection("routingRuleCollection", RoutingRuleCollectionArgs.builder()
.appliesTo(NetworkManagerRoutingGroupItemArgs.builder()
.networkGroupId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup")
.build())
.configurationName("myTestRoutingConfig")
.description("A sample policy")
.networkManagerName("testNetworkManager")
.resourceGroupName("rg1")
.ruleCollectionName("testRuleCollection")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
routing_rule_collection = azure_native.network.RoutingRuleCollection("routingRuleCollection",
applies_to=[{
"network_group_id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup",
}],
configuration_name="myTestRoutingConfig",
description="A sample policy",
network_manager_name="testNetworkManager",
resource_group_name="rg1",
rule_collection_name="testRuleCollection")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const routingRuleCollection = new azure_native.network.RoutingRuleCollection("routingRuleCollection", {
appliesTo: [{
networkGroupId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup",
}],
configurationName: "myTestRoutingConfig",
description: "A sample policy",
networkManagerName: "testNetworkManager",
resourceGroupName: "rg1",
ruleCollectionName: "testRuleCollection",
});
resources:
routingRuleCollection:
type: azure-native:network:RoutingRuleCollection
properties:
appliesTo:
- networkGroupId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup
configurationName: myTestRoutingConfig
description: A sample policy
networkManagerName: testNetworkManager
resourceGroupName: rg1
ruleCollectionName: testRuleCollection
Create RoutingRuleCollection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RoutingRuleCollection(name: string, args: RoutingRuleCollectionArgs, opts?: CustomResourceOptions);
@overload
def RoutingRuleCollection(resource_name: str,
args: RoutingRuleCollectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RoutingRuleCollection(resource_name: str,
opts: Optional[ResourceOptions] = None,
applies_to: Optional[Sequence[NetworkManagerRoutingGroupItemArgs]] = None,
configuration_name: Optional[str] = None,
network_manager_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
description: Optional[str] = None,
disable_bgp_route_propagation: Optional[Union[str, DisableBgpRoutePropagation]] = None,
rule_collection_name: Optional[str] = None)
func NewRoutingRuleCollection(ctx *Context, name string, args RoutingRuleCollectionArgs, opts ...ResourceOption) (*RoutingRuleCollection, error)
public RoutingRuleCollection(string name, RoutingRuleCollectionArgs args, CustomResourceOptions? opts = null)
public RoutingRuleCollection(String name, RoutingRuleCollectionArgs args)
public RoutingRuleCollection(String name, RoutingRuleCollectionArgs args, CustomResourceOptions options)
type: azure-native:network:RoutingRuleCollection
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 RoutingRuleCollectionArgs
- 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 RoutingRuleCollectionArgs
- 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 RoutingRuleCollectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RoutingRuleCollectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RoutingRuleCollectionArgs
- 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 routingRuleCollectionResource = new AzureNative.Network.RoutingRuleCollection("routingRuleCollectionResource", new()
{
AppliesTo = new[]
{
new AzureNative.Network.Inputs.NetworkManagerRoutingGroupItemArgs
{
NetworkGroupId = "string",
},
},
ConfigurationName = "string",
NetworkManagerName = "string",
ResourceGroupName = "string",
Description = "string",
DisableBgpRoutePropagation = "string",
RuleCollectionName = "string",
});
example, err := network.NewRoutingRuleCollection(ctx, "routingRuleCollectionResource", &network.RoutingRuleCollectionArgs{
AppliesTo: network.NetworkManagerRoutingGroupItemArray{
&network.NetworkManagerRoutingGroupItemArgs{
NetworkGroupId: pulumi.String("string"),
},
},
ConfigurationName: pulumi.String("string"),
NetworkManagerName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
Description: pulumi.String("string"),
DisableBgpRoutePropagation: pulumi.String("string"),
RuleCollectionName: pulumi.String("string"),
})
var routingRuleCollectionResource = new RoutingRuleCollection("routingRuleCollectionResource", RoutingRuleCollectionArgs.builder()
.appliesTo(NetworkManagerRoutingGroupItemArgs.builder()
.networkGroupId("string")
.build())
.configurationName("string")
.networkManagerName("string")
.resourceGroupName("string")
.description("string")
.disableBgpRoutePropagation("string")
.ruleCollectionName("string")
.build());
routing_rule_collection_resource = azure_native.network.RoutingRuleCollection("routingRuleCollectionResource",
applies_to=[{
"networkGroupId": "string",
}],
configuration_name="string",
network_manager_name="string",
resource_group_name="string",
description="string",
disable_bgp_route_propagation="string",
rule_collection_name="string")
const routingRuleCollectionResource = new azure_native.network.RoutingRuleCollection("routingRuleCollectionResource", {
appliesTo: [{
networkGroupId: "string",
}],
configurationName: "string",
networkManagerName: "string",
resourceGroupName: "string",
description: "string",
disableBgpRoutePropagation: "string",
ruleCollectionName: "string",
});
type: azure-native:network:RoutingRuleCollection
properties:
appliesTo:
- networkGroupId: string
configurationName: string
description: string
disableBgpRoutePropagation: string
networkManagerName: string
resourceGroupName: string
ruleCollectionName: string
RoutingRuleCollection 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 RoutingRuleCollection resource accepts the following input properties:
- Applies
To List<Pulumi.Azure Native. Network. Inputs. Network Manager Routing Group Item> - Groups for configuration
- Configuration
Name string - The name of the network manager Routing Configuration.
- Network
Manager stringName - The name of the network manager.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Description string
- A description of the routing rule collection.
- Disable
Bgp string | Pulumi.Route Propagation Azure Native. Network. Disable Bgp Route Propagation - Determines whether BGP route propagation is enabled. Defaults to true.
- Rule
Collection stringName - The name of the network manager routing Configuration rule collection.
- Applies
To []NetworkManager Routing Group Item Args - Groups for configuration
- Configuration
Name string - The name of the network manager Routing Configuration.
- Network
Manager stringName - The name of the network manager.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Description string
- A description of the routing rule collection.
- Disable
Bgp string | DisableRoute Propagation Bgp Route Propagation - Determines whether BGP route propagation is enabled. Defaults to true.
- Rule
Collection stringName - The name of the network manager routing Configuration rule collection.
- applies
To List<NetworkManager Routing Group Item> - Groups for configuration
- configuration
Name String - The name of the network manager Routing Configuration.
- network
Manager StringName - The name of the network manager.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- description String
- A description of the routing rule collection.
- disable
Bgp String | DisableRoute Propagation Bgp Route Propagation - Determines whether BGP route propagation is enabled. Defaults to true.
- rule
Collection StringName - The name of the network manager routing Configuration rule collection.
- applies
To NetworkManager Routing Group Item[] - Groups for configuration
- configuration
Name string - The name of the network manager Routing Configuration.
- network
Manager stringName - The name of the network manager.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- description string
- A description of the routing rule collection.
- disable
Bgp string | DisableRoute Propagation Bgp Route Propagation - Determines whether BGP route propagation is enabled. Defaults to true.
- rule
Collection stringName - The name of the network manager routing Configuration rule collection.
- applies_
to Sequence[NetworkManager Routing Group Item Args] - Groups for configuration
- configuration_
name str - The name of the network manager Routing Configuration.
- network_
manager_ strname - The name of the network manager.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- description str
- A description of the routing rule collection.
- disable_
bgp_ str | Disableroute_ propagation Bgp Route Propagation - Determines whether BGP route propagation is enabled. Defaults to true.
- rule_
collection_ strname - The name of the network manager routing Configuration rule collection.
- applies
To List<Property Map> - Groups for configuration
- configuration
Name String - The name of the network manager Routing Configuration.
- network
Manager StringName - The name of the network manager.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- description String
- A description of the routing rule collection.
- disable
Bgp String | "False" | "True"Route Propagation - Determines whether BGP route propagation is enabled. Defaults to true.
- rule
Collection StringName - The name of the network manager routing Configuration rule collection.
Outputs
All input properties are implicitly available as output properties. Additionally, the RoutingRuleCollection resource produces the following output properties:
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Provisioning
State string - The provisioning state of the resource.
- Resource
Guid string - Unique identifier for this resource.
- System
Data Pulumi.Azure Native. Network. Outputs. System Data Response - The system metadata related to this resource.
- Type string
- Resource type.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Provisioning
State string - The provisioning state of the resource.
- Resource
Guid string - Unique identifier for this resource.
- System
Data SystemData Response - The system metadata related to this resource.
- Type string
- Resource type.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- provisioning
State String - The provisioning state of the resource.
- resource
Guid String - Unique identifier for this resource.
- system
Data SystemData Response - The system metadata related to this resource.
- type String
- Resource type.
- etag string
- A unique read-only string that changes whenever the resource is updated.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name.
- provisioning
State string - The provisioning state of the resource.
- resource
Guid string - Unique identifier for this resource.
- system
Data SystemData Response - The system metadata related to this resource.
- type string
- Resource type.
- etag str
- A unique read-only string that changes whenever the resource is updated.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Resource name.
- provisioning_
state str - The provisioning state of the resource.
- resource_
guid str - Unique identifier for this resource.
- system_
data SystemData Response - The system metadata related to this resource.
- type str
- Resource type.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- provisioning
State String - The provisioning state of the resource.
- resource
Guid String - Unique identifier for this resource.
- system
Data Property Map - The system metadata related to this resource.
- type String
- Resource type.
Supporting Types
DisableBgpRoutePropagation, DisableBgpRoutePropagationArgs
- False
- False
- True
- True
- Disable
Bgp Route Propagation False - False
- Disable
Bgp Route Propagation True - True
- False
- False
- True
- True
- False
- False
- True
- True
- FALSE
- False
- TRUE
- True
- "False"
- False
- "True"
- True
NetworkManagerRoutingGroupItem, NetworkManagerRoutingGroupItemArgs
- Network
Group stringId - Network manager group Id.
- Network
Group stringId - Network manager group Id.
- network
Group StringId - Network manager group Id.
- network
Group stringId - Network manager group Id.
- network_
group_ strid - Network manager group Id.
- network
Group StringId - Network manager group Id.
NetworkManagerRoutingGroupItemResponse, NetworkManagerRoutingGroupItemResponseArgs
- Network
Group stringId - Network manager group Id.
- Network
Group stringId - Network manager group Id.
- network
Group StringId - Network manager group Id.
- network
Group stringId - Network manager group Id.
- network_
group_ strid - Network manager group Id.
- network
Group StringId - Network manager group Id.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The type of identity that last modified the resource.
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The type of identity that last modified the resource.
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The type of identity that last modified the resource.
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The type of identity that last modified the resource.
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The type of identity that last modified the resource.
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The type of identity that last modified the resource.
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:network:RoutingRuleCollection myTestRoutingConfig /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0