@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 3.28 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Gets an existing peering service with the specified name under the given subscription and resource group.
*
* Uses Azure REST API version 2022-10-01.
*
* Other available API versions: 2025-05-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native peering [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getPeeringService(args: GetPeeringServiceArgs, opts?: pulumi.InvokeOptions): Promise<GetPeeringServiceResult>;
export interface GetPeeringServiceArgs {
/**
* The name of the peering.
*/
peeringServiceName: string;
/**
* The name of the resource group.
*/
resourceGroupName: string;
}
/**
* Peering Service
*/
export interface GetPeeringServiceResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* The ID of the resource.
*/
readonly id: string;
/**
* The location of the resource.
*/
readonly location: string;
/**
* The Log Analytics Workspace Properties
*/
readonly logAnalyticsWorkspaceProperties?: outputs.peering.LogAnalyticsWorkspacePropertiesResponse;
/**
* The name of the resource.
*/
readonly name: string;
/**
* The location (state/province) of the customer.
*/
readonly peeringServiceLocation?: string;
/**
* The name of the service provider.
*/
readonly peeringServiceProvider?: string;
/**
* The backup peering (Microsoft/service provider) location to be used for customer traffic.
*/
readonly providerBackupPeeringLocation?: string;
/**
* The primary peering (Microsoft/service provider) location to be used for customer traffic.
*/
readonly providerPrimaryPeeringLocation?: string;
/**
* The provisioning state of the resource.
*/
readonly provisioningState: string;
/**
* The SKU that defines the type of the peering service.
*/
readonly sku?: outputs.peering.PeeringServiceSkuResponse;
/**
* The resource tags.
*/
readonly tags?: {
[key: string]: string;
};
/**
* The type of the resource.
*/
readonly type: string;
}
/**
* Gets an existing peering service with the specified name under the given subscription and resource group.
*
* Uses Azure REST API version 2022-10-01.
*
* Other available API versions: 2025-05-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native peering [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getPeeringServiceOutput(args: GetPeeringServiceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPeeringServiceResult>;
export interface GetPeeringServiceOutputArgs {
/**
* The name of the peering.
*/
peeringServiceName: pulumi.Input<string>;
/**
* The name of the resource group.
*/
resourceGroupName: pulumi.Input<string>;
}