Origin Groups - Update

Updates an existing origin group within an endpoint.

PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/originGroups/{originGroupName}?api-version=2023-05-01

URI Parameters

Name In Required Type Description
endpointName
path True

string

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

originGroupName
path True

string

Name of the origin group which is unique within the endpoint.

profileName
path True

string

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

resourceGroupName
path True

string

Name of the Resource group within the Azure subscription.

Regex pattern: ^[-\w\._\(\)]+$

subscriptionId
path True

string

Azure Subscription ID.

api-version
query True

string

Version of the API to be used with the client request. Current version is 2023-05-01.

Request Body

Name Type Description
properties.healthProbeSettings

HealthProbeParameters

Health probe settings to the origin that is used to determine the health of the origin.

properties.origins

ResourceReference[]

The source of the content being delivered via CDN within given origin group.

properties.responseBasedOriginErrorDetectionSettings

ResponseBasedOriginErrorDetectionParameters

The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported.

properties.trafficRestorationTimeToHealedOrNewEndpointsInMinutes

integer

Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported.

Responses

Name Type Description
200 OK

OriginGroup

OK. The request has succeeded.

202 Accepted

OriginGroup

Accepted and the operation will complete asynchronously.

Headers

location: string

Other Status Codes

ErrorResponse

CDN error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

OriginGroups_Update

Sample Request

PATCH https://management.azure.com/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/originGroups/originGroup1?api-version=2023-05-01

{
  "properties": {
    "healthProbeSettings": {
      "probePath": "/health.aspx",
      "probeRequestType": "GET",
      "probeProtocol": "Http",
      "probeIntervalInSeconds": 120
    },
    "origins": [
      {
        "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/origin2"
      }
    ]
  }
}

Sample Response

{
  "name": "www-someDomain-net",
  "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
  "type": "Microsoft.Cdn/profiles/endpoints/origins",
  "properties": {
    "provisioningState": "Succeeded",
    "resourceState": "Active",
    "healthProbeSettings": {
      "probePath": "/health.aspx",
      "probeRequestType": "GET",
      "probeProtocol": "Http",
      "probeIntervalInSeconds": 120
    },
    "origins": [
      {
        "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/origin2"
      }
    ]
  }
}
azure-asyncoperation: https://management.azure.com/subscriptions/subid/resourcegroups/resourceGroupName/providers/Microsoft.Cdn/operationresults/operationId?api-version=2023-05-01
{
  "name": "www-someDomain-net",
  "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
  "type": "Microsoft.Cdn/profiles/endpoints/origins",
  "properties": {
    "provisioningState": "Succeeded",
    "resourceState": "Active",
    "healthProbeSettings": {
      "probePath": "/health.aspx",
      "probeRequestType": "GET",
      "probeProtocol": "Http",
      "probeIntervalInSeconds": 120
    },
    "origins": [
      {
        "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/origin2"
      }
    ]
  }
}

Definitions

Name Description
ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

HealthProbeParameters

The JSON object that contains the properties to send health probes to origin.

HealthProbeRequestType

The type of health probe request that is made.

HttpErrorRangeParameters

The JSON object that represents the range for http status codes

IdentityType

The type of identity that creates/modifies resources

OriginGroup

Origin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN.

OriginGroupProvisioningState

Provisioning status of the origin group.

OriginGroupResourceState

Resource status of the origin group.

OriginGroupUpdateParameters

Origin group properties needed for origin group creation or update.

ProbeProtocol

Protocol to use for health probe.

ResourceReference

Reference to another resource.

ResponseBasedDetectedErrorTypes

Type of response errors for real user requests for which origin will be deemed unhealthy

ResponseBasedOriginErrorDetectionParameters

The JSON object that contains the properties to determine origin health using real requests/responses.

SystemData

Read only system data

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorDetail

The error detail.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

HealthProbeParameters

The JSON object that contains the properties to send health probes to origin.

Name Type Description
probeIntervalInSeconds

integer

The number of seconds between health probes.Default is 240sec.

probePath

string

The path relative to the origin that is used to determine the health of the origin.

probeProtocol

ProbeProtocol

Protocol to use for health probe.

probeRequestType

HealthProbeRequestType

The type of health probe request that is made.

HealthProbeRequestType

The type of health probe request that is made.

Name Type Description
GET

string

HEAD

string

NotSet

string

HttpErrorRangeParameters

The JSON object that represents the range for http status codes

Name Type Description
begin

integer

The inclusive start of the http status code range.

end

integer

The inclusive end of the http status code range.

IdentityType

The type of identity that creates/modifies resources

Name Type Description
application

string

key

string

managedIdentity

string

user

string

OriginGroup

Origin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN.

Name Type Description
id

string

Resource ID.

name

string

Resource name.

properties.healthProbeSettings

HealthProbeParameters

Health probe settings to the origin that is used to determine the health of the origin.

properties.origins

ResourceReference[]

The source of the content being delivered via CDN within given origin group.

properties.provisioningState

OriginGroupProvisioningState

Provisioning status of the origin group.

properties.resourceState

OriginGroupResourceState

Resource status of the origin group.

properties.responseBasedOriginErrorDetectionSettings

ResponseBasedOriginErrorDetectionParameters

The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported.

properties.trafficRestorationTimeToHealedOrNewEndpointsInMinutes

integer

Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported.

systemData

SystemData

Read only system data

type

string

Resource type.

OriginGroupProvisioningState

Provisioning status of the origin group.

Name Type Description
Creating

string

Deleting

string

Failed

string

Succeeded

string

Updating

string

OriginGroupResourceState

Resource status of the origin group.

Name Type Description
Active

string

Creating

string

Deleting

string

OriginGroupUpdateParameters

Origin group properties needed for origin group creation or update.

Name Type Description
properties.healthProbeSettings

HealthProbeParameters

Health probe settings to the origin that is used to determine the health of the origin.

properties.origins

ResourceReference[]

The source of the content being delivered via CDN within given origin group.

properties.responseBasedOriginErrorDetectionSettings

ResponseBasedOriginErrorDetectionParameters

The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported.

properties.trafficRestorationTimeToHealedOrNewEndpointsInMinutes

integer

Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported.

ProbeProtocol

Protocol to use for health probe.

Name Type Description
Http

string

Https

string

NotSet

string

ResourceReference

Reference to another resource.

Name Type Description
id

string

Resource ID.

ResponseBasedDetectedErrorTypes

Type of response errors for real user requests for which origin will be deemed unhealthy

Name Type Description
None

string

TcpAndHttpErrors

string

TcpErrorsOnly

string

ResponseBasedOriginErrorDetectionParameters

The JSON object that contains the properties to determine origin health using real requests/responses.

Name Type Description
httpErrorRanges

HttpErrorRangeParameters[]

The list of Http status code ranges that are considered as server errors for origin and it is marked as unhealthy.

responseBasedDetectedErrorTypes

ResponseBasedDetectedErrorTypes

Type of response errors for real user requests for which origin will be deemed unhealthy

responseBasedFailoverThresholdPercentage

integer

The percentage of failed requests in the sample where failover should trigger.

SystemData

Read only system data

Name Type Description
createdAt

string

The timestamp of resource creation (UTC)

createdBy

string

An identifier for the identity that created the resource

createdByType

IdentityType

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

IdentityType

The type of identity that last modified the resource