ArmCdnModelFactory.CdnOriginData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of CdnOriginData.
public static Azure.ResourceManager.Cdn.CdnOriginData CdnOriginData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string hostName = default, int? httpPort = default, int? httpsPort = default, string originHostHeader = default, int? priority = default, int? weight = default, bool? enabled = default, string privateLinkAlias = default, Azure.Core.ResourceIdentifier privateLinkResourceId = default, string privateLinkLocation = default, string privateLinkApprovalMessage = default, Azure.ResourceManager.Cdn.Models.OriginResourceState? resourceState = default, Azure.ResourceManager.Cdn.Models.OriginProvisioningState? provisioningState = default, Azure.ResourceManager.Cdn.Models.PrivateEndpointStatus? privateEndpointStatus = default);
static member CdnOriginData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * Nullable<int> * Nullable<int> * string * Nullable<int> * Nullable<int> * Nullable<bool> * string * Azure.Core.ResourceIdentifier * string * string * Nullable<Azure.ResourceManager.Cdn.Models.OriginResourceState> * Nullable<Azure.ResourceManager.Cdn.Models.OriginProvisioningState> * Nullable<Azure.ResourceManager.Cdn.Models.PrivateEndpointStatus> -> Azure.ResourceManager.Cdn.CdnOriginData
Public Shared Function CdnOriginData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional hostName As String = Nothing, Optional httpPort As Nullable(Of Integer) = Nothing, Optional httpsPort As Nullable(Of Integer) = Nothing, Optional originHostHeader As String = Nothing, Optional priority As Nullable(Of Integer) = Nothing, Optional weight As Nullable(Of Integer) = Nothing, Optional enabled As Nullable(Of Boolean) = Nothing, Optional privateLinkAlias As String = Nothing, Optional privateLinkResourceId As ResourceIdentifier = Nothing, Optional privateLinkLocation As String = Nothing, Optional privateLinkApprovalMessage As String = Nothing, Optional resourceState As Nullable(Of OriginResourceState) = Nothing, Optional provisioningState As Nullable(Of OriginProvisioningState) = Nothing, Optional privateEndpointStatus As Nullable(Of PrivateEndpointStatus) = Nothing) As CdnOriginData
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
- 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.
- 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.
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.
Weight of the origin in given origin group for load balancing. Must be between 1 and 1000.
- privateLinkAlias
- String
The Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private'.
- privateLinkResourceId
- ResourceIdentifier
The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private'.
- privateLinkLocation
- String
The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated.
- privateLinkApprovalMessage
- String
A custom message to be included in the approval request to connect to the Private Link.
- resourceState
- Nullable<OriginResourceState>
Resource status of the origin.
- provisioningState
- Nullable<OriginProvisioningState>
Provisioning status of the origin.
- privateEndpointStatus
- Nullable<PrivateEndpointStatus>
The approval status for the connection to the Private Link.
Returns
A new CdnOriginData instance for mocking.
Applies to
Azure SDK for .NET