@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 3.22 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Gets an existing connection monitor test with the specified name under the given subscription, resource group and peering service.
*
* 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 getConnectionMonitorTest(args: GetConnectionMonitorTestArgs, opts?: pulumi.InvokeOptions): Promise<GetConnectionMonitorTestResult>;
export interface GetConnectionMonitorTestArgs {
/**
* The name of the connection monitor test
*/
connectionMonitorTestName: string;
/**
* The name of the peering service.
*/
peeringServiceName: string;
/**
* The name of the resource group.
*/
resourceGroupName: string;
}
/**
* The Connection Monitor Test class.
*/
export interface GetConnectionMonitorTestResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* The Connection Monitor test destination
*/
readonly destination?: string;
/**
* The Connection Monitor test destination port
*/
readonly destinationPort?: number;
/**
* The ID of the resource.
*/
readonly id: string;
/**
* The flag that indicates if the Connection Monitor test is successful or not.
*/
readonly isTestSuccessful: boolean;
/**
* The name of the resource.
*/
readonly name: string;
/**
* The path representing the Connection Monitor test.
*/
readonly path: string[];
/**
* The provisioning state of the resource.
*/
readonly provisioningState: string;
/**
* The Connection Monitor test source agent
*/
readonly sourceAgent?: string;
/**
* The Connection Monitor test frequency in seconds
*/
readonly testFrequencyInSec?: number;
/**
* The type of the resource.
*/
readonly type: string;
}
/**
* Gets an existing connection monitor test with the specified name under the given subscription, resource group and peering service.
*
* 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 getConnectionMonitorTestOutput(args: GetConnectionMonitorTestOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetConnectionMonitorTestResult>;
export interface GetConnectionMonitorTestOutputArgs {
/**
* The name of the connection monitor test
*/
connectionMonitorTestName: pulumi.Input<string>;
/**
* The name of the peering service.
*/
peeringServiceName: pulumi.Input<string>;
/**
* The name of the resource group.
*/
resourceGroupName: pulumi.Input<string>;
}