azure-native.network.ExpressRoutePortAuthorization
Explore with Pulumi AI
ExpressRoutePort Authorization resource definition. API Version: 2022-01-01.
Example Usage
Create ExpressRoutePort Authorization
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var expressRoutePortAuthorization = new AzureNative.Network.ExpressRoutePortAuthorization("expressRoutePortAuthorization", new()
{
AuthorizationName = "authorizatinName",
ExpressRoutePortName = "expressRoutePortName",
ResourceGroupName = "rg1",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewExpressRoutePortAuthorization(ctx, "expressRoutePortAuthorization", &network.ExpressRoutePortAuthorizationArgs{
AuthorizationName: pulumi.String("authorizatinName"),
ExpressRoutePortName: pulumi.String("expressRoutePortName"),
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.ExpressRoutePortAuthorization;
import com.pulumi.azurenative.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 expressRoutePortAuthorization = new ExpressRoutePortAuthorization("expressRoutePortAuthorization", ExpressRoutePortAuthorizationArgs.builder()
.authorizationName("authorizatinName")
.expressRoutePortName("expressRoutePortName")
.resourceGroupName("rg1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
express_route_port_authorization = azure_native.network.ExpressRoutePortAuthorization("expressRoutePortAuthorization",
authorization_name="authorizatinName",
express_route_port_name="expressRoutePortName",
resource_group_name="rg1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const expressRoutePortAuthorization = new azure_native.network.ExpressRoutePortAuthorization("expressRoutePortAuthorization", {
authorizationName: "authorizatinName",
expressRoutePortName: "expressRoutePortName",
resourceGroupName: "rg1",
});
resources:
expressRoutePortAuthorization:
type: azure-native:network:ExpressRoutePortAuthorization
properties:
authorizationName: authorizatinName
expressRoutePortName: expressRoutePortName
resourceGroupName: rg1
Create ExpressRoutePortAuthorization Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ExpressRoutePortAuthorization(name: string, args: ExpressRoutePortAuthorizationArgs, opts?: CustomResourceOptions);
@overload
def ExpressRoutePortAuthorization(resource_name: str,
args: ExpressRoutePortAuthorizationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ExpressRoutePortAuthorization(resource_name: str,
opts: Optional[ResourceOptions] = None,
express_route_port_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
authorization_name: Optional[str] = None,
id: Optional[str] = None,
name: Optional[str] = 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-native:network:ExpressRoutePortAuthorization
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 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var expressRoutePortAuthorizationResource = new AzureNative.Network.ExpressRoutePortAuthorization("expressRoutePortAuthorizationResource", new()
{
ExpressRoutePortName = "string",
ResourceGroupName = "string",
AuthorizationName = "string",
Id = "string",
Name = "string",
});
example, err := network.NewExpressRoutePortAuthorization(ctx, "expressRoutePortAuthorizationResource", &network.ExpressRoutePortAuthorizationArgs{
ExpressRoutePortName: "string",
ResourceGroupName: "string",
AuthorizationName: "string",
Id: "string",
Name: "string",
})
var expressRoutePortAuthorizationResource = new ExpressRoutePortAuthorization("expressRoutePortAuthorizationResource", ExpressRoutePortAuthorizationArgs.builder()
.expressRoutePortName("string")
.resourceGroupName("string")
.authorizationName("string")
.id("string")
.name("string")
.build());
express_route_port_authorization_resource = azure_native.network.ExpressRoutePortAuthorization("expressRoutePortAuthorizationResource",
express_route_port_name=string,
resource_group_name=string,
authorization_name=string,
id=string,
name=string)
const expressRoutePortAuthorizationResource = new azure_native.network.ExpressRoutePortAuthorization("expressRoutePortAuthorizationResource", {
expressRoutePortName: "string",
resourceGroupName: "string",
authorizationName: "string",
id: "string",
name: "string",
});
type: azure-native:network:ExpressRoutePortAuthorization
properties:
authorizationName: string
expressRoutePortName: string
id: string
name: string
resourceGroupName: string
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.
- Resource
Group stringName - The name of the resource group.
- string
- The name of the authorization.
- 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.
- Express
Route stringPort Name - The name of the express route port.
- Resource
Group stringName - The name of the resource group.
- string
- The name of the authorization.
- 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.
- express
Route StringPort Name - The name of the express route port.
- resource
Group StringName - The name of the resource group.
- String
- The name of the authorization.
- 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.
- express
Route stringPort Name - The name of the express route port.
- resource
Group stringName - The name of the resource group.
- string
- The name of the authorization.
- 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.
- express_
route_ strport_ name - The name of the express route port.
- resource_
group_ strname - The name of the resource group.
- str
- The name of the authorization.
- 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.
- express
Route StringPort Name - The name of the express route port.
- resource
Group StringName - The name of the resource group.
- String
- The name of the authorization.
- 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 ExpressRoutePortAuthorization resource produces the following output properties:
- string
- The authorization key.
- string
- The authorization use status.
- Circuit
Resource stringUri - The reference to the ExpressRoute circuit resource using the authorization.
- 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.
- string
- The authorization key.
- string
- The authorization use status.
- Circuit
Resource stringUri - The reference to the ExpressRoute circuit resource using the authorization.
- 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.
- String
- The authorization key.
- String
- The authorization use status.
- circuit
Resource StringUri - The reference to the ExpressRoute circuit resource using the authorization.
- 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.
- string
- The authorization key.
- string
- The authorization use status.
- circuit
Resource stringUri - The reference to the ExpressRoute circuit resource using the authorization.
- 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.
- str
- The authorization key.
- str
- The authorization use status.
- circuit_
resource_ struri - The reference to the ExpressRoute circuit resource using the authorization.
- 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.
- String
- The authorization key.
- String
- The authorization use status.
- circuit
Resource StringUri - The reference to the ExpressRoute circuit resource using the authorization.
- 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.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:network:ExpressRoutePortAuthorization authorizationName /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ExpressRoutePorts/expressRoutePortName/authorizations/authorizationName
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0