diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createOrUpdateRunbook.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createOrUpdateRunbook.json new file mode 100644 index 000000000000..60be63ca31d0 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createOrUpdateRunbook.json @@ -0,0 +1,95 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "ContoseAutomationAccount", + "runbookName": "Get-AzureVMTutorial", + "api-version": "2015-10-31", + "parameters": { + "properties": { + "logVerbose": false, + "logProgress": true, + "runbookType": "PowerShellWorkflow", + "publishContentLink": { + "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-automation-runbook-getvms/Runbooks/Get-AzureVMTutorial.ps1", + "contentHash": { + "algorithm": "SHA256", + "value": "115775B8FF2BE672D8A946BD0B489918C724DDE15A440373CA54461D53010A80" + } + }, + "description": "Description of the Runbook", + "logActivityTrace": 1 + }, + "name": "Get-AzureVMTutorial", + "location": "East US 2", + "tags": { + "tag01": "value01", + "tag02": "value02" + } + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/Get-AzureVMTutorial", + "name": "Get-AzureVMTutorial", + "type": "Microsoft.Automation/AutomationAccounts/Runbooks", + "location": "East US 2", + "tags": { + "tag01": "value01", + "tag02": "value02" + }, + "etag": "\"636263318837230000\"", + "properties": { + "description": "Description of the Runbook", + "logVerbose": false, + "logProgress": true, + "logActivityTrace": 1, + "runbookType": "PowerShellWorkflow", + "parameters": {}, + "state": "Published", + "jobCount": 0, + "provisioningState": "Succeeded", + "outputTypes": [], + "creationTime": "2017-03-28T21:04:43.66+00:00", + "lastModifiedBy": "myEmaild@microsoft.com", + "lastModifiedTime": "2017-03-28T21:04:43.723+00:00" + } + } + }, + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/Get-AzureVMTutorial", + "name": "Get-AzureVMTutorial", + "type": "Microsoft.Automation/AutomationAccounts/Runbooks", + "location": "East US 2", + "tags": { + "tag01": "value01", + "tag02": "value02" + }, + "etag": "\"636263318866000000\"", + "properties": { + "description": "Description of the Runbook", + "logVerbose": true, + "logProgress": true, + "logActivityTrace": 1, + "runbookType": "PowerShellWorkflow", + "parameters": {}, + "state": "Published", + "jobCount": 0, + "provisioningState": "Succeeded", + "outputTypes": [], + "creationTime": "2017-03-28T21:04:43.66+00:00", + "lastModifiedBy": "myEmaild@microsoft.com", + "lastModifiedTime": "2017-03-28T21:04:46.6+00:00" + } + } + }, + "400": { + "code": "BadRequest", + "message": "{\"Message\":\"Cannot specify the content link for a published runbook and draft at the same time.\"}" + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createRunbookAsDraft.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createRunbookAsDraft.json new file mode 100644 index 000000000000..c6d266a08e56 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createRunbookAsDraft.json @@ -0,0 +1,85 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "ContoseAutomationAccount", + "runbookName": "Get-AzureVMTutorial", + "api-version": "2015-10-31", + "parameters": { + "properties": { + "logVerbose": false, + "logProgress": false, + "runbookType": "PowerShellWorkflow", + "description": "Description of the Runbook", + "draft": { } + }, + "name": "Get-AzureVMTutorial", + "location": "East US 2", + "tags": { + "tag01": "value01", + "tag02": "value02" + } + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/Get-AzureVMTutorial", + "name": "Get-AzureVMTutorial", + "type": "Microsoft.Automation/AutomationAccounts/Runbooks", + "location": "East US 2", + "tags": { + "tag01": "value01", + "tag02": "value02" + }, + "etag": "\"636263318837230000\"", + "properties": { + "description": "Description of the Runbook", + "logVerbose": false, + "logProgress": false, + "logActivityTrace": 0, + "runbookType": "Script", + "parameters": {}, + "state": "New", + "jobCount": 0, + "provisioningState": "Succeeded", + "creationTime": "2018-02-09T03:25:59.097+00:00", + "lastModifiedTime": "2018-02-09T03:25:59.097+00:00", + "outputTypes": [] + } + } + }, + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/Get-AzureVMTutorial", + "name": "Get-AzureVMTutorial", + "type": "Microsoft.Automation/AutomationAccounts/Runbooks", + "location": "East US 2", + "tags": { + "tag01": "value01", + "tag02": "value02" + }, + "etag": "\"636263318866000000\"", + "properties": { + "description": "Description of the Runbook", + "logVerbose": false, + "logProgress": false, + "logActivityTrace": 0, + "runbookType": "Script", + "parameters": {}, + "state": "New", + "jobCount": 0, + "provisioningState": "Succeeded", + "creationTime": "2018-02-09T03:25:59.097+00:00", + "lastModifiedTime": "2018-02-09T03:25:59.097+00:00" + } + } + }, + "400": { + "code": "BadRequest", + "message": "{\"Message\":\"Cannot specify the content link for a published runbook and draft at the same time.\"}" + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createTestJob.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createTestJob.json new file mode 100644 index 000000000000..7c7b9f886c18 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createTestJob.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab", + "resourceGroupName": "mygroup", + "automationAccountName": "ContoseAutomationAccount", + "runbookName": "Get-AzureVMTutorial", + "api-version": "2015-10-31", + "parameters": { + "parameters": { + "key01": "value01", + "key02": "value02" + }, + "runOn": "" + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "creationTime": "2018-02-09T05:51:59.82+00:00", + "status": "New", + "statusDetails": "None", + "startTime": null, + "endTime": null, + "lastModifiedTime": "2018-02-09T05:51:59.82+00:00", + "lastStatusModifiedTime": "2018-02-09T05:51:59.82+00:00", + "exception": null, + "parameters": {}, + "runOn": null, + "logActivityTrace": null + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/deleteRunbook.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/deleteRunbook.json new file mode 100644 index 000000000000..af676f4d7ec8 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/deleteRunbook.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "ContoseAutomationAccount", + "runbookName": "Get-AzureVMTutorial", + "api-version": "2015-10-31" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbook.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbook.json new file mode 100644 index 000000000000..b0d48e35c87d --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbook.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "ContoseAutomationAccount", + "runbookName": "Get-AzureVMTutorial", + "api-version": "2015-10-31" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/Get-AzureVMTutorial", + "name": "Get-AzureVMTutorial", + "type": "Microsoft.Automation/AutomationAccounts/Runbooks", + "location": "East US 2", + "tags": { + "tag01": "value01", + "tag02": "value02" + }, + "etag": "\"636263335437500000\"", + "properties": { + "description": "Description of the Runbook", + "logVerbose": false, + "logProgress": true, + "logActivityTrace": 1, + "runbookType": "PowerShellWorkflow", + "parameters": {}, + "state": "Published", + "jobCount": 0, + "provisioningState": "Succeeded", + "outputTypes": [], + "creationTime": "2017-03-28T21:32:23.75+00:00", + "lastModifiedBy": "myEmaild@microsoft.com", + "lastModifiedTime": "2017-03-28T21:32:23.75+00:00" + } + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbookContent.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbookContent.json new file mode 100644 index 000000000000..ae43c5f436bc --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbookContent.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "ContoseAutomationAccount", + "runbookName": "Get-AzureVMTutorial", + "api-version": "2015-10-31" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "text/powershell" + }, + "body": "<#\r\n .DESCRIPTION\r\n An example runbook which prints out the first10 Azure VMs in your subscription (ordered alphabetically).\r\n For more information about how this runbook authenticates to your Azure subscription, see our documentation here: http: \/\/aka.ms\/fxu3mn\r\n\r\n .NOTES\r\n AUTHOR: Azure Automation Team\r\n LASTEDIT: Mar27,\r\n 2015\r\n#>\r\nworkflow Get-AzureVMTutorial{\r\n #The name of the Automation Credential Asset this runbook will use to authenticate to Azure.\r\n $CredentialAssetName = 'DefaultAzureCredential'\r\n\r\n #Get the credential with the above name from the Automation Asset store\r\n $Cred = Get-AutomationPSCredential -Name $CredentialAssetName\r\n if(!$Cred){\r\n Throw\"Could not find an Automation Credential Asset named '${CredentialAssetName}'. Make sure you have created one in this Automation Account.\"\r\n }\r\n\r\n #Connect to your Azure Account\r\n $Account = Add-AzureAccount -Credential $Cred\r\n if(!$Account){\r\n Throw\"Could not authenticate to Azure using the credential asset '${CredentialAssetName}'. Make sure the user name and password are correct.\"\r\n }\r\n\r\n #TODO (optional): pick the right subscription to use. Without this line, the default subscription for your Azure Account will be used.\r\n #Select-AzureSubscription -SubscriptionName\"TODO: your Azure subscription name here\"\r\n \r\n #Get all the VMs you have in your Azure subscription\r\n $VMs = Get-AzureVM\r\n\r\n #Print out up to10 of those VMs\r\n if(!$VMs){\r\n Write-Output\"No VMs were found in your subscription.\"\r\n } else{\r\n Write-Output $VMs[0..9\r\n ]\r\n }\r\n }" + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbookDraft.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbookDraft.json new file mode 100644 index 000000000000..e46bbc126fa8 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbookDraft.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "ContoseAutomationAccount", + "runbookName": "Get-AzureVMTutorial", + "api-version": "2015-10-31" + }, + "responses": { + "200": { + "body": { + "creationTime": "2018-02-09T03:25:59.11+00:00", + "lastModifiedTime": "2018-02-09T04:48:56.43+00:00", + "inEdit": true, + "parameters": {}, + "outputTypes": [] + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbookDraftContent.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbookDraftContent.json new file mode 100644 index 000000000000..ae43c5f436bc --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbookDraftContent.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "ContoseAutomationAccount", + "runbookName": "Get-AzureVMTutorial", + "api-version": "2015-10-31" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "text/powershell" + }, + "body": "<#\r\n .DESCRIPTION\r\n An example runbook which prints out the first10 Azure VMs in your subscription (ordered alphabetically).\r\n For more information about how this runbook authenticates to your Azure subscription, see our documentation here: http: \/\/aka.ms\/fxu3mn\r\n\r\n .NOTES\r\n AUTHOR: Azure Automation Team\r\n LASTEDIT: Mar27,\r\n 2015\r\n#>\r\nworkflow Get-AzureVMTutorial{\r\n #The name of the Automation Credential Asset this runbook will use to authenticate to Azure.\r\n $CredentialAssetName = 'DefaultAzureCredential'\r\n\r\n #Get the credential with the above name from the Automation Asset store\r\n $Cred = Get-AutomationPSCredential -Name $CredentialAssetName\r\n if(!$Cred){\r\n Throw\"Could not find an Automation Credential Asset named '${CredentialAssetName}'. Make sure you have created one in this Automation Account.\"\r\n }\r\n\r\n #Connect to your Azure Account\r\n $Account = Add-AzureAccount -Credential $Cred\r\n if(!$Account){\r\n Throw\"Could not authenticate to Azure using the credential asset '${CredentialAssetName}'. Make sure the user name and password are correct.\"\r\n }\r\n\r\n #TODO (optional): pick the right subscription to use. Without this line, the default subscription for your Azure Account will be used.\r\n #Select-AzureSubscription -SubscriptionName\"TODO: your Azure subscription name here\"\r\n \r\n #Get all the VMs you have in your Azure subscription\r\n $VMs = Get-AzureVM\r\n\r\n #Print out up to10 of those VMs\r\n if(!$VMs){\r\n Write-Output\"No VMs were found in your subscription.\"\r\n } else{\r\n Write-Output $VMs[0..9\r\n ]\r\n }\r\n }" + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getTestJob.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getTestJob.json new file mode 100644 index 000000000000..d9de1c2f2342 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getTestJob.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab", + "resourceGroupName": "mygroup", + "automationAccountName": "ContoseAutomationAccount", + "runbookName": "Get-AzureVMTutorial", + "api-version": "2015-10-31" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "creationTime": "2018-02-09T05:52:00.9344172+00:00", + "status": "Completed", + "statusDetails": "None", + "startTime": "2018-02-09T05:55:10.8344743+00:00", + "endTime": "2018-02-09T05:55:16.7827254+00:00", + "lastModifiedTime": "2018-02-09T05:55:16.7827254+00:00", + "lastStatusModifiedTime": "2018-02-09T05:55:16.7827254+00:00", + "exception": null, + "parameters": {}, + "runOn": null, + "logActivityTrace": null + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getTestJobStream.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getTestJobStream.json new file mode 100644 index 000000000000..a5efed3ba0cd --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getTestJobStream.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab", + "resourceGroupName": "mygroup", + "automationAccountName": "ContoseAutomationAccount", + "runbookName": "Get-AzureVMTutorial", + "jobStreamId": "851b2101-686f-40e2-8a4b-5b8df08afbd1_00636535684910693884_00000000000000000001", + "api-version": "2015-10-31" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourcegroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/foo/draft/testJob/streams/851b2101-686f-40e2-8a4b-5b8df08afbd1_00636535684910693884_00000000000000000001", + "properties": { + "jobStreamId": "851b2101-686f-40e2-8a4b-5b8df08afbd1:00636535684910693884:00000000000000000001", + "summary": null, + "time": "2018-02-07T02:48:11.0693884+00:00", + "streamType": "Output", + "streamText": "", + "value": { + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/listRunbooksByAutomationAccount.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/listRunbooksByAutomationAccount.json new file mode 100644 index 000000000000..5b000ffc4ed9 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/listRunbooksByAutomationAccount.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "ContoseAutomationAccount", + "api-version": "2015-10-31" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/ASR-AddPublicIp", + "location": "East US 2", + "name": "ASR-AddPublicIp", + "type": "Microsoft.Automation/AutomationAccounts/Runbooks", + "properties": { + "runbookType": "PowerShell", + "state": "Published", + "logVerbose": true, + "logProgress": true, + "logActivityTrace": 1, + "creationTime": "2017-03-28T21:32:25.78+00:00", + "lastModifiedTime": "2017-03-28T21:32:25.81+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/AutoExport", + "location": "East US 2", + "name": "AutoExport", + "type": "Microsoft.Automation/AutomationAccounts/Runbooks", + "properties": { + "runbookType": "PowerShell", + "state": "Published", + "logVerbose": true, + "logProgress": true, + "logActivityTrace": 1, + "creationTime": "2017-03-28T21:32:27.327+00:00", + "lastModifiedTime": "2017-03-28T21:32:27.327+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/Get-AzureVMTutorial", + "location": "East US 2", + "name": "Get-AzureVMTutorial", + "type": "Microsoft.Automation/AutomationAccounts/Runbooks", + "properties": { + "runbookType": "PowerShellWorkflow", + "state": "Published", + "logVerbose": false, + "logProgress": true, + "logActivityTrace": 1, + "creationTime": "2017-03-28T21:32:23.75+00:00", + "lastModifiedTime": "2017-03-28T21:32:23.75+00:00" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/listTestJobStreamsByJob.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/listTestJobStreamsByJob.json new file mode 100644 index 000000000000..89036caafd87 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/listTestJobStreamsByJob.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab", + "resourceGroupName": "mygroup", + "automationAccountName": "ContoseAutomationAccount", + "runbookName": "Get-AzureVMTutorial", + "api-version": "2015-10-31" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourcegroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/jobs/jobName/streams/24456a8a-2857-4af6-932c-3455f38bd05e_00636535675981232703_00000000000000000001", + "properties": { + "jobStreamId": "24456a8a-2857-4af6-932c-3455f38bd05e_00636535675981232703_00000000000000000001", + "summary": null, + "time": "2018-02-07T02:33:18.1232703+00:00", + "streamType": "Output" + } + }, + { + "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourcegroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/jobs/jobName/streams/24456a8a-2857-4af6-932c-3455f38bd05e_00636535675984691350_00000000000000000002", + "properties": { + "jobStreamId": "24456a8a-2857-4af6-932c-3455f38bd05e_00636535675984691350_00000000000000000002", + "summary": null, + "time": "2018-02-07T02:33:18.469135+00:00", + "streamType": "Output" + } + } + ], + "nextLink": "" + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/publishRunbook.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/publishRunbook.json new file mode 100644 index 000000000000..63cb73fc6ffe --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/publishRunbook.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "ContoseAutomationAccount", + "runbookName": "Get-AzureVMTutorial", + "api-version": "2018-06-30" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subid/resourcegroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/Get-AzureVMTutorial/publish/operationResults/9bd70be2-cf73-49b4-9467-5261d48c2b3d?api-version=2018-06-30" + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/replaceRunbookDraftContent.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/replaceRunbookDraftContent.json new file mode 100644 index 000000000000..47930564acc2 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/replaceRunbookDraftContent.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "ContoseAutomationAccount", + "runbookName": "Get-AzureVMTutorial", + "api-version": "2015-10-31", + "runbookContent": "<#\r\n .DESCRIPTION\r\n An example runbook which prints out the first10 Azure VMs in your subscription (ordered alphabetically).\r\n For more information about how this runbook authenticates to your Azure subscription, see our documentation here: http: \/\/aka.ms\/fxu3mn\r\n\r\n .NOTES\r\n AUTHOR: Azure Automation Team\r\n LASTEDIT: Mar27,\r\n 2015\r\n #>\r\n workflow Get-AzureVMTutorial{\r\n #The name of the Automation Credential Asset this runbook will use to authenticate to Azure.\r\n $CredentialAssetName = 'DefaultAzureCredential'\r\n\r\n #Get the credential with the above name from the Automation Asset store\r\n $Cred = Get-AutomationPSCredential -Name $CredentialAssetName\r\n if(!$Cred){\r\n Throw\"Could not find an Automation Credential Asset named '${CredentialAssetName}'. Make sure you have created one in this Automation Account.\"\r\n }\r\n\r\n #Connect to your Azure Account\r\n $Account = Add-AzureAccount -Credential $Cred\r\n if(!$Account){\r\n Throw\"Could not authenticate to Azure using the credential asset '${CredentialAssetName}'. Make sure the user name and password are correct.\"\r\n }\r\n\r\n #TODO (optional): pick the right subscription to use. Without this line, the default subscription for your Azure Account will be used.\r\n #Select-AzureSubscription -SubscriptionName\"TODO: your Azure subscription name here\"\r\n \r\n #Get all the VMs you have in your Azure subscription\r\n $VMs = Get-AzureVM\r\n\r\n #Print out up to10 of those VMs\r\n if(!$VMs){\r\n Write-Output\"No VMs were found in your subscription.\"\r\n } else{\r\n Write-Output $VMs[0..9\r\n ]\r\n }\r\n }" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subid/resourcegroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/Get-AzureVMTutorial/draft/content/operationResults/9bd70be2-cf73-49b4-9467-5261d48c2b3d?api-version=2015-10-31" + } + }, + "200":{} + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/resumeTestJob.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/resumeTestJob.json new file mode 100644 index 000000000000..5c1a32760825 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/resumeTestJob.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab", + "resourceGroupName": "mygroup", + "automationAccountName": "ContoseAutomationAccount", + "runbookName": "Get-AzureVMTutorial", + "api-version": "2015-10-31" + }, + "responses": { + "200": {} + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/stopTestJob.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/stopTestJob.json new file mode 100644 index 000000000000..5c1a32760825 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/stopTestJob.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab", + "resourceGroupName": "mygroup", + "automationAccountName": "ContoseAutomationAccount", + "runbookName": "Get-AzureVMTutorial", + "api-version": "2015-10-31" + }, + "responses": { + "200": {} + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/suspendTestJob.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/suspendTestJob.json new file mode 100644 index 000000000000..5c1a32760825 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/suspendTestJob.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab", + "resourceGroupName": "mygroup", + "automationAccountName": "ContoseAutomationAccount", + "runbookName": "Get-AzureVMTutorial", + "api-version": "2015-10-31" + }, + "responses": { + "200": {} + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/undoDraftEditToLastKnownPublishedState.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/undoDraftEditToLastKnownPublishedState.json new file mode 100644 index 000000000000..1d66a8940afa --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/undoDraftEditToLastKnownPublishedState.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "ContoseAutomationAccount", + "runbookName": "Get-AzureVMTutorial", + "api-version": "2015-10-31" + }, + "responses": { + "200": {} + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/updateRunbook.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/updateRunbook.json new file mode 100644 index 000000000000..cb545814de2c --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/updateRunbook.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "ContoseAutomationAccount", + "runbookName": "Get-AzureVMTutorial", + "api-version": "2015-10-31", + "parameters": { + "properties": { + "description": "Updated Description of the Runbook", + "logVerbose": false, + "logProgress": true, + "logActivityTrace": 1 + } + } + }, + "responses": { + "200": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/Get-AzureVMTutorial", + "name": "Get-AzureVMTutorial", + "type": "Microsoft.Automation/AutomationAccounts/Runbooks", + "location": "East US 2", + "tags": { + "tag01": "value01", + "tag02": "value02" + }, + "etag": "\"636265044994500000\"", + "properties": { + "description": "Updated Description of the Runbook", + "logVerbose": false, + "logProgress": true, + "logActivityTrace": 1, + "runbookType": "PowerShellWorkflow", + "parameters": {}, + "state": "Published", + "jobCount": 0, + "provisioningState": "Succeeded", + "outputTypes": [], + "creationTime": "2017-03-30T21:01:33.777+00:00", + "lastModifiedBy": "myEmaild@microsoft.com", + "lastModifiedTime": "2017-03-30T21:01:39.45+00:00" + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/runbook.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/runbook.json new file mode 100644 index 000000000000..88309f5b2f19 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/runbook.json @@ -0,0 +1,1682 @@ +{ + "swagger": "2.0", + "info": { + "title": "AutomationManagement", + "version": "2015-10-31", + "x-ms-code-generation-settings": { + "useDateTimeOffset": true + } + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/content": { + "get": { + "tags": [ + "RunbookDraft" + ], + "operationId": "RunbookDraft_GetContent", + "description": "Retrieve the content of runbook draft identified by runbook name.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/runbookdraftoperations" + }, + "x-ms-examples": { + "Get runbook draft content": { + "$ref": "./examples/getRunbookDraftContent.json" + } + }, + "produces": [ + "text/powershell" + ], + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "runbookName", + "in": "path", + "required": true, + "type": "string", + "description": "The runbook name." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "RunbookDraft" + ], + "operationId": "RunbookDraft_ReplaceContent", + "description": "Replaces the runbook draft content.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/runbookdraftoperations" + }, + "x-ms-examples": { + "Create or update runbook draft": { + "$ref": "./examples/replaceRunbookDraftContent.json" + } + }, + "consumes": [ + "text/powershell" + ], + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "runbookName", + "in": "path", + "required": true, + "type": "string", + "description": "The runbook name." + }, + { + "name": "runbookContent", + "in": "body", + "required": true, + "schema": { + "type": "string" + }, + "description": "The runbook draft content." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously.", + "headers": { + "location": { + "description": "URL to query for status of the operation.", + "type": "string" + } + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft": { + "get": { + "tags": [ + "RunbookDraft" + ], + "operationId": "RunbookDraft_Get", + "description": "Retrieve the runbook draft identified by runbook name.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/runbookdraftoperations" + }, + "x-ms-examples": { + "Get runbook draft": { + "$ref": "./examples/getRunbookDraft.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "runbookName", + "in": "path", + "required": true, + "type": "string", + "description": "The runbook name." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RunbookDraft" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/publish": { + "post": { + "tags": [ + "Runbook" + ], + "operationId": "Runbook_Publish", + "description": "Publish runbook draft.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/runbookdraftoperations" + }, + "x-ms-examples": { + "Publish runbook draft": { + "$ref": "./examples/publishRunbook.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "runbookName", + "in": "path", + "required": true, + "type": "string", + "description": "The parameters supplied to the publish runbook operation." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted and the operation will complete asynchronously.", + "headers": { + "location": { + "description": "URL to query for status of the operation.", + "type": "string" + } + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/undoEdit": { + "post": { + "tags": [ + "RunbookDraft" + ], + "operationId": "RunbookDraft_UndoEdit", + "description": "Undo draft edit to last known published state identified by runbook name.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/runbookdraftoperations" + }, + "x-ms-examples": { + "Undo draft edit to last known published state": { + "$ref": "./examples/undoDraftEditToLastKnownPublishedState.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "runbookName", + "in": "path", + "required": true, + "type": "string", + "description": "The runbook name." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RunbookDraftUndoEditResult" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/content": { + "get": { + "tags": [ + "Runbook" + ], + "operationId": "Runbook_GetContent", + "description": "Retrieve the content of runbook identified by runbook name.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/runbookoperations" + }, + "x-ms-examples": { + "Get runbook content": { + "$ref": "./examples/getRunbookContent.json" + } + }, + "produces": [ + "text/powershell" + ], + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "runbookName", + "in": "path", + "required": true, + "type": "string", + "description": "The runbook name." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}": { + "get": { + "tags": [ + "Runbook" + ], + "operationId": "Runbook_Get", + "description": "Retrieve the runbook identified by runbook name.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/runbookoperations" + }, + "x-ms-examples": { + "Get runbook": { + "$ref": "./examples/getRunbook.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "runbookName", + "in": "path", + "required": true, + "type": "string", + "description": "The runbook name." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Runbook" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "Runbook" + ], + "operationId": "Runbook_CreateOrUpdate", + "description": "Create the runbook identified by runbook name.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/runbookoperations" + }, + "x-ms-examples": { + "Create or update runbook and publish it": { + "$ref": "./examples/createOrUpdateRunbook.json" + }, + "Create runbook as draft": { + "$ref": "./examples/createRunbookAsDraft.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "runbookName", + "in": "path", + "required": true, + "type": "string", + "description": "The runbook name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RunbookCreateOrUpdateParameters" + }, + "description": "The create or update parameters for runbook. Provide either content link for a published runbook or draft, not both." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Runbook" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Runbook" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "Runbook" + ], + "operationId": "Runbook_Update", + "description": "Update the runbook identified by runbook name.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/runbookoperations" + }, + "x-ms-examples": { + "Update runbook": { + "$ref": "./examples/updateRunbook.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "runbookName", + "in": "path", + "required": true, + "type": "string", + "description": "The runbook name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RunbookUpdateParameters" + }, + "description": "The update parameters for runbook." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Runbook" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Runbook" + ], + "operationId": "Runbook_Delete", + "description": "Delete the runbook by name.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/runbookoperations" + }, + "x-ms-examples": { + "Delete a runbook": { + "$ref": "./examples/deleteRunbook.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "runbookName", + "in": "path", + "required": true, + "type": "string", + "description": "The runbook name." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks": { + "get": { + "tags": [ + "Runbook" + ], + "operationId": "Runbook_ListByAutomationAccount", + "description": "Retrieve a list of runbooks.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/runbookoperations" + }, + "x-ms-examples": { + "List runbooks by automation account": { + "$ref": "./examples/listRunbooksByAutomationAccount.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RunbookListResult" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/streams/{jobStreamId}": { + "get": { + "tags": [ + "TestJobStream" + ], + "operationId": "TestJobStreams_Get", + "description": "Retrieve a test job stream of the test job identified by runbook name and stream id.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/jobstreamoperations" + }, + "x-ms-examples": { + "Get test job stream": { + "$ref": "./examples/getTestJobStream.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "runbookName", + "in": "path", + "required": true, + "type": "string", + "description": "The runbook name." + }, + { + "name": "jobStreamId", + "in": "path", + "required": true, + "type": "string", + "description": "The job stream id." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/JobStream" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/streams": { + "get": { + "tags": [ + "TestJobStream" + ], + "operationId": "TestJobStreams_ListByTestJob", + "description": "Retrieve a list of test job streams identified by runbook name.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/jobstreamoperations" + }, + "x-ms-examples": { + "List job streams by job name": { + "$ref": "./examples/listTestJobStreamsByJob.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "runbookName", + "in": "path", + "required": true, + "type": "string", + "description": "The runbook name." + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/JobStreamListResult" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob": { + "put": { + "tags": [ + "TestJob" + ], + "operationId": "TestJob_Create", + "description": "Create a test job of the runbook.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/testjoboperations" + }, + "x-ms-examples": { + "Create test job": { + "$ref": "./examples/createTestJob.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "runbookName", + "in": "path", + "required": true, + "type": "string", + "description": "The parameters supplied to the create test job operation." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TestJobCreateParameters" + }, + "description": "The parameters supplied to the create test job operation." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/TestJob" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "TestJob" + ], + "operationId": "TestJob_Get", + "description": "Retrieve the test job for the specified runbook.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/testjoboperations" + }, + "x-ms-examples": { + "Get test job": { + "$ref": "./examples/getTestJob.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "runbookName", + "in": "path", + "required": true, + "type": "string", + "description": "The runbook name." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/TestJob" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/resume": { + "post": { + "tags": [ + "TestJob" + ], + "operationId": "TestJob_Resume", + "description": "Resume the test job.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/testjoboperations" + }, + "x-ms-examples": { + "Resume test job": { + "$ref": "./examples/resumeTestJob.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "runbookName", + "in": "path", + "required": true, + "type": "string", + "description": "The runbook name." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/stop": { + "post": { + "tags": [ + "TestJob" + ], + "operationId": "TestJob_Stop", + "description": "Stop the test job.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/testjoboperations" + }, + "x-ms-examples": { + "Stop test job": { + "$ref": "./examples/stopTestJob.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "runbookName", + "in": "path", + "required": true, + "type": "string", + "description": "The runbook name." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/suspend": { + "post": { + "tags": [ + "TestJob" + ], + "operationId": "TestJob_Suspend", + "description": "Suspend the test job.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/testjoboperations" + }, + "x-ms-examples": { + "Suspend test job": { + "$ref": "./examples/suspendTestJob.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "runbookName", + "in": "path", + "required": true, + "type": "string", + "description": "The runbook name." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "JobStream": { + "properties": { + "id": { + "type": "string", + "description": "Gets or sets the id of the resource." + }, + "properties": { + "$ref": "#/definitions/JobStreamProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the id of the job stream." + } + }, + "description": "Definition of the job stream." + }, + "JobStreamProperties": { + "properties": { + "jobStreamId": { + "type": "string", + "description": "Gets or sets the id of the job stream." + }, + "time": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the creation time of the job.", + "x-nullable": false + }, + "streamType": { + "type": "string", + "description": "Gets or sets the stream type.", + "enum": [ + "Progress", + "Output", + "Warning", + "Error", + "Debug", + "Verbose", + "Any" + ], + "x-ms-enum": { + "name": "JobStreamType", + "modelAsString": true + } + }, + "streamText": { + "type": "string", + "description": "Gets or sets the stream text." + }, + "summary": { + "type": "string", + "description": "Gets or sets the summary." + }, + "value": { + "type": "object", + "additionalProperties": { + "type": "object" + }, + "description": "Gets or sets the values of the job stream." + } + }, + "description": "Definition of the job stream." + }, + "JobStreamListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/JobStream" + }, + "description": "A list of job streams." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + } + }, + "description": "The response model for the list job stream operation." + }, + "ContentHash": { + "properties": { + "algorithm": { + "type": "string", + "description": "Gets or sets the content hash algorithm used to hash the content." + }, + "value": { + "type": "string", + "description": "Gets or sets expected hash value of the content." + } + }, + "required": [ + "algorithm", + "value" + ], + "description": "Definition of the runbook property type." + }, + "ContentLink": { + "properties": { + "uri": { + "type": "string", + "description": "Gets or sets the uri of the runbook content." + }, + "contentHash": { + "$ref": "#/definitions/ContentHash", + "description": "Gets or sets the hash." + }, + "version": { + "type": "string", + "description": "Gets or sets the version of the content." + } + }, + "description": "Definition of the content link." + }, + "RunbookProperties": { + "properties": { + "runbookType": { + "type": "string", + "description": "Gets or sets the type of the runbook.", + "enum": [ + "Script", + "Graph", + "PowerShellWorkflow", + "PowerShell", + "GraphPowerShellWorkflow", + "GraphPowerShell" + ], + "x-ms-enum": { + "name": "RunbookTypeEnum", + "modelAsString": true + } + }, + "publishContentLink": { + "$ref": "#/definitions/ContentLink", + "description": "Gets or sets the published runbook content link." + }, + "state": { + "type": "string", + "description": "Gets or sets the state of the runbook.", + "enum": [ + "New", + "Edit", + "Published" + ], + "x-ms-enum": { + "name": "RunbookState", + "modelAsString": true + } + }, + "logVerbose": { + "type": "boolean", + "description": "Gets or sets verbose log option." + }, + "logProgress": { + "type": "boolean", + "description": "Gets or sets progress log option." + }, + "logActivityTrace": { + "type": "integer", + "format": "int32", + "description": "Gets or sets the option to log activity trace of the runbook." + }, + "jobCount": { + "type": "integer", + "format": "int32", + "description": "Gets or sets the job count of the runbook." + }, + "parameters": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/RunbookParameter" + }, + "description": "Gets or sets the runbook parameters." + }, + "outputTypes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Gets or sets the runbook output types." + }, + "draft": { + "$ref": "#/definitions/RunbookDraft", + "description": "Gets or sets the draft runbook properties." + }, + "provisioningState": { + "type": "string", + "description": "Gets or sets the provisioning state of the runbook.", + "enum": [ + "Succeeded" + ], + "x-ms-enum": { + "name": "RunbookProvisioningState", + "modelAsString": false + } + }, + "lastModifiedBy": { + "type": "string", + "description": "Gets or sets the last modified by." + }, + "creationTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the creation time.", + "x-nullable": false + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the last modified time.", + "x-nullable": false + }, + "description": { + "type": "string", + "description": "Gets or sets the description." + } + }, + "description": "Definition of the runbook property type." + }, + "Runbook": { + "properties": { + "properties": { + "$ref": "#/definitions/RunbookProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the runbook properties." + }, + "etag": { + "type": "string", + "description": "Gets or sets the etag of the resource." + } + }, + "allOf": [ + { + "$ref": "../../common/v1/definitions.json#/definitions/TrackedResource" + } + ], + "description": "Definition of the runbook type." + }, + "RunbookListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Runbook" + }, + "description": "Gets or sets a list of runbooks." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + } + }, + "description": "The response model for the list runbook operation." + }, + "RunbookCreateOrUpdateProperties": { + "properties": { + "logVerbose": { + "type": "boolean", + "description": "Gets or sets verbose log option." + }, + "logProgress": { + "type": "boolean", + "description": "Gets or sets progress log option." + }, + "runbookType": { + "type": "string", + "description": "Gets or sets the type of the runbook.", + "enum": [ + "Script", + "Graph", + "PowerShellWorkflow", + "PowerShell", + "GraphPowerShellWorkflow", + "GraphPowerShell" + ], + "x-ms-enum": { + "name": "RunbookTypeEnum", + "modelAsString": true + } + }, + "draft": { + "$ref": "#/definitions/RunbookDraft", + "description": "Gets or sets the draft runbook properties." + }, + "publishContentLink": { + "$ref": "#/definitions/ContentLink", + "description": "Gets or sets the published runbook content link." + }, + "description": { + "type": "string", + "description": "Gets or sets the description of the runbook." + }, + "logActivityTrace": { + "type": "integer", + "format": "int32", + "description": "Gets or sets the activity-level tracing options of the runbook." + } + }, + "required": [ + "runbookType" + ], + "description": "The parameters supplied to the create or update runbook properties." + }, + "RunbookCreateOrUpdateParameters": { + "properties": { + "properties": { + "$ref": "#/definitions/RunbookCreateOrUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets runbook create or update properties." + }, + "name": { + "type": "string", + "description": "Gets or sets the name of the resource." + }, + "location": { + "type": "string", + "description": "Gets or sets the location of the resource." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets the tags attached to the resource." + } + }, + "required": [ + "properties" + ], + "description": "The parameters supplied to the create or update runbook operation." + }, + "RunbookUpdateProperties": { + "properties": { + "description": { + "type": "string", + "description": "Gets or sets the description of the runbook." + }, + "logVerbose": { + "type": "boolean", + "description": "Gets or sets verbose log option." + }, + "logProgress": { + "type": "boolean", + "description": "Gets or sets progress log option." + }, + "logActivityTrace": { + "type": "integer", + "format": "int32", + "description": "Gets or sets the activity-level tracing options of the runbook." + } + }, + "description": "The parameters supplied to the update runbook properties." + }, + "RunbookUpdateParameters": { + "properties": { + "properties": { + "$ref": "#/definitions/RunbookUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the runbook update properties." + }, + "name": { + "type": "string", + "description": "Gets or sets the name of the resource." + }, + "location": { + "type": "string", + "description": "Gets or sets the location of the resource." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets the tags attached to the resource." + } + }, + "description": "The parameters supplied to the update runbook operation." + }, + "RunbookDraftUndoEditResult": { + "properties": { + "statusCode": { + "type": "string", + "enum": [ + "Continue", + "SwitchingProtocols", + "OK", + "Created", + "Accepted", + "NonAuthoritativeInformation", + "NoContent", + "ResetContent", + "PartialContent", + "MultipleChoices", + "Ambiguous", + "MovedPermanently", + "Moved", + "Found", + "Redirect", + "SeeOther", + "RedirectMethod", + "NotModified", + "UseProxy", + "Unused", + "TemporaryRedirect", + "RedirectKeepVerb", + "BadRequest", + "Unauthorized", + "PaymentRequired", + "Forbidden", + "NotFound", + "MethodNotAllowed", + "NotAcceptable", + "ProxyAuthenticationRequired", + "RequestTimeout", + "Conflict", + "Gone", + "LengthRequired", + "PreconditionFailed", + "RequestEntityTooLarge", + "RequestUriTooLong", + "UnsupportedMediaType", + "RequestedRangeNotSatisfiable", + "ExpectationFailed", + "UpgradeRequired", + "InternalServerError", + "NotImplemented", + "BadGateway", + "ServiceUnavailable", + "GatewayTimeout", + "HttpVersionNotSupported" + ], + "x-ms-enum": { + "name": "HttpStatusCode", + "modelAsString": true + } + }, + "requestId": { + "type": "string" + } + }, + "description": "The response model for the undoedit runbook operation." + }, + "RunbookDraft": { + "properties": { + "inEdit": { + "type": "boolean", + "description": "Gets or sets whether runbook is in edit mode." + }, + "draftContentLink": { + "$ref": "#/definitions/ContentLink", + "description": "Gets or sets the draft runbook content link." + }, + "creationTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the creation time of the runbook draft.", + "x-nullable": false + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the last modified time of the runbook draft.", + "x-nullable": false + }, + "parameters": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/RunbookParameter" + }, + "description": "Gets or sets the runbook draft parameters." + }, + "outputTypes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Gets or sets the runbook output types." + } + } + }, + "RunbookParameter": { + "properties": { + "type": { + "type": "string", + "description": "Gets or sets the type of the parameter." + }, + "isMandatory": { + "type": "boolean", + "description": "Gets or sets a Boolean value to indicate whether the parameter is madatory or not." + }, + "position": { + "type": "integer", + "format": "int32", + "description": "Get or sets the position of the parameter." + }, + "defaultValue": { + "type": "string", + "description": "Gets or sets the default value of parameter." + } + }, + "description": "Definition of the runbook parameter type." + }, + "TestJobCreateParameters": { + "properties": { + "parameters": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets the parameters of the test job." + }, + "runOn": { + "type": "string", + "description": "Gets or sets the runOn which specifies the group name where the job is to be executed." + } + }, + "description": "The parameters supplied to the create test job operation." + }, + "TestJob": { + "x-ms-mutability": [ + "read", + "create" + ], + "properties": { + "creationTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the creation time of the test job.", + "x-nullable": false + }, + "status": { + "type": "string", + "description": "Gets or sets the status of the test job." + }, + "statusDetails": { + "type": "string", + "description": "Gets or sets the status details of the test job." + }, + "runOn": { + "type": "string", + "description": "Gets or sets the runOn which specifies the group name where the job is to be executed." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the start time of the test job.", + "x-nullable": true + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the end time of the test job.", + "x-nullable": true + }, + "exception": { + "type": "string", + "description": "Gets or sets the exception of the test job." + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the last modified time of the test job.", + "x-nullable": false + }, + "lastStatusModifiedTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the last status modified time of the test job.", + "x-nullable": true + }, + "parameters": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets the parameters of the test job." + }, + "logActivityTrace": { + "type": "integer", + "format": "int32", + "description": "The activity-level tracing options of the runbook." + } + }, + "description": "Definition of the test job." + }, + "RunbookCreateOrUpdateDraftProperties": { + "properties": { + "logVerbose": { + "type": "boolean", + "description": "Gets or sets verbose log option." + }, + "logProgress": { + "type": "boolean", + "description": "Gets or sets progress log option." + }, + "runbookType": { + "type": "string", + "description": "Gets or sets the type of the runbook.", + "enum": [ + "Script", + "Graph", + "PowerShellWorkflow", + "PowerShell", + "GraphPowerShellWorkflow", + "GraphPowerShell" + ], + "x-ms-enum": { + "name": "RunbookTypeEnum", + "modelAsString": true + } + }, + "draft": { + "$ref": "#/definitions/RunbookDraft", + "description": "Gets or sets the draft runbook properties." + }, + "description": { + "type": "string", + "description": "Gets or sets the description of the runbook." + }, + "logActivityTrace": { + "type": "integer", + "format": "int32", + "description": "Gets or sets the activity-level tracing options of the runbook." + } + }, + "required": [ + "runbookType", + "draft" + ], + "description": "The parameters supplied to the create or update dratft runbook properties." + }, + "RunbookCreateOrUpdateDraftParameters": { + "properties": { + "runbookContent": { + "type": "string", + "description": "Content of the Runbook." + } + }, + "x-ms-client-flatten": true, + "required": [ + "runbookContent" + ], + "description": "The parameters supplied to the create or update runbook operation." + } + }, + "parameters": {} +} \ No newline at end of file