azure-native.cdn.Route
Explore with Pulumi AI
Friendly Routes name mapping to the any Routes or secret related information. API Version: 2020-09-01.
Example Usage
Routes_Create
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var route = new AzureNative.Cdn.Route("route", new()
{
CompressionSettings = new AzureNative.Cdn.Inputs.CompressionSettingsArgs
{
ContentTypesToCompress = new[]
{
"text/html",
"application/octet-stream",
},
IsCompressionEnabled = true,
},
CustomDomains = new[]
{
new AzureNative.Cdn.Inputs.ResourceReferenceArgs
{
Id = "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/customDomains/domain1",
},
},
EnabledState = "Enabled",
EndpointName = "endpoint1",
ForwardingProtocol = "MatchRequest",
HttpsRedirect = "Enabled",
LinkToDefaultDomain = "Enabled",
OriginGroup = new AzureNative.Cdn.Inputs.ResourceReferenceArgs
{
Id = "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/originGroups/originGroup1",
},
PatternsToMatch = new[]
{
"/*",
},
ProfileName = "profile1",
QueryStringCachingBehavior = AzureNative.Cdn.AfdQueryStringCachingBehavior.IgnoreQueryString,
ResourceGroupName = "RG",
RouteName = "route1",
RuleSets = new[]
{
new AzureNative.Cdn.Inputs.ResourceReferenceArgs
{
Id = "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/ruleSets/ruleSet1",
},
},
SupportedProtocols = new[]
{
"Https",
"Http",
},
});
});
package main
import (
cdn "github.com/pulumi/pulumi-azure-native-sdk/cdn"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cdn.NewRoute(ctx, "route", &cdn.RouteArgs{
CompressionSettings: &cdn.CompressionSettingsArgs{
ContentTypesToCompress: pulumi.StringArray{
pulumi.String("text/html"),
pulumi.String("application/octet-stream"),
},
IsCompressionEnabled: pulumi.Bool(true),
},
CustomDomains: []cdn.ResourceReferenceArgs{
{
Id: pulumi.String("/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/customDomains/domain1"),
},
},
EnabledState: pulumi.String("Enabled"),
EndpointName: pulumi.String("endpoint1"),
ForwardingProtocol: pulumi.String("MatchRequest"),
HttpsRedirect: pulumi.String("Enabled"),
LinkToDefaultDomain: pulumi.String("Enabled"),
OriginGroup: &cdn.ResourceReferenceArgs{
Id: pulumi.String("/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/originGroups/originGroup1"),
},
PatternsToMatch: pulumi.StringArray{
pulumi.String("/*"),
},
ProfileName: pulumi.String("profile1"),
QueryStringCachingBehavior: cdn.AfdQueryStringCachingBehaviorIgnoreQueryString,
ResourceGroupName: pulumi.String("RG"),
RouteName: pulumi.String("route1"),
RuleSets: []cdn.ResourceReferenceArgs{
{
Id: pulumi.String("/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/ruleSets/ruleSet1"),
},
},
SupportedProtocols: pulumi.StringArray{
pulumi.String("Https"),
pulumi.String("Http"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.cdn.Route;
import com.pulumi.azurenative.cdn.RouteArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var route = new Route("route", RouteArgs.builder()
.compressionSettings(Map.ofEntries(
Map.entry("contentTypesToCompress",
"text/html",
"application/octet-stream"),
Map.entry("isCompressionEnabled", true)
))
.customDomains(Map.of("id", "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/customDomains/domain1"))
.enabledState("Enabled")
.endpointName("endpoint1")
.forwardingProtocol("MatchRequest")
.httpsRedirect("Enabled")
.linkToDefaultDomain("Enabled")
.originGroup(Map.of("id", "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/originGroups/originGroup1"))
.patternsToMatch("/*")
.profileName("profile1")
.queryStringCachingBehavior("IgnoreQueryString")
.resourceGroupName("RG")
.routeName("route1")
.ruleSets(Map.of("id", "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/ruleSets/ruleSet1"))
.supportedProtocols(
"Https",
"Http")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
route = azure_native.cdn.Route("route",
compression_settings=azure_native.cdn.CompressionSettingsArgs(
content_types_to_compress=[
"text/html",
"application/octet-stream",
],
is_compression_enabled=True,
),
custom_domains=[azure_native.cdn.ResourceReferenceArgs(
id="/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/customDomains/domain1",
)],
enabled_state="Enabled",
endpoint_name="endpoint1",
forwarding_protocol="MatchRequest",
https_redirect="Enabled",
link_to_default_domain="Enabled",
origin_group=azure_native.cdn.ResourceReferenceArgs(
id="/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/originGroups/originGroup1",
),
patterns_to_match=["/*"],
profile_name="profile1",
query_string_caching_behavior=azure_native.cdn.AfdQueryStringCachingBehavior.IGNORE_QUERY_STRING,
resource_group_name="RG",
route_name="route1",
rule_sets=[azure_native.cdn.ResourceReferenceArgs(
id="/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/ruleSets/ruleSet1",
)],
supported_protocols=[
"Https",
"Http",
])
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const route = new azure_native.cdn.Route("route", {
compressionSettings: {
contentTypesToCompress: [
"text/html",
"application/octet-stream",
],
isCompressionEnabled: true,
},
customDomains: [{
id: "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/customDomains/domain1",
}],
enabledState: "Enabled",
endpointName: "endpoint1",
forwardingProtocol: "MatchRequest",
httpsRedirect: "Enabled",
linkToDefaultDomain: "Enabled",
originGroup: {
id: "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/originGroups/originGroup1",
},
patternsToMatch: ["/*"],
profileName: "profile1",
queryStringCachingBehavior: azure_native.cdn.AfdQueryStringCachingBehavior.IgnoreQueryString,
resourceGroupName: "RG",
routeName: "route1",
ruleSets: [{
id: "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/ruleSets/ruleSet1",
}],
supportedProtocols: [
"Https",
"Http",
],
});
resources:
route:
type: azure-native:cdn:Route
properties:
compressionSettings:
contentTypesToCompress:
- text/html
- application/octet-stream
isCompressionEnabled: true
customDomains:
- id: /subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/customDomains/domain1
enabledState: Enabled
endpointName: endpoint1
forwardingProtocol: MatchRequest
httpsRedirect: Enabled
linkToDefaultDomain: Enabled
originGroup:
id: /subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/originGroups/originGroup1
patternsToMatch:
- /*
profileName: profile1
queryStringCachingBehavior: IgnoreQueryString
resourceGroupName: RG
routeName: route1
ruleSets:
- id: /subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/ruleSets/ruleSet1
supportedProtocols:
- Https
- Http
Create Route Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Route(name: string, args: RouteArgs, opts?: CustomResourceOptions);
@overload
def Route(resource_name: str,
args: RouteArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Route(resource_name: str,
opts: Optional[ResourceOptions] = None,
origin_group: Optional[ResourceReferenceArgs] = None,
resource_group_name: Optional[str] = None,
profile_name: Optional[str] = None,
endpoint_name: Optional[str] = None,
forwarding_protocol: Optional[Union[str, ForwardingProtocol]] = None,
https_redirect: Optional[Union[str, HttpsRedirect]] = None,
link_to_default_domain: Optional[Union[str, LinkToDefaultDomain]] = None,
compression_settings: Optional[CompressionSettingsArgs] = None,
origin_path: Optional[str] = None,
patterns_to_match: Optional[Sequence[str]] = None,
enabled_state: Optional[Union[str, EnabledState]] = None,
query_string_caching_behavior: Optional[AfdQueryStringCachingBehavior] = None,
custom_domains: Optional[Sequence[ResourceReferenceArgs]] = None,
route_name: Optional[str] = None,
rule_sets: Optional[Sequence[ResourceReferenceArgs]] = None,
supported_protocols: Optional[Sequence[Union[str, AFDEndpointProtocols]]] = None)
func NewRoute(ctx *Context, name string, args RouteArgs, opts ...ResourceOption) (*Route, error)
public Route(string name, RouteArgs args, CustomResourceOptions? opts = null)
type: azure-native:cdn:Route
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args RouteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args RouteArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RouteArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RouteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RouteArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var routeResource = new AzureNative.Cdn.Route("routeResource", new()
{
OriginGroup =
{
{ "id", "string" },
},
ResourceGroupName = "string",
ProfileName = "string",
EndpointName = "string",
ForwardingProtocol = "string",
HttpsRedirect = "string",
LinkToDefaultDomain = "string",
CompressionSettings =
{
{ "contentTypesToCompress", new[]
{
"string",
} },
{ "isCompressionEnabled", false },
},
OriginPath = "string",
PatternsToMatch = new[]
{
"string",
},
EnabledState = "string",
QueryStringCachingBehavior = "IgnoreQueryString",
CustomDomains = new[]
{
{
{ "id", "string" },
},
},
RouteName = "string",
RuleSets = new[]
{
{
{ "id", "string" },
},
},
SupportedProtocols = new[]
{
"string",
},
});
example, err := cdn.NewRoute(ctx, "routeResource", &cdn.RouteArgs{
OriginGroup: map[string]interface{}{
"id": "string",
},
ResourceGroupName: "string",
ProfileName: "string",
EndpointName: "string",
ForwardingProtocol: "string",
HttpsRedirect: "string",
LinkToDefaultDomain: "string",
CompressionSettings: map[string]interface{}{
"contentTypesToCompress": []string{
"string",
},
"isCompressionEnabled": false,
},
OriginPath: "string",
PatternsToMatch: []string{
"string",
},
EnabledState: "string",
QueryStringCachingBehavior: "IgnoreQueryString",
CustomDomains: []map[string]interface{}{
map[string]interface{}{
"id": "string",
},
},
RouteName: "string",
RuleSets: []map[string]interface{}{
map[string]interface{}{
"id": "string",
},
},
SupportedProtocols: []string{
"string",
},
})
var routeResource = new Route("routeResource", RouteArgs.builder()
.originGroup(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.resourceGroupName("string")
.profileName("string")
.endpointName("string")
.forwardingProtocol("string")
.httpsRedirect("string")
.linkToDefaultDomain("string")
.compressionSettings(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.originPath("string")
.patternsToMatch("string")
.enabledState("string")
.queryStringCachingBehavior("IgnoreQueryString")
.customDomains(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.routeName("string")
.ruleSets(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.supportedProtocols("string")
.build());
route_resource = azure_native.cdn.Route("routeResource",
origin_group={
id: string,
},
resource_group_name=string,
profile_name=string,
endpoint_name=string,
forwarding_protocol=string,
https_redirect=string,
link_to_default_domain=string,
compression_settings={
contentTypesToCompress: [string],
isCompressionEnabled: False,
},
origin_path=string,
patterns_to_match=[string],
enabled_state=string,
query_string_caching_behavior=IgnoreQueryString,
custom_domains=[{
id: string,
}],
route_name=string,
rule_sets=[{
id: string,
}],
supported_protocols=[string])
const routeResource = new azure_native.cdn.Route("routeResource", {
originGroup: {
id: "string",
},
resourceGroupName: "string",
profileName: "string",
endpointName: "string",
forwardingProtocol: "string",
httpsRedirect: "string",
linkToDefaultDomain: "string",
compressionSettings: {
contentTypesToCompress: ["string"],
isCompressionEnabled: false,
},
originPath: "string",
patternsToMatch: ["string"],
enabledState: "string",
queryStringCachingBehavior: "IgnoreQueryString",
customDomains: [{
id: "string",
}],
routeName: "string",
ruleSets: [{
id: "string",
}],
supportedProtocols: ["string"],
});
type: azure-native:cdn:Route
properties:
compressionSettings:
contentTypesToCompress:
- string
isCompressionEnabled: false
customDomains:
- id: string
enabledState: string
endpointName: string
forwardingProtocol: string
httpsRedirect: string
linkToDefaultDomain: string
originGroup:
id: string
originPath: string
patternsToMatch:
- string
profileName: string
queryStringCachingBehavior: IgnoreQueryString
resourceGroupName: string
routeName: string
ruleSets:
- id: string
supportedProtocols:
- string
Route Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Route resource accepts the following input properties:
- Endpoint
Name string - Name of the endpoint under the profile which is unique globally.
- Origin
Group Pulumi.Azure Native. Cdn. Inputs. Resource Reference - A reference to the origin group.
- Profile
Name string - Name of the CDN profile which is unique within the resource group.
- Resource
Group stringName - Name of the Resource group within the Azure subscription.
- Compression
Settings Pulumi.Azure Native. Cdn. Inputs. Compression Settings - compression settings.
- Custom
Domains List<Pulumi.Azure Native. Cdn. Inputs. Resource Reference> - Domains referenced by this endpoint.
- Enabled
State string | Pulumi.Azure Native. Cdn. Enabled State - Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'
- Forwarding
Protocol string | Pulumi.Azure Native. Cdn. Forwarding Protocol - Protocol this rule will use when forwarding traffic to backends.
- Https
Redirect string | Pulumi.Azure Native. Cdn. Https Redirect - Whether to automatically redirect HTTP traffic to HTTPS traffic. Note that this is a easy way to set up this rule and it will be the first rule that gets executed.
- Link
To string | Pulumi.Default Domain Azure Native. Cdn. Link To Default Domain - whether this route will be linked to the default endpoint domain.
- Origin
Path string - A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath.
- Patterns
To List<string>Match - The route patterns of the rule.
- Query
String Pulumi.Caching Behavior Azure Native. Cdn. Afd Query String Caching Behavior - 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.
- Route
Name string - Name of the routing rule.
- Rule
Sets List<Pulumi.Azure Native. Cdn. Inputs. Resource Reference> - rule sets referenced by this endpoint.
- Supported
Protocols List<Union<string, Pulumi.Azure Native. Cdn. AFDEndpoint Protocols>> - List of supported protocols for this route.
- Endpoint
Name string - Name of the endpoint under the profile which is unique globally.
- Origin
Group ResourceReference Args - A reference to the origin group.
- Profile
Name string - Name of the CDN profile which is unique within the resource group.
- Resource
Group stringName - Name of the Resource group within the Azure subscription.
- Compression
Settings CompressionSettings Args - compression settings.
- Custom
Domains []ResourceReference Args - Domains referenced by this endpoint.
- Enabled
State string | EnabledState - Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'
- Forwarding
Protocol string | ForwardingProtocol - Protocol this rule will use when forwarding traffic to backends.
- Https
Redirect string | HttpsRedirect - Whether to automatically redirect HTTP traffic to HTTPS traffic. Note that this is a easy way to set up this rule and it will be the first rule that gets executed.
- Link
To string | LinkDefault Domain To Default Domain - whether this route will be linked to the default endpoint domain.
- Origin
Path string - A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath.
- Patterns
To []stringMatch - The route patterns of the rule.
- Query
String AfdCaching Behavior Query String Caching Behavior - 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.
- Route
Name string - Name of the routing rule.
- Rule
Sets []ResourceReference Args - rule sets referenced by this endpoint.
- Supported
Protocols []string - List of supported protocols for this route.
- endpoint
Name String - Name of the endpoint under the profile which is unique globally.
- origin
Group ResourceReference - A reference to the origin group.
- profile
Name String - Name of the CDN profile which is unique within the resource group.
- resource
Group StringName - Name of the Resource group within the Azure subscription.
- compression
Settings CompressionSettings - compression settings.
- custom
Domains List<ResourceReference> - Domains referenced by this endpoint.
- enabled
State String | EnabledState - Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'
- forwarding
Protocol String | ForwardingProtocol - Protocol this rule will use when forwarding traffic to backends.
- https
Redirect String | HttpsRedirect - Whether to automatically redirect HTTP traffic to HTTPS traffic. Note that this is a easy way to set up this rule and it will be the first rule that gets executed.
- link
To String | LinkDefault Domain To Default Domain - whether this route will be linked to the default endpoint domain.
- origin
Path String - A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath.
- patterns
To List<String>Match - The route patterns of the rule.
- query
String AfdCaching Behavior Query String Caching Behavior - 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.
- route
Name String - Name of the routing rule.
- rule
Sets List<ResourceReference> - rule sets referenced by this endpoint.
- supported
Protocols List<Either<String,AFDEndpointProtocols>> - List of supported protocols for this route.
- endpoint
Name string - Name of the endpoint under the profile which is unique globally.
- origin
Group ResourceReference - A reference to the origin group.
- profile
Name string - Name of the CDN profile which is unique within the resource group.
- resource
Group stringName - Name of the Resource group within the Azure subscription.
- compression
Settings CompressionSettings - compression settings.
- custom
Domains ResourceReference[] - Domains referenced by this endpoint.
- enabled
State string | EnabledState - Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'
- forwarding
Protocol string | ForwardingProtocol - Protocol this rule will use when forwarding traffic to backends.
- https
Redirect string | HttpsRedirect - Whether to automatically redirect HTTP traffic to HTTPS traffic. Note that this is a easy way to set up this rule and it will be the first rule that gets executed.
- link
To string | LinkDefault Domain To Default Domain - whether this route will be linked to the default endpoint domain.
- origin
Path string - A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath.
- patterns
To string[]Match - The route patterns of the rule.
- query
String AfdCaching Behavior Query String Caching Behavior - 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.
- route
Name string - Name of the routing rule.
- rule
Sets ResourceReference[] - rule sets referenced by this endpoint.
- supported
Protocols (string | AFDEndpointProtocols)[] - List of supported protocols for this route.
- endpoint_
name str - Name of the endpoint under the profile which is unique globally.
- origin_
group ResourceReference Args - A reference to the origin group.
- profile_
name str - Name of the CDN profile which is unique within the resource group.
- resource_
group_ strname - Name of the Resource group within the Azure subscription.
- compression_
settings CompressionSettings Args - compression settings.
- custom_
domains Sequence[ResourceReference Args] - Domains referenced by this endpoint.
- enabled_
state str | EnabledState - Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'
- forwarding_
protocol str | ForwardingProtocol - Protocol this rule will use when forwarding traffic to backends.
- https_
redirect str | HttpsRedirect - Whether to automatically redirect HTTP traffic to HTTPS traffic. Note that this is a easy way to set up this rule and it will be the first rule that gets executed.
- link_
to_ str | Linkdefault_ domain To Default Domain - whether this route will be linked to the default endpoint domain.
- origin_
path str - A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath.
- patterns_
to_ Sequence[str]match - The route patterns of the rule.
- query_
string_ Afdcaching_ behavior Query String Caching Behavior - 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.
- route_
name str - Name of the routing rule.
- rule_
sets Sequence[ResourceReference Args] - rule sets referenced by this endpoint.
- supported_
protocols Sequence[Union[str, AFDEndpointProtocols]] - List of supported protocols for this route.
- endpoint
Name String - Name of the endpoint under the profile which is unique globally.
- origin
Group Property Map - A reference to the origin group.
- profile
Name String - Name of the CDN profile which is unique within the resource group.
- resource
Group StringName - Name of the Resource group within the Azure subscription.
- compression
Settings Property Map - compression settings.
- custom
Domains List<Property Map> - Domains referenced by this endpoint.
- enabled
State String | "Enabled" | "Disabled" - Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'
- forwarding
Protocol String | "HttpOnly" | "Https Only" | "Match Request" - Protocol this rule will use when forwarding traffic to backends.
- https
Redirect String | "Enabled" | "Disabled" - Whether to automatically redirect HTTP traffic to HTTPS traffic. Note that this is a easy way to set up this rule and it will be the first rule that gets executed.
- link
To String | "Enabled" | "Disabled"Default Domain - whether this route will be linked to the default endpoint domain.
- origin
Path String - A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath.
- patterns
To List<String>Match - The route patterns of the rule.
- query
String "IgnoreCaching Behavior Query String" | "Use Query String" | "Not Set" - 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.
- route
Name String - Name of the routing rule.
- rule
Sets List<Property Map> - rule sets referenced by this endpoint.
- supported
Protocols List<String | "Http" | "Https"> - List of supported protocols for this route.
Outputs
All input properties are implicitly available as output properties. Additionally, the Route resource produces the following output properties:
- Deployment
Status string - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Provisioning
State string - Provisioning status
- System
Data Pulumi.Azure Native. Cdn. Outputs. System Data Response - Read only system data
- Type string
- Resource type.
- Deployment
Status string - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Provisioning
State string - Provisioning status
- System
Data SystemData Response - Read only system data
- Type string
- Resource type.
- deployment
Status String - id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- provisioning
State String - Provisioning status
- system
Data SystemData Response - Read only system data
- type String
- Resource type.
- deployment
Status string - id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name.
- provisioning
State string - Provisioning status
- system
Data SystemData Response - Read only system data
- type string
- Resource type.
- deployment_
status str - id str
- The provider-assigned unique ID for this managed resource.
- name str
- Resource name.
- provisioning_
state str - Provisioning status
- system_
data SystemData Response - Read only system data
- type str
- Resource type.
- deployment
Status String - id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- provisioning
State String - Provisioning status
- system
Data Property Map - Read only system data
- type String
- Resource type.
Supporting Types
AFDEndpointProtocols, AFDEndpointProtocolsArgs
- Http
- Http
- Https
- Https
- AFDEndpoint
Protocols Http - Http
- AFDEndpoint
Protocols Https - Https
- Http
- Http
- Https
- Https
- Http
- Http
- Https
- Https
- HTTP
- Http
- HTTPS
- Https
- "Http"
- Http
- "Https"
- Https
AfdQueryStringCachingBehavior, AfdQueryStringCachingBehaviorArgs
- Ignore
Query String - IgnoreQueryString
- Use
Query String - UseQueryString
- Not
Set - NotSet
- Afd
Query String Caching Behavior Ignore Query String - IgnoreQueryString
- Afd
Query String Caching Behavior Use Query String - UseQueryString
- Afd
Query String Caching Behavior Not Set - NotSet
- Ignore
Query String - IgnoreQueryString
- Use
Query String - UseQueryString
- Not
Set - NotSet
- Ignore
Query String - IgnoreQueryString
- Use
Query String - UseQueryString
- Not
Set - NotSet
- IGNORE_QUERY_STRING
- IgnoreQueryString
- USE_QUERY_STRING
- UseQueryString
- NOT_SET
- NotSet
- "Ignore
Query String" - IgnoreQueryString
- "Use
Query String" - UseQueryString
- "Not
Set" - NotSet
CompressionSettings, CompressionSettingsArgs
- Content
Types List<string>To Compress - List of content types on which compression applies. The value should be a valid MIME type.
- Is
Compression boolEnabled - Indicates whether content compression is enabled on AzureFrontDoor. 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 AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB.
- Content
Types []stringTo Compress - List of content types on which compression applies. The value should be a valid MIME type.
- Is
Compression boolEnabled - Indicates whether content compression is enabled on AzureFrontDoor. 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 AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB.
- content
Types List<String>To Compress - List of content types on which compression applies. The value should be a valid MIME type.
- is
Compression BooleanEnabled - Indicates whether content compression is enabled on AzureFrontDoor. 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 AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB.
- content
Types string[]To Compress - List of content types on which compression applies. The value should be a valid MIME type.
- is
Compression booleanEnabled - Indicates whether content compression is enabled on AzureFrontDoor. 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 AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB.
- content_
types_ Sequence[str]to_ compress - List of content types on which compression applies. The value should be a valid MIME type.
- is_
compression_ boolenabled - Indicates whether content compression is enabled on AzureFrontDoor. 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 AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB.
- content
Types List<String>To Compress - List of content types on which compression applies. The value should be a valid MIME type.
- is
Compression BooleanEnabled - Indicates whether content compression is enabled on AzureFrontDoor. 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 AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB.
CompressionSettingsResponse, CompressionSettingsResponseArgs
- Content
Types List<string>To Compress - List of content types on which compression applies. The value should be a valid MIME type.
- Is
Compression boolEnabled - Indicates whether content compression is enabled on AzureFrontDoor. 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 AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB.
- Content
Types []stringTo Compress - List of content types on which compression applies. The value should be a valid MIME type.
- Is
Compression boolEnabled - Indicates whether content compression is enabled on AzureFrontDoor. 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 AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB.
- content
Types List<String>To Compress - List of content types on which compression applies. The value should be a valid MIME type.
- is
Compression BooleanEnabled - Indicates whether content compression is enabled on AzureFrontDoor. 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 AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB.
- content
Types string[]To Compress - List of content types on which compression applies. The value should be a valid MIME type.
- is
Compression booleanEnabled - Indicates whether content compression is enabled on AzureFrontDoor. 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 AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB.
- content_
types_ Sequence[str]to_ compress - List of content types on which compression applies. The value should be a valid MIME type.
- is_
compression_ boolenabled - Indicates whether content compression is enabled on AzureFrontDoor. 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 AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB.
- content
Types List<String>To Compress - List of content types on which compression applies. The value should be a valid MIME type.
- is
Compression BooleanEnabled - Indicates whether content compression is enabled on AzureFrontDoor. 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 AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB.
EnabledState, EnabledStateArgs
- Enabled
- Enabled
- Disabled
- Disabled
- Enabled
State Enabled - Enabled
- Enabled
State Disabled - Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- ENABLED
- Enabled
- DISABLED
- Disabled
- "Enabled"
- Enabled
- "Disabled"
- Disabled
ForwardingProtocol, ForwardingProtocolArgs
- Http
Only - HttpOnly
- Https
Only - HttpsOnly
- Match
Request - MatchRequest
- Forwarding
Protocol Http Only - HttpOnly
- Forwarding
Protocol Https Only - HttpsOnly
- Forwarding
Protocol Match Request - MatchRequest
- Http
Only - HttpOnly
- Https
Only - HttpsOnly
- Match
Request - MatchRequest
- Http
Only - HttpOnly
- Https
Only - HttpsOnly
- Match
Request - MatchRequest
- HTTP_ONLY
- HttpOnly
- HTTPS_ONLY
- HttpsOnly
- MATCH_REQUEST
- MatchRequest
- "Http
Only" - HttpOnly
- "Https
Only" - HttpsOnly
- "Match
Request" - MatchRequest
HttpsRedirect, HttpsRedirectArgs
- Enabled
- Enabled
- Disabled
- Disabled
- Https
Redirect Enabled - Enabled
- Https
Redirect Disabled - Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- ENABLED
- Enabled
- DISABLED
- Disabled
- "Enabled"
- Enabled
- "Disabled"
- Disabled
LinkToDefaultDomain, LinkToDefaultDomainArgs
- Enabled
- Enabled
- Disabled
- Disabled
- Link
To Default Domain Enabled - Enabled
- Link
To Default Domain Disabled - Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- ENABLED
- Enabled
- DISABLED
- Disabled
- "Enabled"
- Enabled
- "Disabled"
- Disabled
ResourceReference, ResourceReferenceArgs
- Id string
- Resource ID.
- Id string
- Resource ID.
- id String
- Resource ID.
- id string
- Resource ID.
- id str
- Resource ID.
- id String
- Resource ID.
ResourceReferenceResponse, ResourceReferenceResponseArgs
- Id string
- Resource ID.
- Id string
- Resource ID.
- id String
- Resource ID.
- id string
- Resource ID.
- id str
- Resource ID.
- id String
- Resource ID.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC)
- Created
By string - An identifier for the identity that created the resource
- Created
By stringType - The type of identity that created the resource
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - An identifier for the identity that last modified the resource
- Last
Modified stringBy Type - The type of identity that last modified the resource
- Created
At string - The timestamp of resource creation (UTC)
- Created
By string - An identifier for the identity that created the resource
- Created
By stringType - The type of identity that created the resource
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - An identifier for the identity that last modified the resource
- Last
Modified stringBy Type - The type of identity that last modified the resource
- created
At String - The timestamp of resource creation (UTC)
- created
By String - An identifier for the identity that created the resource
- created
By StringType - The type of identity that created the resource
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - An identifier for the identity that last modified the resource
- last
Modified StringBy Type - The type of identity that last modified the resource
- created
At string - The timestamp of resource creation (UTC)
- created
By string - An identifier for the identity that created the resource
- created
By stringType - The type of identity that created the resource
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - An identifier for the identity that last modified the resource
- last
Modified stringBy Type - The type of identity that last modified the resource
- created_
at str - The timestamp of resource creation (UTC)
- created_
by str - An identifier for the identity that created the resource
- created_
by_ strtype - The type of identity that created the resource
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - An identifier for the identity that last modified the resource
- last_
modified_ strby_ type - The type of identity that last modified the resource
- created
At String - The timestamp of resource creation (UTC)
- created
By String - An identifier for the identity that created the resource
- created
By StringType - The type of identity that created the resource
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - An identifier for the identity that last modified the resource
- last
Modified StringBy Type - The type of identity that last modified the resource
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:cdn:Route route1 /subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1/routes/route1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0