Enrollment

Set-CPSEnrollment

Synopsis

Update an enrollment.

Syntax

Set-CPSEnrollment [-EnrollmentID] <Int32> [-Body] <Object> [-AllowCancelPendingChanges] [-AllowStagingBypass] [[-DeployNotAfter] <String>] [[-DeployNotBefore] <String>] [-ForceRenewal] [-RenewalDateCheckOverride] [-AllowMissingCertificateAddition] [[-EdgeRCFile] <String>] [[-Section] <String>] [[-AccountSwitchKey] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Updates an enrollment with changes.

Note: The request body for this function can be quite complex, therefore, it's recommended that you retrieve the existing enrollment with the Get-CPSEnrollment operation, make your changes locally, and then pipe the object to this function.

Parameters

‑AccountSwitchKey

An account credential key that lets you move between accounts when using an API client enabled for multiple accounts. To find account switch keys, use Get-AccountSwitchKey.

‑AllowCancelPendingChanges

Cancels all pending changes when updating an enrollment.

‑AllowMissingCertificateAddition

Applicable to Third Party Dual Stack Enrollments, allows to update missing certificates.

‑AllowStagingBypass

Bypasses staging and pushes meta-data updates directly to the production network. The current change will also be updated with the same changes.

‑Body
Required

A request body, either as a PSCustomObject or a string. This parameter supports pipelining.

‑DeployNotAfter

The date (UTC) after which the enrollment shouldn't be deployed.

‑DeployNotBefore

The date (UTC) before which the enrollment shouldn't be deployed.

‑EdgeRCFile

Your EdgeGrid resource file to authenticate your command. Defaults to ~/.edgerc.

‑EnrollmentID
Required

Enrollment on which to perform the desired operation.

‑ForceRenewal

Forces certificate renewal for an enrollment.

‑RenewalDateCheckOverride

If present, this starts a change to renew certificates in time before they expire. This automatic change is started when a certificate's expiration is within a renewal window, and the system will protect against other changes started during this renewal window.

Setting renewal-date-check-override=true will allow creating a change during the renewal window, potentially running the risk of ending up with an expired certificate on the network.

‑Section

The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to default.

Related Links