1. Packages
  2. Azure Native
  3. API Docs
  4. peering
  5. getRegisteredAsn
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi

azure-native.peering.getRegisteredAsn

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi

    Gets an existing registered ASN with the specified name under the given subscription, resource group and peering. Azure REST API version: 2022-10-01.

    Using getRegisteredAsn

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getRegisteredAsn(args: GetRegisteredAsnArgs, opts?: InvokeOptions): Promise<GetRegisteredAsnResult>
    function getRegisteredAsnOutput(args: GetRegisteredAsnOutputArgs, opts?: InvokeOptions): Output<GetRegisteredAsnResult>
    def get_registered_asn(peering_name: Optional[str] = None,
                           registered_asn_name: Optional[str] = None,
                           resource_group_name: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetRegisteredAsnResult
    def get_registered_asn_output(peering_name: Optional[pulumi.Input[str]] = None,
                           registered_asn_name: Optional[pulumi.Input[str]] = None,
                           resource_group_name: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetRegisteredAsnResult]
    func LookupRegisteredAsn(ctx *Context, args *LookupRegisteredAsnArgs, opts ...InvokeOption) (*LookupRegisteredAsnResult, error)
    func LookupRegisteredAsnOutput(ctx *Context, args *LookupRegisteredAsnOutputArgs, opts ...InvokeOption) LookupRegisteredAsnResultOutput

    > Note: This function is named LookupRegisteredAsn in the Go SDK.

    public static class GetRegisteredAsn 
    {
        public static Task<GetRegisteredAsnResult> InvokeAsync(GetRegisteredAsnArgs args, InvokeOptions? opts = null)
        public static Output<GetRegisteredAsnResult> Invoke(GetRegisteredAsnInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRegisteredAsnResult> getRegisteredAsn(GetRegisteredAsnArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure-native:peering:getRegisteredAsn
      arguments:
        # arguments dictionary

    The following arguments are supported:

    PeeringName string
    The name of the peering.
    RegisteredAsnName string
    The name of the registered ASN.
    ResourceGroupName string
    The name of the resource group.
    PeeringName string
    The name of the peering.
    RegisteredAsnName string
    The name of the registered ASN.
    ResourceGroupName string
    The name of the resource group.
    peeringName String
    The name of the peering.
    registeredAsnName String
    The name of the registered ASN.
    resourceGroupName String
    The name of the resource group.
    peeringName string
    The name of the peering.
    registeredAsnName string
    The name of the registered ASN.
    resourceGroupName string
    The name of the resource group.
    peering_name str
    The name of the peering.
    registered_asn_name str
    The name of the registered ASN.
    resource_group_name str
    The name of the resource group.
    peeringName String
    The name of the peering.
    registeredAsnName String
    The name of the registered ASN.
    resourceGroupName String
    The name of the resource group.

    getRegisteredAsn Result

    The following output properties are available:

    Id string
    The ID of the resource.
    Name string
    The name of the resource.
    PeeringServicePrefixKey string
    The peering service prefix key that is to be shared with the customer.
    ProvisioningState string
    The provisioning state of the resource.
    Type string
    The type of the resource.
    Asn int
    The customer's ASN from which traffic originates.
    Id string
    The ID of the resource.
    Name string
    The name of the resource.
    PeeringServicePrefixKey string
    The peering service prefix key that is to be shared with the customer.
    ProvisioningState string
    The provisioning state of the resource.
    Type string
    The type of the resource.
    Asn int
    The customer's ASN from which traffic originates.
    id String
    The ID of the resource.
    name String
    The name of the resource.
    peeringServicePrefixKey String
    The peering service prefix key that is to be shared with the customer.
    provisioningState String
    The provisioning state of the resource.
    type String
    The type of the resource.
    asn Integer
    The customer's ASN from which traffic originates.
    id string
    The ID of the resource.
    name string
    The name of the resource.
    peeringServicePrefixKey string
    The peering service prefix key that is to be shared with the customer.
    provisioningState string
    The provisioning state of the resource.
    type string
    The type of the resource.
    asn number
    The customer's ASN from which traffic originates.
    id str
    The ID of the resource.
    name str
    The name of the resource.
    peering_service_prefix_key str
    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.
    asn int
    The customer's ASN from which traffic originates.
    id String
    The ID of the resource.
    name String
    The name of the resource.
    peeringServicePrefixKey String
    The peering service prefix key that is to be shared with the customer.
    provisioningState String
    The provisioning state of the resource.
    type String
    The type of the resource.
    asn Number
    The customer's ASN from which traffic originates.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi