@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 2.67 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Gets a web agent with the specified name within a resource group.
*
* Uses Azure REST API version 2025-09-01-preview.
*/
export declare function getWebAgent(args: GetWebAgentArgs, opts?: pulumi.InvokeOptions): Promise<GetWebAgentResult>;
export interface GetWebAgentArgs {
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: string;
/**
* The name of the web agent.
*/
webAgentName: string;
}
/**
* Defines a web agent resource for Azure CDN.
*/
export interface GetWebAgentResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* Optional textual description of the agent.
*/
readonly description?: string;
/**
* Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
*/
readonly id: string;
/**
* The geo-location where the resource lives
*/
readonly location: string;
/**
* The name of the resource
*/
readonly name: string;
/**
* List of paths associated with the web agent.
*/
readonly paths?: outputs.cdn.AgentPathResponse[];
/**
* References to agent links in CDN profiles.
*/
readonly profileAgentLinks: outputs.cdn.ResourceReferenceResponse[];
/**
* Provisioning status of the web agent.
*/
readonly provisioningState: string;
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
readonly systemData: outputs.cdn.SystemDataResponse;
/**
* System prompt for the web agent.
*/
readonly systemPrompt?: string;
/**
* Resource tags.
*/
readonly tags?: {
[key: string]: string;
};
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
readonly type: string;
}
/**
* Gets a web agent with the specified name within a resource group.
*
* Uses Azure REST API version 2025-09-01-preview.
*/
export declare function getWebAgentOutput(args: GetWebAgentOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetWebAgentResult>;
export interface GetWebAgentOutputArgs {
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
/**
* The name of the web agent.
*/
webAgentName: pulumi.Input<string>;
}