1. Packages
  2. Azure Native
  3. API Docs
  4. cdn
  5. Origin
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.20.1 published on Friday, Dec 1, 2023 by Pulumi

azure-native.cdn.Origin

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.20.1 published on Friday, Dec 1, 2023 by Pulumi

    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. Azure REST API version: 2023-05-01. Prior API version in Azure Native 1.x: 2020-09-01.

    Other available API versions: 2023-07-01-preview.

    Example Usage

    Origins_Create

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var origin = new AzureNative.Cdn.Origin("origin", new()
        {
            Enabled = true,
            EndpointName = "endpoint1",
            HostName = "www.someDomain.net",
            HttpPort = 80,
            HttpsPort = 443,
            OriginHostHeader = "www.someDomain.net",
            OriginName = "www-someDomain-net",
            Priority = 1,
            PrivateLinkApprovalMessage = "Please approve the connection request for this Private Link",
            PrivateLinkLocation = "eastus",
            PrivateLinkResourceId = "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Network/privateLinkServices/pls1",
            ProfileName = "profile1",
            ResourceGroupName = "RG",
            Weight = 50,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/cdn/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cdn.NewOrigin(ctx, "origin", &cdn.OriginArgs{
    			Enabled:                    pulumi.Bool(true),
    			EndpointName:               pulumi.String("endpoint1"),
    			HostName:                   pulumi.String("www.someDomain.net"),
    			HttpPort:                   pulumi.Int(80),
    			HttpsPort:                  pulumi.Int(443),
    			OriginHostHeader:           pulumi.String("www.someDomain.net"),
    			OriginName:                 pulumi.String("www-someDomain-net"),
    			Priority:                   pulumi.Int(1),
    			PrivateLinkApprovalMessage: pulumi.String("Please approve the connection request for this Private Link"),
    			PrivateLinkLocation:        pulumi.String("eastus"),
    			PrivateLinkResourceId:      pulumi.String("/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Network/privateLinkServices/pls1"),
    			ProfileName:                pulumi.String("profile1"),
    			ResourceGroupName:          pulumi.String("RG"),
    			Weight:                     pulumi.Int(50),
    		})
    		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.Origin;
    import com.pulumi.azurenative.cdn.OriginArgs;
    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 origin = new Origin("origin", OriginArgs.builder()        
                .enabled(true)
                .endpointName("endpoint1")
                .hostName("www.someDomain.net")
                .httpPort(80)
                .httpsPort(443)
                .originHostHeader("www.someDomain.net")
                .originName("www-someDomain-net")
                .priority(1)
                .privateLinkApprovalMessage("Please approve the connection request for this Private Link")
                .privateLinkLocation("eastus")
                .privateLinkResourceId("/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Network/privateLinkServices/pls1")
                .profileName("profile1")
                .resourceGroupName("RG")
                .weight(50)
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    origin = azure_native.cdn.Origin("origin",
        enabled=True,
        endpoint_name="endpoint1",
        host_name="www.someDomain.net",
        http_port=80,
        https_port=443,
        origin_host_header="www.someDomain.net",
        origin_name="www-someDomain-net",
        priority=1,
        private_link_approval_message="Please approve the connection request for this Private Link",
        private_link_location="eastus",
        private_link_resource_id="/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Network/privateLinkServices/pls1",
        profile_name="profile1",
        resource_group_name="RG",
        weight=50)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const origin = new azure_native.cdn.Origin("origin", {
        enabled: true,
        endpointName: "endpoint1",
        hostName: "www.someDomain.net",
        httpPort: 80,
        httpsPort: 443,
        originHostHeader: "www.someDomain.net",
        originName: "www-someDomain-net",
        priority: 1,
        privateLinkApprovalMessage: "Please approve the connection request for this Private Link",
        privateLinkLocation: "eastus",
        privateLinkResourceId: "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Network/privateLinkServices/pls1",
        profileName: "profile1",
        resourceGroupName: "RG",
        weight: 50,
    });
    
    resources:
      origin:
        type: azure-native:cdn:Origin
        properties:
          enabled: true
          endpointName: endpoint1
          hostName: www.someDomain.net
          httpPort: 80
          httpsPort: 443
          originHostHeader: www.someDomain.net
          originName: www-someDomain-net
          priority: 1
          privateLinkApprovalMessage: Please approve the connection request for this Private Link
          privateLinkLocation: eastus
          privateLinkResourceId: /subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Network/privateLinkServices/pls1
          profileName: profile1
          resourceGroupName: RG
          weight: 50
    

    Create Origin Resource

    new Origin(name: string, args: OriginArgs, opts?: CustomResourceOptions);
    @overload
    def Origin(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               enabled: Optional[bool] = None,
               endpoint_name: Optional[str] = None,
               host_name: Optional[str] = None,
               http_port: Optional[int] = None,
               https_port: Optional[int] = None,
               origin_host_header: Optional[str] = None,
               origin_name: Optional[str] = None,
               priority: Optional[int] = None,
               private_link_alias: Optional[str] = None,
               private_link_approval_message: Optional[str] = None,
               private_link_location: Optional[str] = None,
               private_link_resource_id: Optional[str] = None,
               profile_name: Optional[str] = None,
               resource_group_name: Optional[str] = None,
               weight: Optional[int] = None)
    @overload
    def Origin(resource_name: str,
               args: OriginArgs,
               opts: Optional[ResourceOptions] = None)
    func NewOrigin(ctx *Context, name string, args OriginArgs, opts ...ResourceOption) (*Origin, error)
    public Origin(string name, OriginArgs args, CustomResourceOptions? opts = null)
    public Origin(String name, OriginArgs args)
    public Origin(String name, OriginArgs args, CustomResourceOptions options)
    
    type: azure-native:cdn:Origin
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args OriginArgs
    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 OriginArgs
    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 OriginArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OriginArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OriginArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Origin 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 Origin resource accepts the following input properties:

    EndpointName string

    Name of the endpoint under the profile which is unique globally.

    HostName string

    The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint.

    ProfileName string

    Name of the CDN profile which is unique within the resource group.

    ResourceGroupName string

    Name of the Resource group within the Azure subscription.

    Enabled bool

    Origin is enabled for load balancing or not

    HttpPort int

    The value of the HTTP port. Must be between 1 and 65535.

    HttpsPort int

    The value of the HTTPS port. Must be between 1 and 65535.

    OriginHostHeader string

    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

    OriginName string

    Name of the origin that is unique within the endpoint.

    Priority int

    Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5

    PrivateLinkAlias string

    The Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private'

    PrivateLinkApprovalMessage string

    A custom message to be included in the approval request to connect to the Private Link.

    PrivateLinkLocation string

    The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated

    PrivateLinkResourceId string

    The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private'

    Weight int

    Weight of the origin in given origin group for load balancing. Must be between 1 and 1000

    EndpointName string

    Name of the endpoint under the profile which is unique globally.

    HostName string

    The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint.

    ProfileName string

    Name of the CDN profile which is unique within the resource group.

    ResourceGroupName string

    Name of the Resource group within the Azure subscription.

    Enabled bool

    Origin is enabled for load balancing or not

    HttpPort int

    The value of the HTTP port. Must be between 1 and 65535.

    HttpsPort int

    The value of the HTTPS port. Must be between 1 and 65535.

    OriginHostHeader string

    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

    OriginName string

    Name of the origin that is unique within the endpoint.

    Priority int

    Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5

    PrivateLinkAlias string

    The Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private'

    PrivateLinkApprovalMessage string

    A custom message to be included in the approval request to connect to the Private Link.

    PrivateLinkLocation string

    The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated

    PrivateLinkResourceId string

    The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private'

    Weight int

    Weight of the origin in given origin group for load balancing. Must be between 1 and 1000

    endpointName String

    Name of the endpoint under the profile which is unique globally.

    hostName String

    The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint.

    profileName String

    Name of the CDN profile which is unique within the resource group.

    resourceGroupName String

    Name of the Resource group within the Azure subscription.

    enabled Boolean

    Origin is enabled for load balancing or not

    httpPort Integer

    The value of the HTTP port. Must be between 1 and 65535.

    httpsPort Integer

    The value of the HTTPS port. Must be between 1 and 65535.

    originHostHeader String

    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

    originName String

    Name of the origin that is unique within the endpoint.

    priority Integer

    Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5

    privateLinkAlias String

    The Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private'

    privateLinkApprovalMessage String

    A custom message to be included in the approval request to connect to the Private Link.

    privateLinkLocation String

    The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated

    privateLinkResourceId String

    The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private'

    weight Integer

    Weight of the origin in given origin group for load balancing. Must be between 1 and 1000

    endpointName string

    Name of the endpoint under the profile which is unique globally.

    hostName string

    The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint.

    profileName string

    Name of the CDN profile which is unique within the resource group.

    resourceGroupName string

    Name of the Resource group within the Azure subscription.

    enabled boolean

    Origin is enabled for load balancing or not

    httpPort number

    The value of the HTTP port. Must be between 1 and 65535.

    httpsPort number

    The value of the HTTPS port. Must be between 1 and 65535.

    originHostHeader string

    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

    originName string

    Name of the origin that is unique within the endpoint.

    priority number

    Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5

    privateLinkAlias string

    The Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private'

    privateLinkApprovalMessage string

    A custom message to be included in the approval request to connect to the Private Link.

    privateLinkLocation string

    The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated

    privateLinkResourceId string

    The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private'

    weight number

    Weight of the origin in given origin group for load balancing. Must be between 1 and 1000

    endpoint_name str

    Name of the endpoint under the profile which is unique globally.

    host_name str

    The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint.

    profile_name str

    Name of the CDN profile which is unique within the resource group.

    resource_group_name str

    Name of the Resource group within the Azure subscription.

    enabled bool

    Origin is enabled for load balancing or not

    http_port int

    The value of the HTTP port. Must be between 1 and 65535.

    https_port int

    The value of the HTTPS port. Must be between 1 and 65535.

    origin_host_header str

    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

    origin_name str

    Name of the origin that is unique within the endpoint.

    priority int

    Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5

    private_link_alias str

    The Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private'

    private_link_approval_message str

    A custom message to be included in the approval request to connect to the Private Link.

    private_link_location str

    The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated

    private_link_resource_id str

    The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private'

    weight int

    Weight of the origin in given origin group for load balancing. Must be between 1 and 1000

    endpointName String

    Name of the endpoint under the profile which is unique globally.

    hostName String

    The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint.

    profileName String

    Name of the CDN profile which is unique within the resource group.

    resourceGroupName String

    Name of the Resource group within the Azure subscription.

    enabled Boolean

    Origin is enabled for load balancing or not

    httpPort Number

    The value of the HTTP port. Must be between 1 and 65535.

    httpsPort Number

    The value of the HTTPS port. Must be between 1 and 65535.

    originHostHeader String

    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

    originName String

    Name of the origin that is unique within the endpoint.

    priority Number

    Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5

    privateLinkAlias String

    The Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private'

    privateLinkApprovalMessage String

    A custom message to be included in the approval request to connect to the Private Link.

    privateLinkLocation String

    The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated

    privateLinkResourceId String

    The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private'

    weight Number

    Weight of the origin in given origin group for load balancing. Must be between 1 and 1000

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Origin resource produces the following output properties:

    Id string

    The provider-assigned unique ID for this managed resource.

    Name string

    Resource name.

    PrivateEndpointStatus string

    The approval status for the connection to the Private Link

    ProvisioningState string

    Provisioning status of the origin.

    ResourceState string

    Resource status of the origin.

    SystemData Pulumi.AzureNative.Cdn.Outputs.SystemDataResponse

    Read only system data

    Type string

    Resource type.

    Id string

    The provider-assigned unique ID for this managed resource.

    Name string

    Resource name.

    PrivateEndpointStatus string

    The approval status for the connection to the Private Link

    ProvisioningState string

    Provisioning status of the origin.

    ResourceState string

    Resource status of the origin.

    SystemData SystemDataResponse

    Read only system data

    Type string

    Resource type.

    id String

    The provider-assigned unique ID for this managed resource.

    name String

    Resource name.

    privateEndpointStatus String

    The approval status for the connection to the Private Link

    provisioningState String

    Provisioning status of the origin.

    resourceState String

    Resource status of the origin.

    systemData SystemDataResponse

    Read only system data

    type String

    Resource type.

    id string

    The provider-assigned unique ID for this managed resource.

    name string

    Resource name.

    privateEndpointStatus string

    The approval status for the connection to the Private Link

    provisioningState string

    Provisioning status of the origin.

    resourceState string

    Resource status of the origin.

    systemData SystemDataResponse

    Read only system data

    type string

    Resource type.

    id str

    The provider-assigned unique ID for this managed resource.

    name str

    Resource name.

    private_endpoint_status str

    The approval status for the connection to the Private Link

    provisioning_state str

    Provisioning status of the origin.

    resource_state str

    Resource status of the origin.

    system_data SystemDataResponse

    Read only system data

    type str

    Resource type.

    id String

    The provider-assigned unique ID for this managed resource.

    name String

    Resource name.

    privateEndpointStatus String

    The approval status for the connection to the Private Link

    provisioningState String

    Provisioning status of the origin.

    resourceState String

    Resource status of the origin.

    systemData Property Map

    Read only system data

    type String

    Resource type.

    Supporting Types

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string

    The timestamp of resource creation (UTC)

    CreatedBy string

    An identifier for the identity that created the resource

    CreatedByType string

    The type of identity that created the resource

    LastModifiedAt string

    The timestamp of resource last modification (UTC)

    LastModifiedBy string

    An identifier for the identity that last modified the resource

    LastModifiedByType string

    The type of identity that last modified the resource

    CreatedAt string

    The timestamp of resource creation (UTC)

    CreatedBy string

    An identifier for the identity that created the resource

    CreatedByType string

    The type of identity that created the resource

    LastModifiedAt string

    The timestamp of resource last modification (UTC)

    LastModifiedBy string

    An identifier for the identity that last modified the resource

    LastModifiedByType string

    The type of identity that last modified the resource

    createdAt String

    The timestamp of resource creation (UTC)

    createdBy String

    An identifier for the identity that created the resource

    createdByType String

    The type of identity that created the resource

    lastModifiedAt String

    The timestamp of resource last modification (UTC)

    lastModifiedBy String

    An identifier for the identity that last modified the resource

    lastModifiedByType String

    The type of identity that last modified the resource

    createdAt string

    The timestamp of resource creation (UTC)

    createdBy string

    An identifier for the identity that created the resource

    createdByType string

    The type of identity that created the resource

    lastModifiedAt string

    The timestamp of resource last modification (UTC)

    lastModifiedBy string

    An identifier for the identity that last modified the resource

    lastModifiedByType string

    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_type str

    The type of identity that created the resource

    last_modified_at str

    The timestamp of resource last modification (UTC)

    last_modified_by str

    An identifier for the identity that last modified the resource

    last_modified_by_type str

    The type of identity that last modified the resource

    createdAt String

    The timestamp of resource creation (UTC)

    createdBy String

    An identifier for the identity that created the resource

    createdByType String

    The type of identity that created the resource

    lastModifiedAt String

    The timestamp of resource last modification (UTC)

    lastModifiedBy String

    An identifier for the identity that last modified the resource

    lastModifiedByType String

    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:Origin www-someDomain-net /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/origins/{originName} 
    

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.20.1 published on Friday, Dec 1, 2023 by Pulumi