Runbook Draft - Undo Edit

Undo draft edit to last known published state identified by runbook name.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/undoEdit?api-version=2023-11-01

URI Parameters

Name In Required Type Description
automationAccountName
path True

string

The name of the automation account.

resourceGroupName
path True

string

Name of an Azure Resource group.

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

runbookName
path True

string

The runbook name.

Regex pattern: ^[a-zA-Z][a-zA-Z-_0-9]*$

subscriptionId
path True

string

Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

api-version
query True

string

Client Api Version.

Responses

Name Type Description
200 OK

RunbookDraftUndoEditResult

OK

Other Status Codes

ErrorResponse

Automation 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

Undo draft edit to last known published state

Sample Request

POST https://management.azure.com/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/Get-AzureVMTutorial/draft/undoEdit?api-version=2023-11-01

Sample Response

{}

Definitions

Name Description
ErrorResponse

Error response of an operation failure

HttpStatusCode
RunbookDraftUndoEditResult

The response model for the undo edit runbook operation.

ErrorResponse

Error response of an operation failure

Name Type Description
code

string

Error code

message

string

Error message indicating why the operation failed.

HttpStatusCode

Name Type Description
Accepted

string

Ambiguous

string

BadGateway

string

BadRequest

string

Conflict

string

Continue

string

Created

string

ExpectationFailed

string

Forbidden

string

Found

string

GatewayTimeout

string

Gone

string

HttpVersionNotSupported

string

InternalServerError

string

LengthRequired

string

MethodNotAllowed

string

Moved

string

MovedPermanently

string

MultipleChoices

string

NoContent

string

NonAuthoritativeInformation

string

NotAcceptable

string

NotFound

string

NotImplemented

string

NotModified

string

OK

string

PartialContent

string

PaymentRequired

string

PreconditionFailed

string

ProxyAuthenticationRequired

string

Redirect

string

RedirectKeepVerb

string

RedirectMethod

string

RequestEntityTooLarge

string

RequestTimeout

string

RequestUriTooLong

string

RequestedRangeNotSatisfiable

string

ResetContent

string

SeeOther

string

ServiceUnavailable

string

SwitchingProtocols

string

TemporaryRedirect

string

Unauthorized

string

UnsupportedMediaType

string

Unused

string

UpgradeRequired

string

UseProxy

string

RunbookDraftUndoEditResult

The response model for the undo edit runbook operation.

Name Type Description
requestId

string

statusCode

HttpStatusCode