azure-native.peering.RegisteredAsn
Explore with Pulumi AI
The customer’s ASN that is registered by the peering service provider. API Version: 2021-01-01.
Example Usage
Create or update a registered ASN for the peering
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var registeredAsn = new AzureNative.Peering.RegisteredAsn("registeredAsn", new()
{
Asn = 65000,
PeeringName = "peeringName",
RegisteredAsnName = "registeredAsnName",
ResourceGroupName = "rgName",
});
});
package main
import (
peering "github.com/pulumi/pulumi-azure-native-sdk/peering"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := peering.NewRegisteredAsn(ctx, "registeredAsn", &peering.RegisteredAsnArgs{
Asn: pulumi.Int(65000),
PeeringName: pulumi.String("peeringName"),
RegisteredAsnName: pulumi.String("registeredAsnName"),
ResourceGroupName: pulumi.String("rgName"),
})
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.peering.RegisteredAsn;
import com.pulumi.azurenative.peering.RegisteredAsnArgs;
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 registeredAsn = new RegisteredAsn("registeredAsn", RegisteredAsnArgs.builder()
.asn(65000)
.peeringName("peeringName")
.registeredAsnName("registeredAsnName")
.resourceGroupName("rgName")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
registered_asn = azure_native.peering.RegisteredAsn("registeredAsn",
asn=65000,
peering_name="peeringName",
registered_asn_name="registeredAsnName",
resource_group_name="rgName")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const registeredAsn = new azure_native.peering.RegisteredAsn("registeredAsn", {
asn: 65000,
peeringName: "peeringName",
registeredAsnName: "registeredAsnName",
resourceGroupName: "rgName",
});
resources:
registeredAsn:
type: azure-native:peering:RegisteredAsn
properties:
asn: 65000
peeringName: peeringName
registeredAsnName: registeredAsnName
resourceGroupName: rgName
Create RegisteredAsn Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RegisteredAsn(name: string, args: RegisteredAsnArgs, opts?: CustomResourceOptions);
@overload
def RegisteredAsn(resource_name: str,
args: RegisteredAsnArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RegisteredAsn(resource_name: str,
opts: Optional[ResourceOptions] = None,
peering_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
asn: Optional[int] = None,
registered_asn_name: Optional[str] = None)
func NewRegisteredAsn(ctx *Context, name string, args RegisteredAsnArgs, opts ...ResourceOption) (*RegisteredAsn, error)
public RegisteredAsn(string name, RegisteredAsnArgs args, CustomResourceOptions? opts = null)
public RegisteredAsn(String name, RegisteredAsnArgs args)
public RegisteredAsn(String name, RegisteredAsnArgs args, CustomResourceOptions options)
type: azure-native:peering:RegisteredAsn
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 RegisteredAsnArgs
- 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 RegisteredAsnArgs
- 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 RegisteredAsnArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RegisteredAsnArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RegisteredAsnArgs
- 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 registeredAsnResource = new AzureNative.Peering.RegisteredAsn("registeredAsnResource", new()
{
PeeringName = "string",
ResourceGroupName = "string",
Asn = 0,
RegisteredAsnName = "string",
});
example, err := peering.NewRegisteredAsn(ctx, "registeredAsnResource", &peering.RegisteredAsnArgs{
PeeringName: "string",
ResourceGroupName: "string",
Asn: 0,
RegisteredAsnName: "string",
})
var registeredAsnResource = new RegisteredAsn("registeredAsnResource", RegisteredAsnArgs.builder()
.peeringName("string")
.resourceGroupName("string")
.asn(0)
.registeredAsnName("string")
.build());
registered_asn_resource = azure_native.peering.RegisteredAsn("registeredAsnResource",
peering_name=string,
resource_group_name=string,
asn=0,
registered_asn_name=string)
const registeredAsnResource = new azure_native.peering.RegisteredAsn("registeredAsnResource", {
peeringName: "string",
resourceGroupName: "string",
asn: 0,
registeredAsnName: "string",
});
type: azure-native:peering:RegisteredAsn
properties:
asn: 0
peeringName: string
registeredAsnName: string
resourceGroupName: string
RegisteredAsn 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 RegisteredAsn resource accepts the following input properties:
- Peering
Name string - The name of the peering.
- Resource
Group stringName - The name of the resource group.
- Asn int
- The customer's ASN from which traffic originates.
- Registered
Asn stringName - The name of the ASN.
- Peering
Name string - The name of the peering.
- Resource
Group stringName - The name of the resource group.
- Asn int
- The customer's ASN from which traffic originates.
- Registered
Asn stringName - The name of the ASN.
- peering
Name String - The name of the peering.
- resource
Group StringName - The name of the resource group.
- asn Integer
- The customer's ASN from which traffic originates.
- registered
Asn StringName - The name of the ASN.
- peering
Name string - The name of the peering.
- resource
Group stringName - The name of the resource group.
- asn number
- The customer's ASN from which traffic originates.
- registered
Asn stringName - The name of the ASN.
- peering_
name str - The name of the peering.
- resource_
group_ strname - The name of the resource group.
- asn int
- The customer's ASN from which traffic originates.
- registered_
asn_ strname - The name of the ASN.
- peering
Name String - The name of the peering.
- resource
Group StringName - The name of the resource group.
- asn Number
- The customer's ASN from which traffic originates.
- registered
Asn StringName - The name of the ASN.
Outputs
All input properties are implicitly available as output properties. Additionally, the RegisteredAsn resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource.
- Peering
Service stringPrefix Key - The peering service prefix key that is to be shared with the customer.
- Provisioning
State string - The provisioning state of the resource.
- Type string
- The type of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource.
- Peering
Service stringPrefix Key - The peering service prefix key that is to be shared with the customer.
- Provisioning
State string - The provisioning state of the resource.
- Type string
- The type of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource.
- peering
Service StringPrefix Key - The peering service prefix key that is to be shared with the customer.
- provisioning
State String - The provisioning state of the resource.
- type String
- The type of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource.
- peering
Service stringPrefix Key - The peering service prefix key that is to be shared with the customer.
- provisioning
State string - The provisioning state of the resource.
- type string
- The type of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource.
- peering_
service_ strprefix_ key - The peering service prefix key that is to be shared with the customer.
- provisioning_
state str - The provisioning state of the resource.
- type str
- The type of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource.
- peering
Service StringPrefix Key - The peering service prefix key that is to be shared with the customer.
- provisioning
State String - The provisioning state of the resource.
- type String
- The type of the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:peering:RegisteredAsn registeredAsnName /subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName/registeredAsns/registeredAsnName
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