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.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.peering.getPrefix
Explore with Pulumi AI
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.89.1 published on Sunday, Mar 2, 2025 by Pulumi
Gets an existing prefix with the specified name under the given subscription, resource group and peering service. Azure REST API version: 2022-10-01.
Using getPrefix
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 getPrefix(args: GetPrefixArgs, opts?: InvokeOptions): Promise<GetPrefixResult>
function getPrefixOutput(args: GetPrefixOutputArgs, opts?: InvokeOptions): Output<GetPrefixResult>def get_prefix(expand: Optional[str] = None,
               peering_service_name: Optional[str] = None,
               prefix_name: Optional[str] = None,
               resource_group_name: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetPrefixResult
def get_prefix_output(expand: Optional[pulumi.Input[str]] = None,
               peering_service_name: Optional[pulumi.Input[str]] = None,
               prefix_name: Optional[pulumi.Input[str]] = None,
               resource_group_name: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetPrefixResult]func LookupPrefix(ctx *Context, args *LookupPrefixArgs, opts ...InvokeOption) (*LookupPrefixResult, error)
func LookupPrefixOutput(ctx *Context, args *LookupPrefixOutputArgs, opts ...InvokeOption) LookupPrefixResultOutput> Note: This function is named LookupPrefix in the Go SDK.
public static class GetPrefix 
{
    public static Task<GetPrefixResult> InvokeAsync(GetPrefixArgs args, InvokeOptions? opts = null)
    public static Output<GetPrefixResult> Invoke(GetPrefixInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPrefixResult> getPrefix(GetPrefixArgs args, InvokeOptions options)
public static Output<GetPrefixResult> getPrefix(GetPrefixArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:peering:getPrefix
  arguments:
    # arguments dictionaryThe following arguments are supported:
- PeeringService stringName 
- The name of the peering service.
- PrefixName string
- The name of the prefix.
- ResourceGroup stringName 
- The name of the resource group.
- Expand string
- The properties to be expanded.
- PeeringService stringName 
- The name of the peering service.
- PrefixName string
- The name of the prefix.
- ResourceGroup stringName 
- The name of the resource group.
- Expand string
- The properties to be expanded.
- peeringService StringName 
- The name of the peering service.
- prefixName String
- The name of the prefix.
- resourceGroup StringName 
- The name of the resource group.
- expand String
- The properties to be expanded.
- peeringService stringName 
- The name of the peering service.
- prefixName string
- The name of the prefix.
- resourceGroup stringName 
- The name of the resource group.
- expand string
- The properties to be expanded.
- peering_service_ strname 
- The name of the peering service.
- prefix_name str
- The name of the prefix.
- resource_group_ strname 
- The name of the resource group.
- expand str
- The properties to be expanded.
- peeringService StringName 
- The name of the peering service.
- prefixName String
- The name of the prefix.
- resourceGroup StringName 
- The name of the resource group.
- expand String
- The properties to be expanded.
getPrefix Result
The following output properties are available:
- ErrorMessage string
- The error message for validation state
- Events
List<Pulumi.Azure Native. Peering. Outputs. Peering Service Prefix Event Response> 
- The list of events for peering service prefix
- Id string
- The ID of the resource.
- LearnedType string
- The prefix learned type
- Name string
- The name of the resource.
- PrefixValidation stringState 
- The prefix validation state
- ProvisioningState string
- The provisioning state of the resource.
- Type string
- The type of the resource.
- PeeringService stringPrefix Key 
- The peering service prefix key
- Prefix string
- The prefix from which your traffic originates.
- ErrorMessage string
- The error message for validation state
- Events
[]PeeringService Prefix Event Response 
- The list of events for peering service prefix
- Id string
- The ID of the resource.
- LearnedType string
- The prefix learned type
- Name string
- The name of the resource.
- PrefixValidation stringState 
- The prefix validation state
- ProvisioningState string
- The provisioning state of the resource.
- Type string
- The type of the resource.
- PeeringService stringPrefix Key 
- The peering service prefix key
- Prefix string
- The prefix from which your traffic originates.
- errorMessage String
- The error message for validation state
- events
List<PeeringService Prefix Event Response> 
- The list of events for peering service prefix
- id String
- The ID of the resource.
- learnedType String
- The prefix learned type
- name String
- The name of the resource.
- prefixValidation StringState 
- The prefix validation state
- provisioningState String
- The provisioning state of the resource.
- type String
- The type of the resource.
- peeringService StringPrefix Key 
- The peering service prefix key
- prefix String
- The prefix from which your traffic originates.
- errorMessage string
- The error message for validation state
- events
PeeringService Prefix Event Response[] 
- The list of events for peering service prefix
- id string
- The ID of the resource.
- learnedType string
- The prefix learned type
- name string
- The name of the resource.
- prefixValidation stringState 
- The prefix validation state
- provisioningState string
- The provisioning state of the resource.
- type string
- The type of the resource.
- peeringService stringPrefix Key 
- The peering service prefix key
- prefix string
- The prefix from which your traffic originates.
- error_message str
- The error message for validation state
- events
Sequence[PeeringService Prefix Event Response] 
- The list of events for peering service prefix
- id str
- The ID of the resource.
- learned_type str
- The prefix learned type
- name str
- The name of the resource.
- prefix_validation_ strstate 
- The prefix validation state
- provisioning_state str
- The provisioning state of the resource.
- type str
- The type of the resource.
- peering_service_ strprefix_ key 
- The peering service prefix key
- prefix str
- The prefix from which your traffic originates.
- errorMessage String
- The error message for validation state
- events List<Property Map>
- The list of events for peering service prefix
- id String
- The ID of the resource.
- learnedType String
- The prefix learned type
- name String
- The name of the resource.
- prefixValidation StringState 
- The prefix validation state
- provisioningState String
- The provisioning state of the resource.
- type String
- The type of the resource.
- peeringService StringPrefix Key 
- The peering service prefix key
- prefix String
- The prefix from which your traffic originates.
Supporting Types
PeeringServicePrefixEventResponse    
- EventDescription string
- The description of the event associated with a prefix.
- EventLevel string
- The level of the event associated with a prefix.
- EventSummary string
- The summary of the event associated with a prefix.
- EventTimestamp string
- The timestamp of the event associated with a prefix.
- EventType string
- The type of the event associated with a prefix.
- EventDescription string
- The description of the event associated with a prefix.
- EventLevel string
- The level of the event associated with a prefix.
- EventSummary string
- The summary of the event associated with a prefix.
- EventTimestamp string
- The timestamp of the event associated with a prefix.
- EventType string
- The type of the event associated with a prefix.
- eventDescription String
- The description of the event associated with a prefix.
- eventLevel String
- The level of the event associated with a prefix.
- eventSummary String
- The summary of the event associated with a prefix.
- eventTimestamp String
- The timestamp of the event associated with a prefix.
- eventType String
- The type of the event associated with a prefix.
- eventDescription string
- The description of the event associated with a prefix.
- eventLevel string
- The level of the event associated with a prefix.
- eventSummary string
- The summary of the event associated with a prefix.
- eventTimestamp string
- The timestamp of the event associated with a prefix.
- eventType string
- The type of the event associated with a prefix.
- event_description str
- The description of the event associated with a prefix.
- event_level str
- The level of the event associated with a prefix.
- event_summary str
- The summary of the event associated with a prefix.
- event_timestamp str
- The timestamp of the event associated with a prefix.
- event_type str
- The type of the event associated with a prefix.
- eventDescription String
- The description of the event associated with a prefix.
- eventLevel String
- The level of the event associated with a prefix.
- eventSummary String
- The summary of the event associated with a prefix.
- eventTimestamp String
- The timestamp of the event associated with a prefix.
- eventType String
- The type of the event associated with a prefix.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
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.89.1 published on Sunday, Mar 2, 2025 by Pulumi