@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 7.32 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Gets an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.
*
* Uses Azure REST API version 2024-09-01.
*
* Other available API versions: 2023-05-01, 2023-07-01-preview, 2024-02-01, 2024-05-01-preview, 2024-06-01-preview, 2025-01-01-preview, 2025-04-15, 2025-06-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native cdn [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getEndpoint(args: GetEndpointArgs, opts?: pulumi.InvokeOptions): Promise<GetEndpointResult>;
export interface GetEndpointArgs {
/**
* Name of the endpoint under the profile which is unique globally.
*/
endpointName: string;
/**
* Name of the CDN profile which is unique within the resource group.
*/
profileName: string;
/**
* Name of the Resource group within the Azure subscription.
*/
resourceGroupName: string;
}
/**
* CDN endpoint is the entity within a CDN profile containing configuration information such as origin, protocol, content caching and delivery behavior. The CDN endpoint uses the URL format <endpointname>.azureedge.net.
*/
export interface GetEndpointResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* List of content types on which compression applies. The value should be a valid MIME type.
*/
readonly contentTypesToCompress?: string[];
/**
* The custom domains under the endpoint.
*/
readonly customDomains: outputs.cdn.DeepCreatedCustomDomainResponse[];
/**
* A reference to the origin group.
*/
readonly defaultOriginGroup?: outputs.cdn.ResourceReferenceResponse;
/**
* A policy that specifies the delivery rules to be used for an endpoint.
*/
readonly deliveryPolicy?: outputs.cdn.EndpointPropertiesUpdateParametersResponseDeliveryPolicy;
/**
* List of rules defining the user's geo access within a CDN endpoint. Each geo filter defines an access rule to a specified path or content, e.g. block APAC for path /pictures/
*/
readonly geoFilters?: outputs.cdn.GeoFilterResponse[];
/**
* The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net
*/
readonly hostName: string;
/**
* Resource ID.
*/
readonly id: string;
/**
* Indicates whether content compression is enabled on CDN. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on CDN when requested content is smaller than 1 byte or larger than 1 MB.
*/
readonly isCompressionEnabled?: boolean;
/**
* Indicates whether HTTP traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed.
*/
readonly isHttpAllowed?: boolean;
/**
* Indicates whether HTTPS traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed.
*/
readonly isHttpsAllowed?: boolean;
/**
* Resource location.
*/
readonly location: string;
/**
* Resource name.
*/
readonly name: string;
/**
* Specifies what scenario the customer wants this CDN endpoint to optimize for, e.g. Download, Media services. With this information, CDN can apply scenario driven optimization.
*/
readonly optimizationType?: string;
/**
* The origin groups comprising of origins that are used for load balancing the traffic based on availability.
*/
readonly originGroups?: outputs.cdn.DeepCreatedOriginGroupResponse[];
/**
* The host header value sent to the origin with each request. This property at Endpoint is only allowed when endpoint uses single origin and can be overridden by the same property specified at origin.If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default.
*/
readonly originHostHeader?: string;
/**
* A directory path on the origin that CDN can use to retrieve content from, e.g. contoso.cloudapp.net/originpath.
*/
readonly originPath?: string;
/**
* The source of the content being delivered via CDN.
*/
readonly origins: outputs.cdn.DeepCreatedOriginResponse[];
/**
* Path to a file hosted on the origin which helps accelerate delivery of the dynamic content and calculate the most optimal routes for the CDN. This is relative to the origin path. This property is only relevant when using a single origin.
*/
readonly probePath?: string;
/**
* Provisioning status of the endpoint.
*/
readonly provisioningState: string;
/**
* Defines how CDN caches requests that include query strings. You can ignore any query strings when caching, bypass caching to prevent requests that contain query strings from being cached, or cache every request with a unique URL.
*/
readonly queryStringCachingBehavior?: string;
/**
* Resource status of the endpoint.
*/
readonly resourceState: string;
/**
* Read only system data
*/
readonly systemData: outputs.cdn.SystemDataResponse;
/**
* Resource tags.
*/
readonly tags?: {
[key: string]: string;
};
/**
* Resource type.
*/
readonly type: string;
/**
* List of keys used to validate the signed URL hashes.
*/
readonly urlSigningKeys?: outputs.cdn.UrlSigningKeyResponse[];
/**
* Defines the Web Application Firewall policy for the endpoint (if applicable)
*/
readonly webApplicationFirewallPolicyLink?: outputs.cdn.EndpointPropertiesUpdateParametersResponseWebApplicationFirewallPolicyLink;
}
/**
* Gets an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.
*
* Uses Azure REST API version 2024-09-01.
*
* Other available API versions: 2023-05-01, 2023-07-01-preview, 2024-02-01, 2024-05-01-preview, 2024-06-01-preview, 2025-01-01-preview, 2025-04-15, 2025-06-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native cdn [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getEndpointOutput(args: GetEndpointOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetEndpointResult>;
export interface GetEndpointOutputArgs {
/**
* Name of the endpoint under the profile which is unique globally.
*/
endpointName: pulumi.Input<string>;
/**
* Name of the CDN profile which is unique within the resource group.
*/
profileName: pulumi.Input<string>;
/**
* Name of the Resource group within the Azure subscription.
*/
resourceGroupName: pulumi.Input<string>;
}