azure-native.network.ExpressRouteCircuitAuthorization
Explore with Pulumi AI
Authorization in an ExpressRouteCircuit resource. Azure REST API version: 2023-02-01. Prior API version in Azure Native 1.x: 2020-11-01.
Other available API versions: 2019-06-01, 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01.
Example Usage
Create ExpressRouteCircuit Authorization
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var expressRouteCircuitAuthorization = new AzureNative.Network.ExpressRouteCircuitAuthorization("expressRouteCircuitAuthorization", new()
{
AuthorizationName = "authorizatinName",
CircuitName = "circuitName",
ResourceGroupName = "rg1",
});
});
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.NewExpressRouteCircuitAuthorization(ctx, "expressRouteCircuitAuthorization", &network.ExpressRouteCircuitAuthorizationArgs{
AuthorizationName: pulumi.String("authorizatinName"),
CircuitName: pulumi.String("circuitName"),
ResourceGroupName: pulumi.String("rg1"),
})
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.ExpressRouteCircuitAuthorization;
import com.pulumi.azurenative.network.ExpressRouteCircuitAuthorizationArgs;
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 expressRouteCircuitAuthorization = new ExpressRouteCircuitAuthorization("expressRouteCircuitAuthorization", ExpressRouteCircuitAuthorizationArgs.builder()
.authorizationName("authorizatinName")
.circuitName("circuitName")
.resourceGroupName("rg1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
express_route_circuit_authorization = azure_native.network.ExpressRouteCircuitAuthorization("expressRouteCircuitAuthorization",
authorization_name="authorizatinName",
circuit_name="circuitName",
resource_group_name="rg1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const expressRouteCircuitAuthorization = new azure_native.network.ExpressRouteCircuitAuthorization("expressRouteCircuitAuthorization", {
authorizationName: "authorizatinName",
circuitName: "circuitName",
resourceGroupName: "rg1",
});
resources:
expressRouteCircuitAuthorization:
type: azure-native:network:ExpressRouteCircuitAuthorization
properties:
authorizationName: authorizatinName
circuitName: circuitName
resourceGroupName: rg1
Create ExpressRouteCircuitAuthorization Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ExpressRouteCircuitAuthorization(name: string, args: ExpressRouteCircuitAuthorizationArgs, opts?: CustomResourceOptions);
@overload
def ExpressRouteCircuitAuthorization(resource_name: str,
args: ExpressRouteCircuitAuthorizationInitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ExpressRouteCircuitAuthorization(resource_name: str,
opts: Optional[ResourceOptions] = None,
circuit_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
authorization_key: Optional[str] = None,
authorization_name: Optional[str] = None,
authorization_use_status: Optional[Union[str, AuthorizationUseStatus]] = None,
id: Optional[str] = None,
name: Optional[str] = None)
func NewExpressRouteCircuitAuthorization(ctx *Context, name string, args ExpressRouteCircuitAuthorizationArgs, opts ...ResourceOption) (*ExpressRouteCircuitAuthorization, error)
public ExpressRouteCircuitAuthorization(string name, ExpressRouteCircuitAuthorizationArgs args, CustomResourceOptions? opts = null)
public ExpressRouteCircuitAuthorization(String name, ExpressRouteCircuitAuthorizationArgs args)
public ExpressRouteCircuitAuthorization(String name, ExpressRouteCircuitAuthorizationArgs args, CustomResourceOptions options)
type: azure-native:network:ExpressRouteCircuitAuthorization
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 ExpressRouteCircuitAuthorizationArgs
- 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 ExpressRouteCircuitAuthorizationInitArgs
- 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 ExpressRouteCircuitAuthorizationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ExpressRouteCircuitAuthorizationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ExpressRouteCircuitAuthorizationArgs
- 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 expressRouteCircuitAuthorizationResource = new AzureNative.Network.ExpressRouteCircuitAuthorization("expressRouteCircuitAuthorizationResource", new()
{
CircuitName = "string",
ResourceGroupName = "string",
AuthorizationKey = "string",
AuthorizationName = "string",
AuthorizationUseStatus = "string",
Id = "string",
Name = "string",
});
example, err := network.NewExpressRouteCircuitAuthorization(ctx, "expressRouteCircuitAuthorizationResource", &network.ExpressRouteCircuitAuthorizationArgs{
CircuitName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
AuthorizationKey: pulumi.String("string"),
AuthorizationName: pulumi.String("string"),
AuthorizationUseStatus: pulumi.String("string"),
Id: pulumi.String("string"),
Name: pulumi.String("string"),
})
var expressRouteCircuitAuthorizationResource = new ExpressRouteCircuitAuthorization("expressRouteCircuitAuthorizationResource", ExpressRouteCircuitAuthorizationArgs.builder()
.circuitName("string")
.resourceGroupName("string")
.authorizationKey("string")
.authorizationName("string")
.authorizationUseStatus("string")
.id("string")
.name("string")
.build());
express_route_circuit_authorization_resource = azure_native.network.ExpressRouteCircuitAuthorization("expressRouteCircuitAuthorizationResource",
circuit_name="string",
resource_group_name="string",
authorization_key="string",
authorization_name="string",
authorization_use_status="string",
id="string",
name="string")
const expressRouteCircuitAuthorizationResource = new azure_native.network.ExpressRouteCircuitAuthorization("expressRouteCircuitAuthorizationResource", {
circuitName: "string",
resourceGroupName: "string",
authorizationKey: "string",
authorizationName: "string",
authorizationUseStatus: "string",
id: "string",
name: "string",
});
type: azure-native:network:ExpressRouteCircuitAuthorization
properties:
authorizationKey: string
authorizationName: string
authorizationUseStatus: string
circuitName: string
id: string
name: string
resourceGroupName: string
ExpressRouteCircuitAuthorization 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 ExpressRouteCircuitAuthorization resource accepts the following input properties:
- Circuit
Name string - The name of the express route circuit.
- Resource
Group stringName - The name of the resource group.
- string
- The authorization key.
- string
- The name of the authorization.
- string | Pulumi.
Azure Native. Network. Authorization Use Status - The authorization use status.
- Id string
- Resource ID.
- Name string
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- Circuit
Name string - The name of the express route circuit.
- Resource
Group stringName - The name of the resource group.
- string
- The authorization key.
- string
- The name of the authorization.
- string | Authorization
Use Status - The authorization use status.
- Id string
- Resource ID.
- Name string
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- circuit
Name String - The name of the express route circuit.
- resource
Group StringName - The name of the resource group.
- String
- The authorization key.
- String
- The name of the authorization.
- String | Authorization
Use Status - The authorization use status.
- id String
- Resource ID.
- name String
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- circuit
Name string - The name of the express route circuit.
- resource
Group stringName - The name of the resource group.
- string
- The authorization key.
- string
- The name of the authorization.
- string | Authorization
Use Status - The authorization use status.
- id string
- Resource ID.
- name string
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- circuit_
name str - The name of the express route circuit.
- resource_
group_ strname - The name of the resource group.
- str
- The authorization key.
- str
- The name of the authorization.
- str | Authorization
Use Status - The authorization use status.
- id str
- Resource ID.
- name str
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- circuit
Name String - The name of the express route circuit.
- resource
Group StringName - The name of the resource group.
- String
- The authorization key.
- String
- The name of the authorization.
- String | "Available" | "In
Use" - The authorization use status.
- id String
- Resource ID.
- name String
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the ExpressRouteCircuitAuthorization 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.
- Provisioning
State string - The provisioning state of the authorization resource.
- Type string
- Type of the resource.
- 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.
- Provisioning
State string - The provisioning state of the authorization resource.
- Type string
- Type of the resource.
- 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.
- provisioning
State String - The provisioning state of the authorization resource.
- type String
- Type of the resource.
- 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.
- provisioning
State string - The provisioning state of the authorization resource.
- type string
- Type of the resource.
- 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.
- provisioning_
state str - The provisioning state of the authorization resource.
- type str
- Type of the resource.
- 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.
- provisioning
State String - The provisioning state of the authorization resource.
- type String
- Type of the resource.
Supporting Types
AuthorizationUseStatus, AuthorizationUseStatusArgs
- Available
- Available
- In
Use - InUse
- Authorization
Use Status Available - Available
- Authorization
Use Status In Use - InUse
- Available
- Available
- In
Use - InUse
- Available
- Available
- In
Use - InUse
- AVAILABLE
- Available
- IN_USE
- InUse
- "Available"
- Available
- "In
Use" - InUse
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:network:ExpressRouteCircuitAuthorization authorizationName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0