Azure Classic v5.43.0, May 6 23
Azure Classic v5.43.0, May 6 23
azure.network.ExpressRoutePortAuthorization
Explore with Pulumi AI
Manages an ExpressRoute Port Authorization.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
{
Location = "West Europe",
});
var exampleExpressRoutePort = new Azure.Network.ExpressRoutePort("exampleExpressRoutePort", new()
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
PeeringLocation = "Airtel-Chennai-CLS",
BandwidthInGbps = 10,
Encapsulation = "Dot1Q",
});
var exampleExpressRoutePortAuthorization = new Azure.Network.ExpressRoutePortAuthorization("exampleExpressRoutePortAuthorization", new()
{
ExpressRoutePortName = exampleExpressRoutePort.Name,
ResourceGroupName = exampleResourceGroup.Name,
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleExpressRoutePort, err := network.NewExpressRoutePort(ctx, "exampleExpressRoutePort", &network.ExpressRoutePortArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
PeeringLocation: pulumi.String("Airtel-Chennai-CLS"),
BandwidthInGbps: pulumi.Int(10),
Encapsulation: pulumi.String("Dot1Q"),
})
if err != nil {
return err
}
_, err = network.NewExpressRoutePortAuthorization(ctx, "exampleExpressRoutePortAuthorization", &network.ExpressRoutePortAuthorizationArgs{
ExpressRoutePortName: exampleExpressRoutePort.Name,
ResourceGroupName: exampleResourceGroup.Name,
})
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.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.network.ExpressRoutePort;
import com.pulumi.azure.network.ExpressRoutePortArgs;
import com.pulumi.azure.network.ExpressRoutePortAuthorization;
import com.pulumi.azure.network.ExpressRoutePortAuthorizationArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleExpressRoutePort = new ExpressRoutePort("exampleExpressRoutePort", ExpressRoutePortArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.peeringLocation("Airtel-Chennai-CLS")
.bandwidthInGbps(10)
.encapsulation("Dot1Q")
.build());
var exampleExpressRoutePortAuthorization = new ExpressRoutePortAuthorization("exampleExpressRoutePortAuthorization", ExpressRoutePortAuthorizationArgs.builder()
.expressRoutePortName(exampleExpressRoutePort.name())
.resourceGroupName(exampleResourceGroup.name())
.build());
}
}
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_express_route_port = azure.network.ExpressRoutePort("exampleExpressRoutePort",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
peering_location="Airtel-Chennai-CLS",
bandwidth_in_gbps=10,
encapsulation="Dot1Q")
example_express_route_port_authorization = azure.network.ExpressRoutePortAuthorization("exampleExpressRoutePortAuthorization",
express_route_port_name=example_express_route_port.name,
resource_group_name=example_resource_group.name)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleExpressRoutePort = new azure.network.ExpressRoutePort("exampleExpressRoutePort", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
peeringLocation: "Airtel-Chennai-CLS",
bandwidthInGbps: 10,
encapsulation: "Dot1Q",
});
const exampleExpressRoutePortAuthorization = new azure.network.ExpressRoutePortAuthorization("exampleExpressRoutePortAuthorization", {
expressRoutePortName: exampleExpressRoutePort.name,
resourceGroupName: exampleResourceGroup.name,
});
resources:
exampleResourceGroup:
type: azure:core:ResourceGroup
properties:
location: West Europe
exampleExpressRoutePort:
type: azure:network:ExpressRoutePort
properties:
resourceGroupName: ${exampleResourceGroup.name}
location: ${exampleResourceGroup.location}
peeringLocation: Airtel-Chennai-CLS
bandwidthInGbps: 10
encapsulation: Dot1Q
exampleExpressRoutePortAuthorization:
type: azure:network:ExpressRoutePortAuthorization
properties:
expressRoutePortName: ${exampleExpressRoutePort.name}
resourceGroupName: ${exampleResourceGroup.name}
Create ExpressRoutePortAuthorization Resource
new ExpressRoutePortAuthorization(name: string, args: ExpressRoutePortAuthorizationArgs, opts?: CustomResourceOptions);
@overload
def ExpressRoutePortAuthorization(resource_name: str,
opts: Optional[ResourceOptions] = None,
express_route_port_name: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None)
@overload
def ExpressRoutePortAuthorization(resource_name: str,
args: ExpressRoutePortAuthorizationArgs,
opts: Optional[ResourceOptions] = None)
func NewExpressRoutePortAuthorization(ctx *Context, name string, args ExpressRoutePortAuthorizationArgs, opts ...ResourceOption) (*ExpressRoutePortAuthorization, error)
public ExpressRoutePortAuthorization(string name, ExpressRoutePortAuthorizationArgs args, CustomResourceOptions? opts = null)
public ExpressRoutePortAuthorization(String name, ExpressRoutePortAuthorizationArgs args)
public ExpressRoutePortAuthorization(String name, ExpressRoutePortAuthorizationArgs args, CustomResourceOptions options)
type: azure:network:ExpressRoutePortAuthorization
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ExpressRoutePortAuthorizationArgs
- 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 ExpressRoutePortAuthorizationArgs
- 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 ExpressRoutePortAuthorizationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ExpressRoutePortAuthorizationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ExpressRoutePortAuthorizationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ExpressRoutePortAuthorization 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 ExpressRoutePortAuthorization resource accepts the following input properties:
- Express
Route stringPort Name The name of the Express Route Port in which to create the Authorization. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which to create the ExpressRoute Port. Changing this forces a new resource to be created.
- Name string
The name of the ExpressRoute Port. Changing this forces a new resource to be created.
- Express
Route stringPort Name The name of the Express Route Port in which to create the Authorization. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which to create the ExpressRoute Port. Changing this forces a new resource to be created.
- Name string
The name of the ExpressRoute Port. Changing this forces a new resource to be created.
- express
Route StringPort Name The name of the Express Route Port in which to create the Authorization. Changing this forces a new resource to be created.
- resource
Group StringName The name of the resource group in which to create the ExpressRoute Port. Changing this forces a new resource to be created.
- name String
The name of the ExpressRoute Port. Changing this forces a new resource to be created.
- express
Route stringPort Name The name of the Express Route Port in which to create the Authorization. Changing this forces a new resource to be created.
- resource
Group stringName The name of the resource group in which to create the ExpressRoute Port. Changing this forces a new resource to be created.
- name string
The name of the ExpressRoute Port. Changing this forces a new resource to be created.
- express_
route_ strport_ name The name of the Express Route Port in which to create the Authorization. Changing this forces a new resource to be created.
- resource_
group_ strname The name of the resource group in which to create the ExpressRoute Port. Changing this forces a new resource to be created.
- name str
The name of the ExpressRoute Port. Changing this forces a new resource to be created.
- express
Route StringPort Name The name of the Express Route Port in which to create the Authorization. Changing this forces a new resource to be created.
- resource
Group StringName The name of the resource group in which to create the ExpressRoute Port. Changing this forces a new resource to be created.
- name String
The name of the ExpressRoute Port. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the ExpressRoutePortAuthorization resource produces the following output properties:
- string
The Authorization Key.
- string
The authorization use status.
- Id string
The provider-assigned unique ID for this managed resource.
- string
The Authorization Key.
- string
The authorization use status.
- Id string
The provider-assigned unique ID for this managed resource.
- String
The Authorization Key.
- String
The authorization use status.
- id String
The provider-assigned unique ID for this managed resource.
- string
The Authorization Key.
- string
The authorization use status.
- id string
The provider-assigned unique ID for this managed resource.
- str
The Authorization Key.
- str
The authorization use status.
- id str
The provider-assigned unique ID for this managed resource.
- String
The Authorization Key.
- String
The authorization use status.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing ExpressRoutePortAuthorization Resource
Get an existing ExpressRoutePortAuthorization 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?: ExpressRoutePortAuthorizationState, opts?: CustomResourceOptions): ExpressRoutePortAuthorization
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
authorization_key: Optional[str] = None,
authorization_use_status: Optional[str] = None,
express_route_port_name: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None) -> ExpressRoutePortAuthorization
func GetExpressRoutePortAuthorization(ctx *Context, name string, id IDInput, state *ExpressRoutePortAuthorizationState, opts ...ResourceOption) (*ExpressRoutePortAuthorization, error)
public static ExpressRoutePortAuthorization Get(string name, Input<string> id, ExpressRoutePortAuthorizationState? state, CustomResourceOptions? opts = null)
public static ExpressRoutePortAuthorization get(String name, Output<String> id, ExpressRoutePortAuthorizationState 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.
- string
The Authorization Key.
- string
The authorization use status.
- Express
Route stringPort Name The name of the Express Route Port in which to create the Authorization. Changing this forces a new resource to be created.
- Name string
The name of the ExpressRoute Port. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which to create the ExpressRoute Port. Changing this forces a new resource to be created.
- string
The Authorization Key.
- string
The authorization use status.
- Express
Route stringPort Name The name of the Express Route Port in which to create the Authorization. Changing this forces a new resource to be created.
- Name string
The name of the ExpressRoute Port. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which to create the ExpressRoute Port. Changing this forces a new resource to be created.
- String
The Authorization Key.
- String
The authorization use status.
- express
Route StringPort Name The name of the Express Route Port in which to create the Authorization. Changing this forces a new resource to be created.
- name String
The name of the ExpressRoute Port. Changing this forces a new resource to be created.
- resource
Group StringName The name of the resource group in which to create the ExpressRoute Port. Changing this forces a new resource to be created.
- string
The Authorization Key.
- string
The authorization use status.
- express
Route stringPort Name The name of the Express Route Port in which to create the Authorization. Changing this forces a new resource to be created.
- name string
The name of the ExpressRoute Port. Changing this forces a new resource to be created.
- resource
Group stringName The name of the resource group in which to create the ExpressRoute Port. Changing this forces a new resource to be created.
- str
The Authorization Key.
- str
The authorization use status.
- express_
route_ strport_ name The name of the Express Route Port in which to create the Authorization. Changing this forces a new resource to be created.
- name str
The name of the ExpressRoute Port. Changing this forces a new resource to be created.
- resource_
group_ strname The name of the resource group in which to create the ExpressRoute Port. Changing this forces a new resource to be created.
- String
The Authorization Key.
- String
The authorization use status.
- express
Route StringPort Name The name of the Express Route Port in which to create the Authorization. Changing this forces a new resource to be created.
- name String
The name of the ExpressRoute Port. Changing this forces a new resource to be created.
- resource
Group StringName The name of the resource group in which to create the ExpressRoute Port. Changing this forces a new resource to be created.
Import
ExpressRoute Port Authorizations can be imported using the resource id
, e.g.
$ pulumi import azure:network/expressRoutePortAuthorization:ExpressRoutePortAuthorization auth1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/expressRoutePorts/myExpressPort/authorizations/auth1
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.