AFDOrigin Args
CDN origin is the source of the content being delivered via CDN. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins. API Version: 2020-09-01.
Example Usage
AFDOrigins_Create
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var afdOrigin = new AzureNative.Cdn.AFDOrigin("afdOrigin", new()
{
EnabledState = "Enabled",
HostName = "host1.blob.core.windows.net",
HttpPort = 80,
HttpsPort = 443,
OriginGroupName = "origingroup1",
OriginHostHeader = "host1.foo.com",
OriginName = "origin1",
ProfileName = "profile1",
ResourceGroupName = "RG",
});
});
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.NewAFDOrigin(ctx, "afdOrigin", &cdn.AFDOriginArgs{
EnabledState: pulumi.String("Enabled"),
HostName: pulumi.String("host1.blob.core.windows.net"),
HttpPort: pulumi.Int(80),
HttpsPort: pulumi.Int(443),
OriginGroupName: pulumi.String("origingroup1"),
OriginHostHeader: pulumi.String("host1.foo.com"),
OriginName: pulumi.String("origin1"),
ProfileName: pulumi.String("profile1"),
ResourceGroupName: pulumi.String("RG"),
})
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.AFDOrigin;
import com.pulumi.azurenative.cdn.AFDOriginArgs;
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 afdOrigin = new AFDOrigin("afdOrigin", AFDOriginArgs.builder()
.enabledState("Enabled")
.hostName("host1.blob.core.windows.net")
.httpPort(80)
.httpsPort(443)
.originGroupName("origingroup1")
.originHostHeader("host1.foo.com")
.originName("origin1")
.profileName("profile1")
.resourceGroupName("RG")
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:cdn:AFDOrigin origin1 /subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/origingroups/origingroup1/origins/origin1
Constructors
Properties
Resource reference to the Azure origin resource.
Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool.
Name of the origin group which is unique within the profile.
The host header value sent to the origin with each request. 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. This overrides the host header defined at Endpoint
Name of the origin that is unique within the profile.
Name of the CDN profile which is unique within the resource group.
Name of the Resource group within the Azure subscription.
The properties of the private link resource for private origin.