CdnOriginData Class

Definition

A class representing the CdnOrigin data model. 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.

public class CdnOriginData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Cdn.CdnOriginData>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Cdn.CdnOriginData>
public class CdnOriginData : Azure.ResourceManager.Models.ResourceData
type CdnOriginData = class
    inherit ResourceData
    interface IJsonModel<CdnOriginData>
    interface IPersistableModel<CdnOriginData>
type CdnOriginData = class
    inherit ResourceData
Public Class CdnOriginData
Inherits ResourceData
Implements IJsonModel(Of CdnOriginData), IPersistableModel(Of CdnOriginData)
Public Class CdnOriginData
Inherits ResourceData
Inheritance
CdnOriginData
Implements

Constructors

CdnOriginData()

Initializes a new instance of CdnOriginData.

Properties

Enabled

Origin is enabled for load balancing or not.

HostName

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

HttpPort

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

HttpsPort

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

Id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

(Inherited from ResourceData)
Name

The name of the resource.

(Inherited from ResourceData)
OriginHostHeader

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

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.

PrivateEndpointStatus

The approval status for the connection to the Private Link.

PrivateLinkAlias

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

PrivateLinkApprovalMessage

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

PrivateLinkLocation

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

PrivateLinkResourceId

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

ProvisioningState

Provisioning status of the origin.

ResourceState

Resource status of the origin.

ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

(Inherited from ResourceData)
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

(Inherited from ResourceData)
Weight

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

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from ResourceData)

Explicit Interface Implementations

IJsonModel<CdnOriginData>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<CdnOriginData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CdnOriginData>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<CdnOriginData>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<CdnOriginData>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to