azure-native.peering.PeerAsn
Explore with Pulumi AI
The essential information related to the peer’s ASN.
Uses Azure REST API version 2022-10-01. In version 2.x of the Azure Native provider, it used API version 2022-10-01.
Create PeerAsn Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PeerAsn(name: string, args?: PeerAsnArgs, opts?: CustomResourceOptions);
@overload
def PeerAsn(resource_name: str,
args: Optional[PeerAsnArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def PeerAsn(resource_name: str,
opts: Optional[ResourceOptions] = None,
peer_asn: Optional[int] = None,
peer_asn_name: Optional[str] = None,
peer_contact_detail: Optional[Sequence[ContactDetailArgs]] = None,
peer_name: Optional[str] = None)
func NewPeerAsn(ctx *Context, name string, args *PeerAsnArgs, opts ...ResourceOption) (*PeerAsn, error)
public PeerAsn(string name, PeerAsnArgs? args = null, CustomResourceOptions? opts = null)
public PeerAsn(String name, PeerAsnArgs args)
public PeerAsn(String name, PeerAsnArgs args, CustomResourceOptions options)
type: azure-native:peering:PeerAsn
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args PeerAsnArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args PeerAsnArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args PeerAsnArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args PeerAsnArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. PeerAsnArgs - 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 peerAsnResource = new AzureNative.Peering.PeerAsn("peerAsnResource", new()
{
PeerAsn = 0,
PeerAsnName = "string",
PeerContactDetail = new[]
{
new AzureNative.Peering.Inputs.ContactDetailArgs
{
Email = "string",
Phone = "string",
Role = "string",
},
},
PeerName = "string",
});
example, err := peering.NewPeerAsn(ctx, "peerAsnResource", &peering.PeerAsnArgs{
PeerAsn: pulumi.Int(0),
PeerAsnName: pulumi.String("string"),
PeerContactDetail: peering.ContactDetailArray{
&peering.ContactDetailArgs{
Email: pulumi.String("string"),
Phone: pulumi.String("string"),
Role: pulumi.String("string"),
},
},
PeerName: pulumi.String("string"),
})
var peerAsnResource = new PeerAsn("peerAsnResource", PeerAsnArgs.builder()
.peerAsn(0)
.peerAsnName("string")
.peerContactDetail(ContactDetailArgs.builder()
.email("string")
.phone("string")
.role("string")
.build())
.peerName("string")
.build());
peer_asn_resource = azure_native.peering.PeerAsn("peerAsnResource",
peer_asn=0,
peer_asn_name="string",
peer_contact_detail=[{
"email": "string",
"phone": "string",
"role": "string",
}],
peer_name="string")
const peerAsnResource = new azure_native.peering.PeerAsn("peerAsnResource", {
peerAsn: 0,
peerAsnName: "string",
peerContactDetail: [{
email: "string",
phone: "string",
role: "string",
}],
peerName: "string",
});
type: azure-native:peering:PeerAsn
properties:
peerAsn: 0
peerAsnName: string
peerContactDetail:
- email: string
phone: string
role: string
peerName: string
PeerAsn Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PeerAsn resource accepts the following input properties:
- Peer
Asn int - The Autonomous System Number (ASN) of the peer.
- Peer
Asn Name Changes to this property will trigger replacement.
- The peer ASN name.
- Peer
Contact List<Pulumi.Detail Azure Native. Peering. Inputs. Contact Detail> - The contact details of the peer.
- Peer
Name string - The name of the peer.
- Peer
Asn int - The Autonomous System Number (ASN) of the peer.
- Peer
Asn Name Changes to this property will trigger replacement.
- The peer ASN name.
- Peer
Contact []ContactDetail Detail Args - The contact details of the peer.
- Peer
Name string - The name of the peer.
- peer
Asn Integer - The Autonomous System Number (ASN) of the peer.
- peer
Asn Name Changes to this property will trigger replacement.
- The peer ASN name.
- peer
Contact List<ContactDetail Detail> - The contact details of the peer.
- peer
Name String - The name of the peer.
- peer
Asn number - The Autonomous System Number (ASN) of the peer.
- peer
Asn Name Changes to this property will trigger replacement.
- The peer ASN name.
- peer
Contact ContactDetail Detail[] - The contact details of the peer.
- peer
Name string - The name of the peer.
- peer_
asn int - The Autonomous System Number (ASN) of the peer.
- peer_
asn_ name Changes to this property will trigger replacement.
- The peer ASN name.
- peer_
contact_ Sequence[Contactdetail Detail Args] - The contact details of the peer.
- peer_
name str - The name of the peer.
- peer
Asn Number - The Autonomous System Number (ASN) of the peer.
- peer
Asn Name Changes to this property will trigger replacement.
- The peer ASN name.
- peer
Contact List<Property Map>Detail - The contact details of the peer.
- peer
Name String - The name of the peer.
Outputs
All input properties are implicitly available as output properties. Additionally, the PeerAsn resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Error
Message string - The error message for the validation state
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource.
- Type string
- The type of the resource.
- Validation
State string - The validation state of the ASN associated with the peer.
- Azure
Api stringVersion - The Azure API version of the resource.
- Error
Message string - The error message for the validation state
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource.
- Type string
- The type of the resource.
- Validation
State string - The validation state of the ASN associated with the peer.
- azure
Api StringVersion - The Azure API version of the resource.
- error
Message String - The error message for the validation state
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource.
- type String
- The type of the resource.
- validation
State String - The validation state of the ASN associated with the peer.
- azure
Api stringVersion - The Azure API version of the resource.
- error
Message string - The error message for the validation state
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource.
- type string
- The type of the resource.
- validation
State string - The validation state of the ASN associated with the peer.
- azure_
api_ strversion - The Azure API version of the resource.
- error_
message str - The error message for the validation state
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource.
- type str
- The type of the resource.
- validation_
state str - The validation state of the ASN associated with the peer.
- azure
Api StringVersion - The Azure API version of the resource.
- error
Message String - The error message for the validation state
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource.
- type String
- The type of the resource.
- validation
State String - The validation state of the ASN associated with the peer.
Supporting Types
ContactDetail, ContactDetailArgs
- Email string
- The e-mail address of the contact.
- Phone string
- The phone number of the contact.
- Role
string | Pulumi.
Azure Native. Peering. Role - The role of the contact.
- email String
- The e-mail address of the contact.
- phone String
- The phone number of the contact.
- role String | "Noc" | "Policy" | "Technical" | "Service" | "Escalation" | "Other"
- The role of the contact.
ContactDetailResponse, ContactDetailResponseArgs
Role, RoleArgs
- Noc
- Noc
- Policy
- Policy
- Technical
- Technical
- Service
- Service
- Escalation
- Escalation
- Other
- Other
- Role
Noc - Noc
- Role
Policy - Policy
- Role
Technical - Technical
- Role
Service - Service
- Role
Escalation - Escalation
- Role
Other - Other
- Noc
- Noc
- Policy
- Policy
- Technical
- Technical
- Service
- Service
- Escalation
- Escalation
- Other
- Other
- Noc
- Noc
- Policy
- Policy
- Technical
- Technical
- Service
- Service
- Escalation
- Escalation
- Other
- Other
- NOC
- Noc
- POLICY
- Policy
- TECHNICAL
- Technical
- SERVICE
- Service
- ESCALATION
- Escalation
- OTHER
- Other
- "Noc"
- Noc
- "Policy"
- Policy
- "Technical"
- Technical
- "Service"
- Service
- "Escalation"
- Escalation
- "Other"
- Other
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:peering:PeerAsn peerAsnName /subscriptions/{subscriptionId}/providers/Microsoft.Peering/peerAsns/{peerAsnName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0