From dac7e2e97d1dd44b802edd3dcbc06b2735e51d7b Mon Sep 17 00:00:00 2001 From: Bhargava Chary Chollaty Date: Thu, 24 Jun 2021 00:16:35 +0530 Subject: [PATCH 01/15] Added Base for 2021-06-22 --- .../stable/2021-06-22/account.json | 938 ++++++++++++++++++ .../createOrUpdateAutomationAccount.json | 63 ++ .../examples/deleteAutomationAccount.json | 12 + .../deleteHybridRunbookWorkerGroup.json | 12 + .../examples/getAutomationAccount.json | 32 + .../getStatisticsOfAutomationAccount.json | 108 ++ .../getUsagesOfAutomationAccount.json | 47 + .../examples/hybridRunbookWorkerGroupGet.json | 28 + .../hybridRunbookWorkerGroupList.json | 32 + .../hybridRunbookWorkerGroupUpdate.json | 33 + .../examples/listAutomationAccountKeys.json | 27 + ...listAutomationAccountsByResourceGroup.json | 136 +++ .../listAutomationAccountsBySubscription.json | 685 +++++++++++++ .../examples/updateAutomationAccount.json | 41 + .../2021-06-22/hybridRunbookWorkerGroup.json | 352 +++++++ .../stable/2021-06-22/operations.json | 112 +++ .../automation/resource-manager/readme.md | 12 + 17 files changed, 2670 insertions(+) create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/account.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/createOrUpdateAutomationAccount.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deleteAutomationAccount.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deleteHybridRunbookWorkerGroup.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getAutomationAccount.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getStatisticsOfAutomationAccount.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getUsagesOfAutomationAccount.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/hybridRunbookWorkerGroupGet.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/hybridRunbookWorkerGroupList.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/hybridRunbookWorkerGroupUpdate.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountKeys.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountsByResourceGroup.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountsBySubscription.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/updateAutomationAccount.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/operations.json diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/account.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/account.json new file mode 100644 index 000000000000..07bd47241f77 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/account.json @@ -0,0 +1,938 @@ +{ + "swagger": "2.0", + "info": { + "title": "AutomationManagement", + "version": "2020-01-13-preview", + "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}": { + "patch": { + "tags": [ + "AutomationAccount" + ], + "operationId": "AutomationAccount_Update", + "description": "Update an automation account.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/automationaccountoperations" + }, + "x-ms-examples": { + "Update an automation account": { + "$ref": "./examples/updateAutomationAccount.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AutomationAccountUpdateParameters" + }, + "description": "Parameters supplied to the update automation account." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AutomationAccount" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "AutomationAccount" + ], + "operationId": "AutomationAccount_CreateOrUpdate", + "description": "Create or update automation account.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/automationaccountoperations" + }, + "x-ms-examples": { + "Create or update automation account": { + "$ref": "./examples/createOrUpdateAutomationAccount.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AutomationAccountCreateOrUpdateParameters" + }, + "description": "Parameters supplied to the create or update automation account." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/AutomationAccount" + } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AutomationAccount" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "AutomationAccount" + ], + "operationId": "AutomationAccount_Delete", + "description": "Delete an automation account.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/automationaccountoperations" + }, + "x-ms-examples": { + "Delete automation account": { + "$ref": "./examples/deleteAutomationAccount.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$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" + } + } + } + }, + "get": { + "tags": [ + "AutomationAccount" + ], + "operationId": "AutomationAccount_Get", + "description": "Get information about an Automation Account.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/automationaccountoperations" + }, + "x-ms-examples": { + "Get automation account": { + "$ref": "./examples/getAutomationAccount.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AutomationAccount" + } + }, + "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": { + "get": { + "tags": [ + "AutomationAccount" + ], + "operationId": "AutomationAccount_ListByResourceGroup", + "description": "Retrieve a list of accounts within a given resource group.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/automationaccountoperations" + }, + "x-ms-examples": { + "List automation accounts by resource group": { + "$ref": "./examples/listAutomationAccountsByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AutomationAccountListResult" + } + }, + "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}/providers/Microsoft.Automation/automationAccounts": { + "get": { + "tags": [ + "AutomationAccount" + ], + "summary": "Lists the Automation Accounts within an Azure subscription.", + "operationId": "AutomationAccount_List", + "description": "Retrieve a list of accounts within a given subscription.", + "x-ms-examples": { + "List automation accounts by resource group": { + "$ref": "./examples/listAutomationAccountsBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AutomationAccountListResult" + } + }, + "default": { + "description": "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}/statistics": { + "get": { + "tags": [ + "Statistics" + ], + "operationId": "Statistics_ListByAutomationAccount", + "description": "Retrieve the statistics for the account.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/statisticsoperations" + }, + "x-ms-examples": { + "Get statistics of an automation account": { + "$ref": "./examples/getStatisticsOfAutomationAccount.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/StatisticsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/usages": { + "get": { + "tags": [ + "Usages" + ], + "operationId": "Usages_ListByAutomationAccount", + "description": "Retrieve the usage for the account id.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/usageoperations" + }, + "x-ms-examples": { + "Get usages of an automation account": { + "$ref": "./examples/getUsagesOfAutomationAccount.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/UsageListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/listKeys": { + "post": { + "tags": [ + "ListKeys" + ], + "operationId": "Keys_ListByAutomationAccount", + "description": "Retrieve the automation keys for an account.", + "x-ms-examples": { + "Get lists of an automation account": { + "$ref": "./examples/listAutomationAccountKeys.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/KeyListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "AutomationAccount": { + "properties": { + "properties": { + "$ref": "#/definitions/AutomationAccountProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the automation account properties." + }, + "etag": { + "type": "string", + "description": "Gets or sets the etag of the resource." + }, + "identity": { + "$ref": "#/definitions/Identity" + } + }, + "allOf": [ + { + "$ref": "../../common/v1/definitions.json#/definitions/TrackedResource" + } + ], + "description": "Definition of the automation account type." + }, + "AutomationAccountProperties": { + "properties": { + "sku": { + "$ref": "#/definitions/Sku", + "description": "Gets or sets the SKU of account." + }, + "lastModifiedBy": { + "type": "string", + "description": "Gets or sets the last modified by." + }, + "state": { + "type": "string", + "readOnly": true, + "description": "Gets status of account.", + "enum": [ + "Ok", + "Unavailable", + "Suspended" + ], + "x-ms-enum": { + "name": "AutomationAccountState", + "modelAsString": true + } + }, + "creationTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Gets the creation time.", + "x-nullable": false + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Gets the last modified time.", + "x-nullable": false + }, + "description": { + "type": "string", + "description": "Gets or sets the description." + }, + "encryption": { + "$ref": "#/definitions/EncryptionProperties", + "description": "Encryption properties for the automation account" + }, + "privateEndpointConnections": { + "type": "array", + "items": { + "$ref": "../../common/v1/definitions.json#/definitions/PrivateEndpointConnection" + }, + "description": "List of Automation operations supported by the Automation resource provider." + }, + "publicNetworkAccess": { + "type": "boolean", + "description": "Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is allowed from the public internet" + } + }, + "description": "Definition of the account property." + }, + "Sku": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the SKU name of the account.", + "enum": [ + "Free", + "Basic" + ], + "x-ms-enum": { + "name": "SkuNameEnum", + "modelAsString": true + } + }, + "family": { + "type": "string", + "description": "Gets or sets the SKU family." + }, + "capacity": { + "type": "integer", + "format": "int32", + "description": "Gets or sets the SKU capacity." + } + }, + "required": [ + "name" + ], + "description": "The account SKU." + }, + "AutomationAccountCreateOrUpdateParameters": { + "properties": { + "properties": { + "$ref": "#/definitions/AutomationAccountCreateOrUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets account create or update properties." + }, + "name": { + "type": "string", + "description": "Gets or sets name of the resource." + }, + "location": { + "type": "string", + "description": "Gets or sets the location of the resource." + }, + "identity": { + "type": "object", + "$ref": "#/definitions/Identity", + "description": "Sets the identity property for automation account" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets the tags attached to the resource." + } + }, + "description": "The parameters supplied to the create or update automation account operation." + }, + "AutomationAccountCreateOrUpdateProperties": { + "properties": { + "sku": { + "$ref": "#/definitions/Sku", + "description": "Gets or sets account SKU." + }, + "encryption": { + "$ref": "#/definitions/EncryptionProperties", + "description": "Set the encryption properties for the automation account" + }, + "publicNetworkAccess": { + "type": "boolean", + "description": "Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is allowed from the public internet" + } + }, + "description": "The parameters supplied to the create or update account properties." + }, + "AutomationAccountListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AutomationAccount" + }, + "description": "Gets or sets list of accounts." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + } + }, + "description": "The response model for the list account operation." + }, + "Statistics": { + "properties": { + "counterProperty": { + "type": "string", + "readOnly": true, + "description": "Gets the property value of the statistic." + }, + "counterValue": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "Gets the value of the statistic." + }, + "startTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Gets the startTime of the statistic.", + "x-nullable": false + }, + "endTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Gets the endTime of the statistic.", + "x-nullable": true + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Gets the id." + } + }, + "description": "Definition of the statistic." + }, + "StatisticsListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Statistics" + }, + "description": "Gets or sets a list of statistics." + } + }, + "description": "The response model for the list statistics operation." + }, + "Usage": { + "properties": { + "id": { + "type": "string", + "description": "Gets or sets the id of the resource." + }, + "name": { + "$ref": "#/definitions/UsageCounterName", + "description": "Gets or sets the usage counter name." + }, + "unit": { + "type": "string", + "description": "Gets or sets the usage unit name." + }, + "currentValue": { + "type": "number", + "format": "double", + "description": "Gets or sets the current usage value." + }, + "limit": { + "type": "integer", + "format": "int64", + "description": "Gets or sets max limit. -1 for unlimited" + }, + "throttleStatus": { + "type": "string", + "description": "Gets or sets the throttle status." + } + }, + "description": "Definition of Usage." + }, + "UsageCounterName": { + "properties": { + "value": { + "type": "string", + "description": "Gets or sets the usage counter name." + }, + "localizedValue": { + "type": "string", + "description": "Gets or sets the localized usage counter name." + } + }, + "description": "Definition of usage counter name." + }, + "UsageListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Usage" + }, + "description": "Gets or sets usage." + } + }, + "description": "The response model for the get usage operation." + }, + "Key": { + "properties": { + "KeyName": { + "readOnly": true, + "type": "string", + "description": "Automation key name.", + "enum": [ + "Primary", + "Secondary" + ], + "x-ms-enum": { + "name": "AutomationKeyName", + "modelAsString": true + } + }, + "Permissions": { + "readOnly": true, + "type": "string", + "description": "Automation key permissions.", + "enum": [ + "Read", + "Full" + ], + "x-ms-enum": { + "name": "AutomationKeyPermissions", + "modelAsString": true + } + }, + "Value": { + "readOnly": true, + "type": "string", + "description": "Value of the Automation Key used for registration." + } + }, + "description": "Automation key which is used to register a DSC Node" + }, + "KeyListResult": { + "properties": { + "keys": { + "type": "array", + "items": { + "$ref": "#/definitions/Key" + }, + "description": "Lists the automation keys." + } + } + }, + "AutomationAccountUpdateProperties": { + "properties": { + "sku": { + "$ref": "#/definitions/Sku", + "description": "Gets or sets account SKU." + }, + "encryption": { + "$ref": "#/definitions/EncryptionProperties", + "description": "Set the encryption properties for the automation account" + }, + "publicNetworkAccess": { + "type": "boolean", + "description": "Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is allowed from the public internet" + } + }, + "description": "The parameters supplied to the update account properties." + }, + "AutomationAccountUpdateParameters": { + "properties": { + "properties": { + "$ref": "#/definitions/AutomationAccountUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets account 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." + }, + "identity": { + "type": "object", + "$ref": "#/definitions/Identity", + "description": "Sets the identity property for automation account" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets the tags attached to the resource." + } + }, + "description": "The parameters supplied to the update automation account operation." + }, + "Identity": { + "description": "Identity for the resource.", + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal ID of resource identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant ID of resource." + }, + "type": { + "type": "string", + "description": "The identity type.", + "enum": [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ], + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": false + } + }, + "userAssignedIdentities": { + "type": "object", + "description": "The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.", + "additionalProperties": { + "type": "object", + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of user assigned identity." + }, + "clientId": { + "readOnly": true, + "type": "string", + "description": "The client id of user assigned identity." + } + } + } + } + } + }, + "EncryptionProperties": { + "description": "The encryption settings for automation account", + "properties": { + "keyVaultProperties": { + "$ref": "#/definitions/KeyVaultProperties", + "description": "Key vault properties." + }, + "keySource": { + "type": "string", + "description": "Encryption Key Source", + "enum": [ + "Microsoft.Automation", + "Microsoft.Keyvault" + ], + "x-ms-enum": { + "name": "EncryptionKeySourceType", + "modelAsString": false + } + }, + "identity": { + "description": "User identity used for CMK.", + "properties": { + "userAssignedIdentity": { + "type": "object", + "description": "The user identity used for CMK. It will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." + } + } + } + } + }, + "KeyVaultProperties": { + "type": "object", + "description": "Settings concerning key vault encryption for a configuration store.", + "properties": { + "keyvaultUri": { + "description": "The URI of the key vault key used to encrypt data.", + "type": "string" + }, + "keyName": { + "description": "The name of key used to encrypt data.", + "type": "string" + }, + "keyVersion": { + "description": "The key version of the key used to encrypt data.", + "type": "string" + } + } + } + }, + "parameters": {} +} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/createOrUpdateAutomationAccount.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/createOrUpdateAutomationAccount.json new file mode 100644 index 000000000000..7ee40bb4f2a0 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/createOrUpdateAutomationAccount.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount9", + "api-version": "2020-01-13-preview", + "parameters": { + "properties": { + "sku": { + "name": "Free" + } + }, + "name": "myAutomationAccount9", + "location": "East US 2" + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "name": "myAutomationAccount9", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount9", + "type": "Microsoft.Automation/AutomationAccounts", + "location": "East US 2", + "tags": {}, + "etag": null, + "properties": { + "sku": { + "name": "Free", + "family": null, + "capacity": null + }, + "state": "Ok", + "creationTime": "2017-03-26T01:13:43.267+00:00", + "lastModifiedBy": "myEmailId@microsoft.com", + "lastModifiedTime": "2017-03-26T01:13:43.267+00:00" + } + } + }, + "200": { + "headers": {}, + "body": { + "name": "ContoseAutomationAccount", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount9", + "type": "Microsoft.Automation/AutomationAccounts", + "location": "East US 2", + "tags": {}, + "etag": null, + "properties": { + "sku": { + "name": "Free", + "family": null, + "capacity": null + }, + "state": "Ok", + "creationTime": "2017-03-28T18:21:15.187+00:00", + "lastModifiedBy": "myEmaild@microsoft.com", + "lastModifiedTime": "2017-03-28T18:21:15.187+00:00" + } + } + } + } +} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deleteAutomationAccount.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deleteAutomationAccount.json new file mode 100644 index 000000000000..8408e544e159 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deleteAutomationAccount.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount9", + "api-version": "2020-01-13-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deleteHybridRunbookWorkerGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deleteHybridRunbookWorkerGroup.json new file mode 100644 index 000000000000..08f3e0013b48 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deleteHybridRunbookWorkerGroup.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount20", + "hybridRunbookWorkerGroupName": "myGroup", + "api-version": "2020-01-13-preview" + }, + "responses": { + "200": {} + } +} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getAutomationAccount.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getAutomationAccount.json new file mode 100644 index 000000000000..3a3aff6bfa68 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getAutomationAccount.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount9", + "api-version": "2020-01-13-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myAutomationAccount9", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount9", + "type": "Microsoft.Automation/AutomationAccounts", + "location": "East US 2", + "tags": {}, + "etag": null, + "properties": { + "sku": { + "name": "Free", + "family": null, + "capacity": null + }, + "state": "Ok", + "creationTime": "2017-03-26T01:13:43.267+00:00", + "lastModifiedBy": "myEmailId@microsoft.com", + "lastModifiedTime": "2017-03-26T01:13:43.267+00:00" + } + } + } + } +} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getStatisticsOfAutomationAccount.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getStatisticsOfAutomationAccount.json new file mode 100644 index 000000000000..276b48674fb3 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getStatisticsOfAutomationAccount.json @@ -0,0 +1,108 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount11", + "api-version": "2020-01-13-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/New", + "counterProperty": "New", + "counterValue": 0, + "startTime": "2017-03-19T02:11:49.9879197+00:00", + "endTime": "2017-03-26T02:11:49.9879197+00:00" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Activating", + "counterProperty": "Activating", + "counterValue": 0, + "startTime": "2017-03-19T02:11:49.9879197+00:00", + "endTime": "2017-03-26T02:11:49.9879197+00:00" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Running", + "counterProperty": "Running", + "counterValue": 0, + "startTime": "2017-03-19T02:11:49.9879197+00:00", + "endTime": "2017-03-26T02:11:49.9879197+00:00" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Completed", + "counterProperty": "Completed", + "counterValue": 0, + "startTime": "2017-03-19T02:11:49.9879197+00:00", + "endTime": "2017-03-26T02:11:49.9879197+00:00" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Failed", + "counterProperty": "Failed", + "counterValue": 0, + "startTime": "2017-03-19T02:11:49.9879197+00:00", + "endTime": "2017-03-26T02:11:49.9879197+00:00" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Stopped", + "counterProperty": "Stopped", + "counterValue": 0, + "startTime": "2017-03-19T02:11:49.9879197+00:00", + "endTime": "2017-03-26T02:11:49.9879197+00:00" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Blocked", + "counterProperty": "Blocked", + "counterValue": 0, + "startTime": "2017-03-19T02:11:49.9879197+00:00", + "endTime": "2017-03-26T02:11:49.9879197+00:00" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Suspended", + "counterProperty": "Suspended", + "counterValue": 0, + "startTime": "2017-03-19T02:11:49.9879197+00:00", + "endTime": "2017-03-26T02:11:49.9879197+00:00" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Disconnected", + "counterProperty": "Disconnected", + "counterValue": 0, + "startTime": "2017-03-19T02:11:49.9879197+00:00", + "endTime": "2017-03-26T02:11:49.9879197+00:00" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Suspending", + "counterProperty": "Suspending", + "counterValue": 0, + "startTime": "2017-03-19T02:11:49.9879197+00:00", + "endTime": "2017-03-26T02:11:49.9879197+00:00" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Stopping", + "counterProperty": "Stopping", + "counterValue": 0, + "startTime": "2017-03-19T02:11:49.9879197+00:00", + "endTime": "2017-03-26T02:11:49.9879197+00:00" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Resuming", + "counterProperty": "Resuming", + "counterValue": 0, + "startTime": "2017-03-19T02:11:49.9879197+00:00", + "endTime": "2017-03-26T02:11:49.9879197+00:00" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Removing", + "counterProperty": "Removing", + "counterValue": 0, + "startTime": "2017-03-19T02:11:49.9879197+00:00", + "endTime": "2017-03-26T02:11:49.9879197+00:00" + } + ] + } + } + } +} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getUsagesOfAutomationAccount.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getUsagesOfAutomationAccount.json new file mode 100644 index 000000000000..ea3eb445b316 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getUsagesOfAutomationAccount.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount11", + "api-version": "2020-01-13-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": { + "value": "AccountUsage", + "localizedValue": "AccountUsage" + }, + "unit": "Minute", + "currentValue": 0.0, + "limit": 500, + "throttleStatus": "NotThrottled" + }, + { + "name": { + "value": "SubscriptionUsage", + "localizedValue": "SubscriptionUsage" + }, + "unit": "Minute", + "currentValue": 429.0, + "limit": 500, + "throttleStatus": "NotThrottled" + }, + { + "name": { + "value": "DscSubscriptionUsage", + "localizedValue": "DscSubscriptionUsage" + }, + "unit": "Count", + "currentValue": 8.0, + "limit": 5, + "throttleStatus": "ThrottledAtSubscriptionLevel" + } + ] + } + } + } +} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/hybridRunbookWorkerGroupGet.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/hybridRunbookWorkerGroupGet.json new file mode 100644 index 000000000000..8f2669e0c204 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/hybridRunbookWorkerGroupGet.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "testaccount", + "hybridRunbookWorkerGroupName": "TestHybridGroup", + "api-version": "2020-01-13-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup", + "name": "TestHybridGroup", + "hybridRunbookWorkers": [ + { + "name": "TestHybridWorker", + "ip": "100.1.1.1", + "registrationTime": "2017-03-24T12:43:45.0146578-07:00" + } + ], + "credential": { + "name": "myRunAsCredentialName" + } + } + } + } +} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/hybridRunbookWorkerGroupList.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/hybridRunbookWorkerGroupList.json new file mode 100644 index 000000000000..6680b9b207d2 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/hybridRunbookWorkerGroupList.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "udtest", + "automationAccountName": "testaccount", + "hybridRunbookWorkerGroupName": "TestWorkerGroup", + "api-version": "2020-01-13-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/udtest/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestWorkerGroup", + "name": "TestWorkerGroup", + "hybridRunbookWorkers": [ + { + "name": "TestMachine", + "ip": "134.1.1.1", + "registrationTime": "2017-03-24T12:43:43.053855-07:00" + } + ], + "credential": { + "name": "myRunAsCredentialName" + } + } + ] + } + } + } +} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/hybridRunbookWorkerGroupUpdate.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/hybridRunbookWorkerGroupUpdate.json new file mode 100644 index 000000000000..9e36ecdce2be --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/hybridRunbookWorkerGroupUpdate.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "testaccount", + "hybridRunbookWorkerGroupName": "TestHybridGroup", + "api-version": "2020-01-13-preview", + "parameters": { + "credential": { + "name": "myRunAsCredentialName" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup", + "name": "TestHybridGroup", + "hybridRunbookWorkers": [ + { + "name": "TestHybridWorker", + "ip": "100.1.1.1", + "registrationTime": "2017-03-24T12:43:45.0146578-07:00" + } + ], + "credential": { + "name": "myRunAsCredentialName" + } + } + } + } +} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountKeys.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountKeys.json new file mode 100644 index 000000000000..05f03ce1ddd2 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountKeys.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "MyAutomationAccount", + "api-version": "2020-01-13-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "keys": [ + { + "KeyName": "Primary", + "Permissions": "Full", + "Value": "**************************************************************" + }, + { + "KeyName": "Secondary", + "Permissions": "Full", + "Value": "**************************************************************" + } + ] + } + } + } +} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountsByResourceGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountsByResourceGroup.json new file mode 100644 index 000000000000..eb1f5ce1773b --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountsByResourceGroup.json @@ -0,0 +1,136 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "api-version": "2020-01-13-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myaccount", + "location": "eastus2", + "name": "myaccount", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-09-24T00:47:04.227+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00", + "lastModifiedBy": "myEmailId@microsoft.com", + "state": "Ok" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAccount123", + "location": "eastus2", + "name": "myAccount123", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-09-29T00:32:32.52+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00", + "lastModifiedBy": "myEmailId@microsoft.com", + "state": "Ok" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAccountasfads", + "location": "East US 2", + "name": "myAccountasfads", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-03-24T23:21:03.27+00:00", + "lastModifiedTime": "2017-03-24T23:21:03.27+00:00", + "lastModifiedBy": "myEmailId@microsoft.com", + "state": "Ok" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount1", + "location": "East US 2", + "name": "myAutomationAccount1", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-03-24T23:22:33.26+00:00", + "lastModifiedTime": "2017-03-24T23:22:33.26+00:00", + "lastModifiedBy": "myEmailId@microsoft.com", + "state": "Ok" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11", + "location": "East US 2", + "name": "myAutomationAccount11", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-03-26T02:10:24.523+00:00", + "lastModifiedTime": "2017-03-26T02:11:12.027+00:00", + "lastModifiedBy": "myEmailId@microsoft.com", + "state": "Ok" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount2", + "location": "East US 2", + "name": "myAutomationAccount2", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-03-24T23:24:20.31+00:00", + "lastModifiedTime": "2017-03-24T23:24:20.31+00:00", + "lastModifiedBy": "myEmailId@microsoft.com", + "state": "Ok" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount3", + "location": "East US 2", + "name": "myAutomationAccount3", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-03-24T23:24:43.967+00:00", + "lastModifiedTime": "2017-03-24T23:24:43.967+00:00", + "lastModifiedBy": "myEmailId@microsoft.com", + "state": "Ok" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount4", + "location": "East US 2", + "name": "myAutomationAccount4", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-03-25T02:04:56.9+00:00", + "lastModifiedTime": "2017-03-25T02:04:56.9+00:00", + "lastModifiedBy": "myEmailId@microsoft.com", + "state": "Ok" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount6", + "location": "East US 2", + "name": "myAutomationAccount6", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-03-25T02:10:44.567+00:00", + "lastModifiedTime": "2017-03-25T02:10:44.567+00:00", + "lastModifiedBy": "myEmailId@microsoft.com", + "state": "Ok" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount7", + "location": "East US 2", + "name": "myAutomationAccount7", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-03-25T02:19:17.943+00:00", + "lastModifiedTime": "2017-03-25T02:19:17.943+00:00", + "lastModifiedBy": "myEmailId@microsoft.com", + "state": "Ok" + } + } + ] + } + } + } +} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountsBySubscription.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountsBySubscription.json new file mode 100644 index 000000000000..40f294f6c6b0 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountsBySubscription.json @@ -0,0 +1,685 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2020-01-13-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/JPEDeploy1/providers/Microsoft.Automation/automationAccounts/JPEDDeployDSC1", + "location": "japaneast", + "name": "JPEDDeployDSC1", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2015-04-28T23:48:25.143+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.06+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/jpeDemo1/providers/Microsoft.Automation/automationAccounts/jpeDemoAutomation1", + "location": "japaneast", + "name": "jpeDemoAutomation1", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2015-04-25T02:04:10.223+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.06+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/ASERG1/providers/Microsoft.Automation/automationAccounts/ASEAutomationAccount1", + "location": "australiasoutheast", + "name": "ASEAutomationAccount1", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-04-12T05:19:19.48+00:00", + "lastModifiedTime": "2017-02-09T21:35:15.64+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/eus2Demo1/providers/Microsoft.Automation/automationAccounts/AAEU2DSCDemo", + "location": "East US 2", + "name": "AAEU2DSCDemo", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2015-08-04T14:44:02.397+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/eus2Demo1/providers/Microsoft.Automation/automationAccounts/AAEU2DSCDemo2", + "location": "East US 2", + "name": "AAEU2DSCDemo2", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2015-08-04T15:03:45.977+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/aadscdemo1/providers/Microsoft.Automation/automationAccounts/AAsnoverDemo1", + "location": "East US 2", + "name": "AAsnoverDemo1", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-01-29T02:29:13.18+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/oaastest/providers/Microsoft.Automation/automationAccounts/automationaccdelete", + "location": "eastus2", + "name": "automationaccdelete", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-03-29T20:30:49.97+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/aadscdemo2/providers/Microsoft.Automation/automationAccounts/mytest1212", + "location": "eastus2", + "name": "mytest1212", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-12-12T20:25:36.34+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/CIDRG/providers/Microsoft.Automation/automationAccounts/deleteacc", + "location": "eastus2", + "name": "deleteacc", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-01-12T22:13:39.79+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/test/providers/Microsoft.Automation/automationAccounts/deleteme", + "location": "eastus2", + "name": "deleteme", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-01-12T21:56:10.267+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/tst/providers/Microsoft.Automation/automationAccounts/deleteme3", + "location": "eastus2", + "name": "deleteme3", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-01-12T22:00:51.333+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/OaaSCSXASVNLMD6CUTP2UKUNHMCSLLJRVOSRAS2HOBKX4B3A3UBNLZWZEA-East-US/providers/Microsoft.Automation/automationAccounts/Eus2Account1", + "location": "East US 2", + "name": "Eus2Account1", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-05-19T19:07:43.2+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/EUS2Deploy1/providers/Microsoft.Automation/automationAccounts/EUS2DDeployDSC1", + "location": "eastus2", + "name": "EUS2DDeployDSC1", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2015-04-28T23:50:56.16+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/OaaSCSXASVNLMD6CUTP2UKUNHMCSLLJRVOSRAS2HOBKX4B3A3UBNLZWZEA-East-US/providers/Microsoft.Automation/automationAccounts/eusAccount2", + "location": "eastus2", + "name": "eusAccount2", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-05-19T19:12:19.853+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/mms-eus/providers/Microsoft.Automation/automationAccounts/myProdAutomation1", + "location": "eastus2", + "name": "myProdAutomation1", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-02-16T21:31:06.333+00:00", + "lastModifiedTime": "2017-02-16T21:31:06.333+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/mms-eus/providers/Microsoft.Automation/automationAccounts/myProdDevAutomation", + "location": "eastus2", + "name": "myProdDevAutomation", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-10-27T21:11:16.71+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/mms-eus/providers/Microsoft.Automation/automationAccounts/myProdPublicAutomation", + "location": "eastus2", + "name": "myProdPublicAutomation", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-11-18T19:49:08.893+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myTestaccount", + "location": "eastus2", + "name": "myTestaccount", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-09-24T00:47:04.227+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/mms-eus/providers/Microsoft.Automation/automationAccounts/kjohn-sandbox-eus", + "location": "eastus2", + "name": "kjohn-sandbox-eus", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-03-19T17:29:18.493+00:00", + "lastModifiedTime": "2017-03-19T17:29:18.493+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/mms-eus/providers/Microsoft.Automation/automationAccounts/kjohn-sandbox-eus-proddev", + "location": "eastus2", + "name": "kjohn-sandbox-eus-proddev", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-01-06T02:33:10.29+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/kjohn-rg/providers/Microsoft.Automation/automationAccounts/kjohn-sandbox-eus-prodtest", + "location": "eastus2", + "name": "kjohn-sandbox-eus-prodtest", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-01-10T23:40:13.103+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/kjohn-rg/providers/Microsoft.Automation/automationAccounts/kjohn-sandbox-eus-prodtest2", + "location": "eastus2", + "name": "kjohn-sandbox-eus-prodtest2", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-01-11T00:20:50.463+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/mms-eus/providers/Microsoft.Automation/automationAccounts/LinuxPatchingOpsEUS-AA2", + "location": "eastus2", + "name": "LinuxPatchingOpsEUS-AA2", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-09-24T03:17:00.043+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/mms-eus/providers/Microsoft.Automation/automationAccounts/LinuxTestNewAA", + "location": "eastus2", + "name": "LinuxTestNewAA", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-09-23T18:50:54.887+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/OaasCSsubid-east-us/providers/Microsoft.Automation/automationAccounts/psrdfeAccount2", + "location": "East US 2", + "name": "psrdfeAccount2", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2015-05-05T00:26:49.02+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/myrg/providers/Microsoft.Automation/automationAccounts/my-account-one", + "location": "eastus2", + "name": "my-account-one", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-10-27T17:54:31.007+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/mms-eus/providers/Microsoft.Automation/automationAccounts/myku-no-vms", + "location": "eastus2", + "name": "myku-no-vms", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-09-30T01:12:00.853+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/mms-eus/providers/Microsoft.Automation/automationAccounts/myku-win-vms", + "location": "eastus2", + "name": "myku-win-vms", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-09-30T01:17:07.613+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/aadscdemo2/providers/Microsoft.Automation/automationAccounts/SVCPrnAcctTest1", + "location": "eastus2", + "name": "SVCPrnAcctTest1", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-03-28T20:12:48.163+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/tesdbgfvfhgjghjgh/providers/Microsoft.Automation/automationAccounts/testfgbhfghfgh", + "location": "eastus2", + "name": "testfgbhfghfgh", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-12-12T20:48:59.3+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/mms-eus/providers/Microsoft.Automation/automationAccounts/test-linux-linuxopsworkspace", + "location": "eastus2", + "name": "test-linux-linuxopsworkspace", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-09-23T18:59:56.99+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/my-dev/providers/Microsoft.Automation/automationAccounts/my-dsc-test-1", + "location": "eastus2", + "name": "my-dsc-test-1", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-11-10T00:21:05.133+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/my-dev/providers/Microsoft.Automation/automationAccounts/my-test-automation-1", + "location": "eastus2", + "name": "my-test-automation-1", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-11-09T19:57:50.043+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/myresourcegroupeus/providers/Microsoft.Automation/automationAccounts/myAccount", + "location": "eastus2", + "name": "myAccount", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-03-10T19:10:30.453+00:00", + "lastModifiedTime": "2017-03-10T19:10:30.453+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAccount123", + "location": "eastus2", + "name": "myAccount123", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-09-29T00:32:32.52+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAccountasfads", + "location": "East US 2", + "name": "myAccountasfads", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-03-24T23:21:03.27+00:00", + "lastModifiedTime": "2017-03-24T23:21:03.27+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/myResourceGroupEUS/providers/Microsoft.Automation/automationAccounts/myAccountEUS", + "location": "eastus2", + "name": "myAccountEUS", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-09-29T23:13:38.873+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.4+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount1", + "location": "East US 2", + "name": "myAutomationAccount1", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-03-24T23:22:33.26+00:00", + "lastModifiedTime": "2017-03-24T23:22:33.26+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11", + "location": "East US 2", + "name": "myAutomationAccount11", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-03-26T02:10:24.523+00:00", + "lastModifiedTime": "2017-03-26T02:11:12.027+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount2", + "location": "East US 2", + "name": "myAutomationAccount2", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-03-24T23:24:20.31+00:00", + "lastModifiedTime": "2017-03-24T23:24:20.31+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount3", + "location": "East US 2", + "name": "myAutomationAccount3", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-03-24T23:24:43.967+00:00", + "lastModifiedTime": "2017-03-24T23:24:43.967+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount4", + "location": "East US 2", + "name": "myAutomationAccount4", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-03-25T02:04:56.9+00:00", + "lastModifiedTime": "2017-03-25T02:04:56.9+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount6", + "location": "East US 2", + "name": "myAutomationAccount6", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-03-25T02:10:44.567+00:00", + "lastModifiedTime": "2017-03-25T02:10:44.567+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount7", + "location": "East US 2", + "name": "myAutomationAccount7", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-03-25T02:19:17.943+00:00", + "lastModifiedTime": "2017-03-25T02:19:17.943+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/WEURG1/providers/Microsoft.Automation/automationAccounts/CSSCase1", + "location": "westeurope", + "name": "CSSCase1", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-08-18T05:53:58.91+00:00", + "lastModifiedTime": "2017-02-09T21:35:15.373+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/my/providers/Microsoft.Automation/automationAccounts/deleteme", + "location": "westeurope", + "name": "deleteme", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-01-12T21:48:47.98+00:00", + "lastModifiedTime": "2017-02-09T21:35:15.373+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/mms-weu/providers/Microsoft.Automation/automationAccounts/LinuxPatchingOpsWEU-AA2", + "location": "westeurope", + "name": "LinuxPatchingOpsWEU-AA2", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-09-24T02:27:35.713+00:00", + "lastModifiedTime": "2017-02-09T21:35:15.373+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/my-dev/providers/Microsoft.Automation/automationAccounts/LinuxPatchJobs", + "location": "westeurope", + "name": "LinuxPatchJobs", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-09-14T22:02:28.223+00:00", + "lastModifiedTime": "2017-02-09T21:35:15.373+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/IgnniteRG/providers/Microsoft.Automation/automationAccounts/MyCoolAAC1", + "location": "westeurope", + "name": "MyCoolAAC1", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-09-22T05:59:22.443+00:00", + "lastModifiedTime": "2017-02-09T21:35:15.373+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/IgnniteRG/providers/Microsoft.Automation/automationAccounts/MyCoolACT1", + "location": "westeurope", + "name": "MyCoolACT1", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-09-22T06:05:18.5+00:00", + "lastModifiedTime": "2017-02-09T21:35:15.373+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/OaaSCSXASVNLMD6CUTP2UKUNHMCSLLJRVOSRAS2HOBKX4B3A3UBNLZWZEA-West-Europe/providers/Microsoft.Automation/automationAccounts/MyTestmyTest-WEU", + "location": "West Europe", + "name": "MyTestmyTest-WEU", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2014-11-12T02:48:51.473+00:00", + "lastModifiedTime": "2017-02-09T21:35:15.373+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/WEDeploy1/providers/Microsoft.Automation/automationAccounts/WEDDeployDSC1", + "location": "westeurope", + "name": "WEDDeployDSC1", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2015-04-28T23:20:01.73+00:00", + "lastModifiedTime": "2017-03-13T08:43:47.36+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/SEADeploy1/providers/Microsoft.Automation/automationAccounts/SEADDeployDSC1", + "location": "southeamyia", + "name": "SEADDeployDSC1", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2015-04-28T19:06:39.1+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.683+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/seaDemo1/providers/Microsoft.Automation/automationAccounts/seaDemoAutomation1", + "location": "southeamyia", + "name": "seaDemoAutomation1", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2015-04-25T01:31:32.15+00:00", + "lastModifiedTime": "2017-02-09T21:35:16.683+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/aadscdemo1/providers/Microsoft.Automation/automationAccounts/AAsnoverDemo2", + "location": "South Central US", + "name": "AAsnoverDemo2", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-01-29T02:30:05.84+00:00", + "lastModifiedTime": "2017-02-09T21:35:17.107+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/SCUSDeploy1/providers/Microsoft.Automation/automationAccounts/SCUSDDeployDSC1", + "location": "southcentralus", + "name": "SCUSDDeployDSC1", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2015-06-04T23:06:44.897+00:00", + "lastModifiedTime": "2017-02-09T21:35:17.107+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/eus2Demo1/providers/Microsoft.Automation/automationAccounts/scusposthydtest1", + "location": "South Central US", + "name": "scusposthydtest1", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2015-06-04T16:44:18.823+00:00", + "lastModifiedTime": "2017-02-09T21:35:17.107+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/OaaSCSXASVNLMD6CUTP2UKUNHMCSLLJRVOSRAS2HOBKX4B3A3UBNLZWZEA-South-Central-US/providers/Microsoft.Automation/automationAccounts/scustestaccount1", + "location": "South Central US", + "name": "scustestaccount1", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2015-05-30T01:54:57.313+00:00", + "lastModifiedTime": "2017-02-09T21:35:17.107+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/UKSRG1/providers/Microsoft.Automation/automationAccounts/AAUKSmyTest1", + "location": "uksouth", + "name": "AAUKSmyTest1", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-02-15T02:31:03.19+00:00", + "lastModifiedTime": "2017-02-15T02:31:03.19+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/Gaurav_machines/providers/Microsoft.Automation/automationAccounts/Tip-WCUS-AutomationAccount", + "location": "westcentralus", + "name": "Tip-WCUS-AutomationAccount", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-03-08T19:53:36.2933333+00:00", + "lastModifiedTime": "2017-03-08T19:53:36.2933333+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/myRG/providers/Microsoft.Automation/automationAccounts/aa-my", + "location": "northeurope", + "name": "aa-my", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-09-21T18:59:56.26+00:00", + "lastModifiedTime": "2017-02-09T21:35:15.457+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/CIDRG/providers/Microsoft.Automation/automationAccounts/CIDAccout1", + "location": "Central India", + "name": "CIDAccout1", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-02-24T20:04:58.867+00:00", + "lastModifiedTime": "2017-02-09T21:35:19.003+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/my/providers/Microsoft.Automation/automationAccounts/aaspntest", + "location": "northcentralus", + "name": "aaspntest", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-12-06T17:18:51.88+00:00", + "lastModifiedTime": "2017-02-09T21:35:19.37+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/my/providers/Microsoft.Automation/automationAccounts/dsccomposite", + "location": "northcentralus", + "name": "dsccomposite", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-02-13T17:37:55.163+00:00", + "lastModifiedTime": "2017-03-06T17:19:15.09+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/my/providers/Microsoft.Automation/automationAccounts/dsclinux", + "location": "northcentralus", + "name": "dsclinux", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2017-03-06T21:50:05.493+00:00", + "lastModifiedTime": "2017-03-06T21:50:05.493+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/my/providers/Microsoft.Automation/automationAccounts/mydsc", + "location": "northcentralus", + "name": "mydsc", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-11-01T17:28:36.197+00:00", + "lastModifiedTime": "2017-02-09T21:35:19.37+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/my/providers/Microsoft.Automation/automationAccounts/mydsc2", + "location": "northcentralus", + "name": "mydsc2", + "type": "Microsoft.Automation/AutomationAccounts", + "properties": { + "creationTime": "2016-11-01T18:50:06.063+00:00", + "lastModifiedTime": "2017-03-11T01:33:13.113+00:00" + } + } + ] + } + } + } +} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/updateAutomationAccount.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/updateAutomationAccount.json new file mode 100644 index 000000000000..af83ead6e8ce --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/updateAutomationAccount.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount9", + "api-version": "2020-01-13-preview", + "parameters": { + "properties": { + "sku": { + "name": "Free" + } + }, + "name": "myAutomationAccount9", + "location": "East US 2" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myAutomationAccount9", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount9", + "type": "Microsoft.Automation/AutomationAccounts", + "location": "East US 2", + "tags": {}, + "etag": null, + "properties": { + "sku": { + "name": "Free", + "family": null, + "capacity": null + }, + "state": "Ok", + "creationTime": "2017-03-26T01:13:43.267+00:00", + "lastModifiedBy": "myEmailId@microsoft.com", + "lastModifiedTime": "2017-03-26T01:13:43.267+00:00" + } + } + } + } +} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json new file mode 100644 index 000000000000..cef12aaee2f4 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json @@ -0,0 +1,352 @@ +{ + "swagger": "2.0", + "info": { + "title": "AutomationManagement", + "version": "2020-01-13-preview", + "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}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}": { + "delete": { + "tags": [ + "HybridRunbookWorkerGroup" + ], + "operationId": "HybridRunbookWorkerGroup_Delete", + "description": "Delete a hybrid runbook worker group.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/hybridrunbookworkergroupoperations" + }, + "x-ms-examples": { + "Delete a hybrid worker group": { + "$ref": "./examples/deleteHybridRunbookWorkerGroup.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "hybridRunbookWorkerGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The hybrid runbook worker group name" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$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" + } + } + } + }, + "get": { + "tags": [ + "HybridRunbookWorkerGroup" + ], + "operationId": "HybridRunbookWorkerGroup_Get", + "description": "Retrieve a hybrid runbook worker group.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/hybridrunbookworkergroupoperations" + }, + "x-ms-examples": { + "Get a hybrid worker group": { + "$ref": "./examples/hybridRunbookWorkerGroupGet.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "hybridRunbookWorkerGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The hybrid runbook worker group name" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/HybridRunbookWorkerGroup" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "HybridRunbookWorkerGroup" + ], + "operationId": "HybridRunbookWorkerGroup_Update", + "description": "Update a hybrid runbook worker group.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/hybridrunbookworkergroupoperations" + }, + "x-ms-examples": { + "Update hybrid worker group": { + "$ref": "./examples/hybridRunbookWorkerGroupUpdate.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "hybridRunbookWorkerGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The hybrid runbook worker group name" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/HybridRunbookWorkerGroupUpdateParameters" + }, + "description": "The hybrid runbook worker group" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/HybridRunbookWorkerGroup" + } + }, + "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}/hybridRunbookWorkerGroups": { + "get": { + "tags": [ + "HybridRunbookWorkerGroup" + ], + "operationId": "HybridRunbookWorkerGroup_ListByAutomationAccount", + "description": "Retrieve a list of hybrid runbook worker groups.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/hybridrunbookworkergroupoperations" + }, + "x-ms-examples": { + "List hybrid worker groups by Automation Account": { + "$ref": "./examples/hybridRunbookWorkerGroupList.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/HybridRunbookWorkerGroupsListResult" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/HybridRunbookWorkerGroup" + } + } + }, + "definitions": { + "RunAsCredentialAssociationProperty": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the credential." + } + }, + "description": "Definition of RunAs credential to use for hybrid worker." + }, + "HybridRunbookWorker": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the worker machine name." + }, + "ip": { + "type": "string", + "description": "Gets or sets the assigned machine IP address." + }, + "registrationTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the registration time of the worker machine.", + "x-nullable": false + }, + "lastSeenDateTime": { + "type": "string", + "format": "date-time", + "description": "Last Heartbeat from the Worker", + "x-nullable": false + } + }, + "description": "Definition of hybrid runbook worker." + }, + "HybridRunbookWorkerGroup": { + "properties": { + "id": { + "type": "string", + "description": "Gets or sets the id of the resource." + }, + "name": { + "type": "string", + "description": "Gets or sets the name of the group." + }, + "hybridRunbookWorkers": { + "type": "array", + "items": { + "$ref": "#/definitions/HybridRunbookWorker" + }, + "description": "Gets or sets the list of hybrid runbook workers." + }, + "credential": { + "$ref": "#/definitions/RunAsCredentialAssociationProperty", + "description": "Sets the credential of a worker group." + }, + "groupType": { + "type": "string", + "description": "Type of the HybridWorkerGroup.", + "enum": [ + "User", + "System" + ], + "x-ms-enum": { + "name": "GroupTypeEnum", + "modelAsString": true + } + } + }, + "description": "Definition of hybrid runbook worker group." + }, + "HybridRunbookWorkerGroupsListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/HybridRunbookWorkerGroup" + }, + "description": "Gets or sets a list of hybrid runbook worker groups." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + } + }, + "description": "The response model for the list hybrid runbook worker groups." + }, + "HybridRunbookWorkerGroupUpdateParameters": { + "properties": { + "credential": { + "$ref": "#/definitions/RunAsCredentialAssociationProperty", + "description": "Sets the credential of a worker group." + } + }, + "description": "Parameters supplied to the update operation." + } + }, + "parameters": {} +} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/operations.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/operations.json new file mode 100644 index 000000000000..a567d5e8cca6 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/operations.json @@ -0,0 +1,112 @@ +{ + "swagger": "2.0", + "info": { + "title": "AutomationManagement", + "version": "2019-06-01", + "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": { + "/providers/Microsoft.Automation/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists all of the available Automation REST API operations.", + "operationId": "Operations_List", + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + } + }, + "definitions": { + "OperationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "description": "List of Automation operations supported by the Automation resource provider." + } + }, + "description": "The response model for the list of Automation operations" + }, + "Operation": { + "description": "Automation REST API operation", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}", + "type": "string" + }, + "display": { + "properties": { + "provider": { + "description": "Service provider: Microsoft.Automation", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed: Runbooks, Jobs etc.", + "type": "string" + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string" + } + }, + "description": "Provider, Resource and Operation values" + } + } + } + } +} diff --git a/specification/automation/resource-manager/readme.md b/specification/automation/resource-manager/readme.md index 333ec8249cba..1dfe30316319 100644 --- a/specification/automation/resource-manager/readme.md +++ b/specification/automation/resource-manager/readme.md @@ -232,6 +232,18 @@ input-file: - Microsoft.Automation/stable/2015-10-31/webhook.json ``` +### Tag: package-2021-06-22 + +These settings apply only when `--tag=package-2021-06-22` is specified on the command line. + +``` yaml $(tag) == 'package-2021-06-22' +input-file: +- Microsoft.Automation/stable/2021-06-22/account.json +- Microsoft.Automation/stable/2021-06-22/hybridRunbookWorker.json +- Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json +- Microsoft.Automation/stable/2021-06-22/operations.json +``` + --- ## Suppression ``` yaml From dce43fd33b3d50bd8db0f194ff8e28c3b3e2d0bb Mon Sep 17 00:00:00 2001 From: Bhargava Chary Chollaty Date: Thu, 24 Jun 2021 00:22:42 +0530 Subject: [PATCH 02/15] Changes For New Api-Version --- .../stable/2021-06-22/account.json | 36 +- .../createOrUpdateAutomationAccount.json | 2 +- .../examples/deleteAutomationAccount.json | 2 +- .../examples/deleteHybridRunbookWorker.json | 14 + .../deleteHybridRunbookWorkerGroup.json | 2 +- .../deserializeGraphRunbookContent.json | 28 ++ .../examples/getAutomationAccount.json | 2 +- .../examples/getHybridRunbookWorker.json | 36 ++ .../examples/getHybridRunbookWorkerGroup.json | 32 ++ .../getStatisticsOfAutomationAccount.json | 2 +- .../getUsagesOfAutomationAccount.json | 2 +- .../examples/hybridRunbookWorkerGroupGet.json | 28 -- .../hybridRunbookWorkerGroupList.json | 32 -- .../examples/listAutomationAccountKeys.json | 2 +- ...listAutomationAccountsByResourceGroup.json | 2 +- .../listAutomationAccountsBySubscription.json | 2 +- .../examples/listHybridRunbookWorker.json | 60 +++ .../listHybridRunbookWorkerGroup.json | 34 ++ .../examples/moveHybridRunbookWorker.json | 16 + .../examples/putHybridRunbookWorker.json | 41 ++ .../examples/putHybridRunbookWorkerGroup.json | 39 ++ .../serializeGraphRunbookContent.json | 24 + .../examples/updateAutomationAccount.json | 2 +- ...on => updateHybridRunbookWorkerGroup.json} | 27 +- .../2021-06-22/hybridRunbookWorker.json | 469 ++++++++++++++++++ .../2021-06-22/hybridRunbookWorkerGroup.json | 150 ++++-- .../stable/2021-06-22/operations.json | 100 +++- 27 files changed, 1045 insertions(+), 141 deletions(-) create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deleteHybridRunbookWorker.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deserializeGraphRunbookContent.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getHybridRunbookWorker.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getHybridRunbookWorkerGroup.json delete mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/hybridRunbookWorkerGroupGet.json delete mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/hybridRunbookWorkerGroupList.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listHybridRunbookWorker.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listHybridRunbookWorkerGroup.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/moveHybridRunbookWorker.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/putHybridRunbookWorker.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/putHybridRunbookWorkerGroup.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/serializeGraphRunbookContent.json rename specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/{hybridRunbookWorkerGroupUpdate.json => updateHybridRunbookWorkerGroup.json} (52%) create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorker.json diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/account.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/account.json index 07bd47241f77..258a83c7bd49 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/account.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/account.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "AutomationManagement", - "version": "2020-01-13-preview", + "version": "2021-06-22", "x-ms-code-generation-settings": { "useDateTimeOffset": true } @@ -84,7 +84,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -142,7 +142,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -185,7 +185,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -228,7 +228,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -270,7 +270,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -310,7 +310,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -365,7 +365,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -413,7 +413,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -458,7 +458,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -479,6 +479,10 @@ }, "identity": { "$ref": "#/definitions/Identity" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "Resource system metadata." } }, "allOf": [ @@ -544,6 +548,14 @@ "publicNetworkAccess": { "type": "boolean", "description": "Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is allowed from the public internet" + }, + "disableLocalAuth": { + "type": "boolean", + "description": "Indicates whether requests using non-AAD authentication are blocked" + }, + "automationHybridServiceUrl": { + "type": "string", + "description": "URL of automation hybrid service which is used for hybrid worker on-boarding." } }, "description": "Definition of the account property." @@ -803,6 +815,10 @@ "publicNetworkAccess": { "type": "boolean", "description": "Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is allowed from the public internet" + }, + "disableLocalAuth": { + "type": "boolean", + "description": "Indicates whether requests using non-AAD authentication are blocked" } }, "description": "The parameters supplied to the update account properties." diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/createOrUpdateAutomationAccount.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/createOrUpdateAutomationAccount.json index 7ee40bb4f2a0..5c3be6793654 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/createOrUpdateAutomationAccount.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/createOrUpdateAutomationAccount.json @@ -3,7 +3,7 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "automationAccountName": "myAutomationAccount9", - "api-version": "2020-01-13-preview", + "api-version": "2021-06-22", "parameters": { "properties": { "sku": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deleteAutomationAccount.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deleteAutomationAccount.json index 8408e544e159..0e08dc0f4dcf 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deleteAutomationAccount.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deleteAutomationAccount.json @@ -3,7 +3,7 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "automationAccountName": "myAutomationAccount9", - "api-version": "2020-01-13-preview" + "api-version": "2021-06-22" }, "responses": { "200": {}, diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deleteHybridRunbookWorker.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deleteHybridRunbookWorker.json new file mode 100644 index 000000000000..db13342cd22d --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deleteHybridRunbookWorker.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount20", + "hybridRunbookWorkerGroupName": "myGroup", + "hybridRunbookWorkerId": "c010ad12-ef14-4a2a-aa9e-ef22c4745ddd", + "api-version": "2021-06-22" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deleteHybridRunbookWorkerGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deleteHybridRunbookWorkerGroup.json index 08f3e0013b48..f1be04d1815f 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deleteHybridRunbookWorkerGroup.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deleteHybridRunbookWorkerGroup.json @@ -4,7 +4,7 @@ "resourceGroupName": "rg", "automationAccountName": "myAutomationAccount20", "hybridRunbookWorkerGroupName": "myGroup", - "api-version": "2020-01-13-preview" + "api-version": "2021-06-22" }, "responses": { "200": {} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deserializeGraphRunbookContent.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deserializeGraphRunbookContent.json new file mode 100644 index 000000000000..ecd78bc01751 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deserializeGraphRunbookContent.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "MyAutomationAccount", + "api-version": "2021-06-22", + "parameters": { + "rawContent": { + "schemaVersion": "1.10", + "runbookDefinition": "AAEAAADAQAAAAAAAAAMAgAAAGJPcmNoZXN0cmF0b3IuR3JhcGhSdW5ib29rLk1vZGVsLCBWZXJzaW9uPTcuMy4wLjAsIEN1bHR....", + "runbookType": "GraphPowerShell" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "rawContent": { + "schemaVersion": "1.10", + "runbookDefinition": "AAEAAADAQAAAAAAAAAMAgAAAGJPcmNoZXN0cmF0b3IuR3JhcGhSdW5ib29rLk1vZGVsLCBWZXJzaW9uPTcuMy4wLjAsIEN1bHR....", + "runbookType": "GraphPowerShell" + }, + "graphRunbookJson": "" + } + } + } +} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getAutomationAccount.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getAutomationAccount.json index 3a3aff6bfa68..851748039dcf 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getAutomationAccount.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getAutomationAccount.json @@ -3,7 +3,7 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "automationAccountName": "myAutomationAccount9", - "api-version": "2020-01-13-preview" + "api-version": "2021-06-22" }, "responses": { "200": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getHybridRunbookWorker.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getHybridRunbookWorker.json new file mode 100644 index 000000000000..850c00f95044 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getHybridRunbookWorker.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "testaccount", + "hybridRunbookWorkerGroupName": "TestHybridGroup", + "hybridRunbookWorkerId": "c010ad12-ef14-4a2a-aa9e-ef22c4745ddd", + "api-version": "2021-06-22" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup/hybridRunbookWorkers/c010ad12-ef14-4a2a-aa9e-ef22c4745ddd", + "name": "c010ad12-ef14-4a2a-aa9e-ef22c4745ddd", + "type": "Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups/HybridRunbookWorkers", + "properties": { + "ip": "10.0.0.0", + "registeredDateTime": "2018-04-24T16:30:55+00:00", + "lastSeenDateTime": "2018-04-24T16:30:55+00:00", + "vmResourceId": "/subscriptions/vmsubid/resourceGroups/vmrg/providers/Microsoft.Compute/virtualMachines/vmname", + "workerName": "vmname", + "workerType": "HybridV2" + }, + "systemData": { + "createdBy": "foo@contoso.com", + "createdByType": "User", + "createdAt": "2018-04-24T16:30:55+00:00", + "lastModifiedBy": "foo@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2018-04-24T16:30:55+00:00" + } + } + } + } +} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getHybridRunbookWorkerGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getHybridRunbookWorkerGroup.json new file mode 100644 index 000000000000..f3fb236389f7 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getHybridRunbookWorkerGroup.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "testaccount", + "hybridRunbookWorkerGroupName": "TestHybridGroup", + "api-version": "2021-06-22" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup", + "name": "TestHybridGroup", + "type": "Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups", + "properties": { + "workerCredential": { + "name": "myRunAsCredentialName" + } + }, + "systemData": { + "createdBy": "foo@contoso.com", + "createdByType": "User", + "createdAt": "2018-04-24T16:30:55+00:00", + "lastModifiedBy": "foo@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2018-04-24T16:30:55+00:00" + } + } + } + } +} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getStatisticsOfAutomationAccount.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getStatisticsOfAutomationAccount.json index 276b48674fb3..920310d0bfa6 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getStatisticsOfAutomationAccount.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getStatisticsOfAutomationAccount.json @@ -3,7 +3,7 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "automationAccountName": "myAutomationAccount11", - "api-version": "2020-01-13-preview" + "api-version": "2021-06-22" }, "responses": { "200": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getUsagesOfAutomationAccount.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getUsagesOfAutomationAccount.json index ea3eb445b316..dd023de112e9 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getUsagesOfAutomationAccount.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getUsagesOfAutomationAccount.json @@ -3,7 +3,7 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "automationAccountName": "myAutomationAccount11", - "api-version": "2020-01-13-preview" + "api-version": "2021-06-22" }, "responses": { "200": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/hybridRunbookWorkerGroupGet.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/hybridRunbookWorkerGroupGet.json deleted file mode 100644 index 8f2669e0c204..000000000000 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/hybridRunbookWorkerGroupGet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "resourceGroupName": "rg", - "automationAccountName": "testaccount", - "hybridRunbookWorkerGroupName": "TestHybridGroup", - "api-version": "2020-01-13-preview" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup", - "name": "TestHybridGroup", - "hybridRunbookWorkers": [ - { - "name": "TestHybridWorker", - "ip": "100.1.1.1", - "registrationTime": "2017-03-24T12:43:45.0146578-07:00" - } - ], - "credential": { - "name": "myRunAsCredentialName" - } - } - } - } -} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/hybridRunbookWorkerGroupList.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/hybridRunbookWorkerGroupList.json deleted file mode 100644 index 6680b9b207d2..000000000000 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/hybridRunbookWorkerGroupList.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "resourceGroupName": "udtest", - "automationAccountName": "testaccount", - "hybridRunbookWorkerGroupName": "TestWorkerGroup", - "api-version": "2020-01-13-preview" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "id": "/subscriptions/subid/resourceGroups/udtest/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestWorkerGroup", - "name": "TestWorkerGroup", - "hybridRunbookWorkers": [ - { - "name": "TestMachine", - "ip": "134.1.1.1", - "registrationTime": "2017-03-24T12:43:43.053855-07:00" - } - ], - "credential": { - "name": "myRunAsCredentialName" - } - } - ] - } - } - } -} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountKeys.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountKeys.json index 05f03ce1ddd2..78e1bb600432 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountKeys.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountKeys.json @@ -3,7 +3,7 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "automationAccountName": "MyAutomationAccount", - "api-version": "2020-01-13-preview" + "api-version": "2021-06-22" }, "responses": { "200": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountsByResourceGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountsByResourceGroup.json index eb1f5ce1773b..64c440c7590d 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountsByResourceGroup.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountsByResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "subid", "resourceGroupName": "rg", - "api-version": "2020-01-13-preview" + "api-version": "2021-06-22" }, "responses": { "200": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountsBySubscription.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountsBySubscription.json index 40f294f6c6b0..cb2c0c9a275b 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountsBySubscription.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountsBySubscription.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "subid", - "api-version": "2020-01-13-preview" + "api-version": "2021-06-22" }, "responses": { "200": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listHybridRunbookWorker.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listHybridRunbookWorker.json new file mode 100644 index 000000000000..afbb341d3c0a --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listHybridRunbookWorker.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "testaccount", + "hybridRunbookWorkerGroupName": "TestHybridGroup", + "api-version": "2021-06-22" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup/hybridRunbookWorkers/c010ad12-ef14-4a2a-aa9e-ef22c4745ddd", + "name": "c010ad12-ef14-4a2a-aa9e-ef22c4745ddd", + "type": "Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups/HybridRunbookWorkers", + "properties": { + "ip": "10.0.0.0", + "registeredDateTime": "2018-04-24T16:30:55+00:00", + "lastSeenDateTime": "2018-04-24T16:30:55+00:00", + "vmResourceId": "/subscriptions/vmsubid/resourceGroups/vmrg/providers/Microsoft.Compute/virtualMachines/vmname", + "workerName": "vmname", + "workerType": "HybridV2" + }, + "systemData": { + "createdBy": "foo@contoso.com", + "createdByType": "User", + "createdAt": "2018-04-24T16:30:55+00:00", + "lastModifiedBy": "foo@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2018-04-24T16:30:55+00:00" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup/hybridRunbookWorkers/e18fe971-75b1-4351-987f-6fe3604bc721", + "name": "e18fe971-75b1-4351-987f-6fe3604bc721", + "type": "Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups/HybridRunbookWorkers", + "properties": { + "ip": "10.0.0.1", + "registeredDateTime": "2018-04-25T16:30:55+00:00", + "lastSeenDateTime": "2018-04-25T16:30:55+00:00", + "vmResourceId": "", + "workerName": "myworker", + "workerType": "HybridV1" + }, + "systemData": { + "createdBy": "foo@contoso.com", + "createdByType": "User", + "createdAt": "2018-04-24T16:30:55+00:00", + "lastModifiedBy": "foo@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2018-04-24T16:30:55+00:00" + } + } + ] + } + } + } +} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listHybridRunbookWorkerGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listHybridRunbookWorkerGroup.json new file mode 100644 index 000000000000..557ed54b7caf --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listHybridRunbookWorkerGroup.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "testaccount", + "api-version": "2021-06-22" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup", + "name": "TestHybridGroup", + "properties": { + "workerCredential": { + "name": "myRunAsCredentialName" + } + }, + "systemData": { + "createdBy": "foo@contoso.com", + "createdByType": "User", + "createdAt": "2018-04-24T16:30:55+00:00", + "lastModifiedBy": "foo@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2018-04-24T16:30:55+00:00" + } + } + ] + } + } + } +} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/moveHybridRunbookWorker.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/moveHybridRunbookWorker.json new file mode 100644 index 000000000000..542edee2a5a4 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/moveHybridRunbookWorker.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "testaccount", + "hybridRunbookWorkerGroupName": "TestHybridGroup", + "hybridRunbookWorkerId": "c010ad12-ef14-4a2a-aa9e-ef22c4745ddd", + "api-version": "2021-06-22", + "HybridRunbookWorkerMoveParameters": { + "hybridRunbookWorkerGroupName": "TestHybridGroup2" + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/putHybridRunbookWorker.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/putHybridRunbookWorker.json new file mode 100644 index 000000000000..42a851459b8d --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/putHybridRunbookWorker.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "testaccount", + "hybridRunbookWorkerGroupName": "TestHybridGroup", + "hybridRunbookWorkerId": "c010ad12-ef14-4a2a-aa9e-ef22c4745ddd", + "api-version": "2021-06-22", + "HybridRunbookWorkerCreationParameters": { + "properties": { + "vmResourceId": "/subscriptions/vmsubid/resourceGroups/vmrg/providers/Microsoft.Compute/virtualMachines/vmname" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup/hybridRunbookWorkers/c010ad12-ef14-4a2a-aa9e-ef22c4745ddd", + "name": "c010ad12-ef14-4a2a-aa9e-ef22c4745ddd", + "type": "Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups/HybridRunbookWorkers", + "properties": { + "ip": "10.0.0.0", + "registeredDateTime": "2018-04-24T16:30:55+00:00", + "lastSeenDateTime": "2018-04-24T16:30:55+00:00", + "vmResourceId": "/subscriptions/vmsubid/resourceGroups/vmrg/providers/Microsoft.Compute/virtualMachines/vmname", + "workerName": "vmname", + "workerType": "HybridV2" + }, + "systemData": { + "createdBy": "foo@contoso.com", + "createdByType": "User", + "createdAt": "2018-04-24T16:30:55+00:00", + "lastModifiedBy": "foo@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2018-04-24T16:30:55+00:00" + } + } + } + } +} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/putHybridRunbookWorkerGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/putHybridRunbookWorkerGroup.json new file mode 100644 index 000000000000..f70a01ef65f1 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/putHybridRunbookWorkerGroup.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "testaccount", + "hybridRunbookWorkerGroupName": "TestHybridGroup", + "api-version": "2021-06-22", + "HybridRunbookWorkerGroupCreationParameters": { + "name": "TestHybridGroup", + "properties": { + "workerCredential": { + "name": "myRunAsCredentialName" + } + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup", + "name": "TestHybridGroup", + "properties": { + "workerCredential": { + "name": "myRunAsCredentialName" + } + }, + "systemData": { + "createdBy": "foo@contoso.com", + "createdByType": "User", + "createdAt": "2018-04-24T16:30:55+00:00", + "lastModifiedBy": "foo@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2018-04-24T16:30:55+00:00" + } + } + } + } +} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/serializeGraphRunbookContent.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/serializeGraphRunbookContent.json new file mode 100644 index 000000000000..27c51df8668c --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/serializeGraphRunbookContent.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "MyAutomationAccount", + "api-version": "2021-06-22", + "parameters": { + "graphRunbookJson": "" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "rawContent": { + "schemaVersion": "1.10", + "runbookDefinition": "AAEAAADAQAAAAAAAAAMAgAAAGJPcmNoZXN0cmF0b3IuR3JhcGhSdW5ib29rLk1vZGVsLCBWZXJzaW9uPTcuMy4wLjAsIEN1bHR....", + "runbookType": "GraphPowerShell" + }, + "graphRunbookJson": "" + } + } + } +} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/updateAutomationAccount.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/updateAutomationAccount.json index af83ead6e8ce..74b4bec6d8f3 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/updateAutomationAccount.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/updateAutomationAccount.json @@ -3,7 +3,7 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "automationAccountName": "myAutomationAccount9", - "api-version": "2020-01-13-preview", + "api-version": "2021-06-22", "parameters": { "properties": { "sku": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/hybridRunbookWorkerGroupUpdate.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/updateHybridRunbookWorkerGroup.json similarity index 52% rename from specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/hybridRunbookWorkerGroupUpdate.json rename to specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/updateHybridRunbookWorkerGroup.json index 9e36ecdce2be..2e13693318ff 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/hybridRunbookWorkerGroupUpdate.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/updateHybridRunbookWorkerGroup.json @@ -4,10 +4,12 @@ "resourceGroupName": "rg", "automationAccountName": "testaccount", "hybridRunbookWorkerGroupName": "TestHybridGroup", - "api-version": "2020-01-13-preview", + "api-version": "2021-06-22", "parameters": { - "credential": { - "name": "myRunAsCredentialName" + "properties": { + "workerCredential": { + "name": "myRunAsCredentialName" + } } } }, @@ -17,15 +19,18 @@ "body": { "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup", "name": "TestHybridGroup", - "hybridRunbookWorkers": [ - { - "name": "TestHybridWorker", - "ip": "100.1.1.1", - "registrationTime": "2017-03-24T12:43:45.0146578-07:00" + "properties": { + "workerCredential": { + "name": "myRunAsCredentialName" } - ], - "credential": { - "name": "myRunAsCredentialName" + }, + "systemData": { + "createdBy": "foo@contoso.com", + "createdByType": "User", + "createdAt": "2018-04-24T16:30:55+00:00", + "lastModifiedBy": "foo@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2018-04-24T16:30:55+00:00" } } } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorker.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorker.json new file mode 100644 index 000000000000..ee1af2da8f69 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorker.json @@ -0,0 +1,469 @@ +{ + "swagger": "2.0", + "info": { + "title": "AutomationManagement", + "version": "2021-06-22", + "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}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}": { + "delete": { + "tags": [ + "HybridRunbookWorker" + ], + "operationId": "HybridRunbookWorker_Delete", + "description": "Delete a hybrid runbook worker.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/hybridrunbookworkeroperations" + }, + "x-ms-examples": { + "Delete a V2 hybrid runbook worker": { + "$ref": "./examples/deleteHybridRunbookWorker.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "hybridRunbookWorkerGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The hybrid runbook worker group name" + }, + { + "name": "hybridRunbookWorkerId", + "in": "path", + "required": true, + "type": "string", + "description": "The hybrid runbook worker id" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "" + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "HybridRunbookWorker" + ], + "operationId": "HybridRunbookWorker_Get", + "description": "Retrieve a hybrid runbook worker.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/hybridrunbookworkeroperations" + }, + "x-ms-examples": { + "Get a V2 hybrid runbook worker": { + "$ref": "./examples/getHybridRunbookWorker.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "hybridRunbookWorkerGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The hybrid runbook worker group name" + }, + { + "name": "hybridRunbookWorkerId", + "in": "path", + "required": true, + "type": "string", + "description": "The hybrid runbook worker id" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/HybridRunbookWorker" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "HybridRunbookWorker" + ], + "operationId": "HybridRunbookWorker_Put", + "description": "Create a hybrid runbook worker.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/hybridrunbookworkeroperations" + }, + "x-ms-examples": { + "Create a V2 hybrid runbook worker": { + "$ref": "./examples/putHybridRunbookWorker.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "hybridRunbookWorkerGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The hybrid runbook worker group name" + }, + { + "name": "hybridRunbookWorkerId", + "in": "path", + "required": true, + "type": "string", + "description": "The hybrid runbook worker id" + }, + { + "name": "HybridRunbookWorkerCreationParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/HybridRunbookWorkerCreateParameters" + }, + "description": "The create or update parameters for hybrid runbook worker." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/HybridRunbookWorker" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}/move": { + "post": { + "tags": [ + "HybridRunbookWorker" + ], + "operationId": "HybridRunbookWorker_Move", + "description": "Move a hybrid worker to a different group.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/hybridrunbookworkeroperations" + }, + "x-ms-examples": { + "Move a V2 hybrid worker to a different group": { + "$ref": "./examples/moveHybridRunbookWorker.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "hybridRunbookWorkerGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The hybrid runbook worker group name" + }, + { + "name": "hybridRunbookWorkerId", + "in": "path", + "required": true, + "type": "string", + "description": "The hybrid runbook worker id" + }, + { + "name": "HybridRunbookWorkerMoveParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/HybridRunbookWorkerMoveParameters" + }, + "description": "The hybrid runbook worker move parameters" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers": { + "get": { + "tags": [ + "HybridRunbookWorker" + ], + "operationId": "HybridRunbookWorker_ListByHybridRunbookWorkerGroup", + "description": "Retrieve a list of hybrid runbook workers.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/hybridrunbookworkeroperations" + }, + "x-ms-examples": { + "List hybrid workers by hybrid runbook worker group": { + "$ref": "./examples/listHybridRunbookWorker.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "hybridRunbookWorkerGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The hybrid runbook worker group name" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/HybridRunbookWorkersListResult" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/HybridRunbookWorker" + } + } + }, + "definitions": { + "HybridRunbookWorker": { + "properties": { + "properties": { + "$ref": "#/definitions/HybridRunbookWorkerProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the hybrid worker group properties." + }, + "systemData": { + "$ref": "../../common/v1/definitions.json#/definitions/systemData", + "description": "Resource system metadata." + } + }, + "allOf": [ + { + "$ref": "../../common/v1/definitions.json#/definitions/Resource" + } + ], + "description": "Definition of hybrid runbook worker." + }, + "HybridRunbookWorkerProperties": { + "type": "object", + "properties": { + "ip": { + "type": "string", + "description": "Gets or sets the assigned machine IP address." + }, + "registeredDateTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the registration time of the worker machine.", + "x-nullable": false + }, + "lastSeenDateTime": { + "type": "string", + "format": "date-time", + "description": "Last Heartbeat from the Worker", + "x-nullable": false + }, + "vmResourceId": { + "type": "string", + "description": "Azure Resource Manager Id for a virtual machine." + }, + "workerType": { + "type": "string", + "description": "Type of the HybridWorker.", + "enum": [ + "HybridV1", + "HybridV2" + ], + "x-ms-enum": { + "name": "WorkerTypeEnum", + "modelAsString": true + } + }, + "workerName": { + "type": "string", + "description": "Name of the HybridWorker." + } + }, + "description": "Definition of hybrid runbook worker property." + }, + "HybridRunbookWorkersListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/HybridRunbookWorker" + }, + "description": "Gets or sets a list of hybrid runbook workers." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + } + }, + "description": "The response model for the list hybrid runbook workers." + }, + "HybridRunbookWorkerMoveParameters": { + "type": "object", + "properties": { + "hybridRunbookWorkerGroupName": { + "type": "string", + "description": "Gets or sets the target hybrid runbook worker group." + } + }, + "description": "Parameters supplied to move hybrid worker operation." + }, + "HybridRunbookWorkerCreateOrUpdateParameters": { + "type": "object", + "properties": { + "vmResourceId": { + "type": "string", + "description": "Azure Resource Manager Id for a virtual machine." + } + }, + "description": "The parameters supplied to the create or update hybrid runbook worker operation." + }, + "HybridRunbookWorkerCreateParameters": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/HybridRunbookWorkerCreateOrUpdateParameters", + "x-ms-client-flatten": true, + "description": "Gets or sets hybrid runbook worker group create or update properties." + }, + "name": { + "type": "string", + "description": "Gets or sets the name of the resource." + } + }, + "required": [ + "properties" + ], + "description": "The parameters supplied to the create hybrid runbook worker operation." + } + }, + "parameters": {} +} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json index cef12aaee2f4..901e80b30ca0 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "AutomationManagement", - "version": "2020-01-13-preview", + "version": "2021-06-22", "x-ms-code-generation-settings": { "useDateTimeOffset": true } @@ -79,7 +79,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -95,7 +95,7 @@ }, "x-ms-examples": { "Get a hybrid worker group": { - "$ref": "./examples/hybridRunbookWorkerGroupGet.json" + "$ref": "./examples/getHybridRunbookWorkerGroup.json" } }, "parameters": [ @@ -129,7 +129,66 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "HybridRunbookWorkerGroup" + ], + "operationId": "HybridRunbookWorkerGroup_Put", + "description": "Create a hybrid runbook worker group.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/hybridrunbookworkergroupoperations" + }, + "x-ms-examples": { + "Get a hybrid worker group": { + "$ref": "./examples/putHybridRunbookWorkerGroup.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "hybridRunbookWorkerGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The hybrid runbook worker group name" + }, + { + "name": "HybridRunbookWorkerGroupCreationParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/HybridRunbookWorkerGroupCreateOrUpdateParameters" + }, + "description": "The create or update parameters for hybrid runbook worker group." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/HybridRunbookWorkerGroup" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -145,7 +204,7 @@ }, "x-ms-examples": { "Update hybrid worker group": { - "$ref": "./examples/hybridRunbookWorkerGroupUpdate.json" + "$ref": "./examples/updateHybridRunbookWorkerGroup.json" } }, "parameters": [ @@ -167,7 +226,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/HybridRunbookWorkerGroupUpdateParameters" + "$ref": "#/definitions/HybridRunbookWorkerGroupCreateOrUpdateParameters" }, "description": "The hybrid runbook worker group" }, @@ -188,7 +247,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -206,7 +265,7 @@ }, "x-ms-examples": { "List hybrid worker groups by Automation Account": { - "$ref": "./examples/hybridRunbookWorkerGroupList.json" + "$ref": "./examples/listHybridRunbookWorkerGroup.json" } }, "parameters": [ @@ -240,7 +299,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -261,49 +320,29 @@ }, "description": "Definition of RunAs credential to use for hybrid worker." }, - "HybridRunbookWorker": { + "HybridRunbookWorkerGroup": { "properties": { - "name": { - "type": "string", - "description": "Gets or sets the worker machine name." - }, - "ip": { - "type": "string", - "description": "Gets or sets the assigned machine IP address." - }, - "registrationTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the registration time of the worker machine.", - "x-nullable": false + "properties": { + "$ref": "#/definitions/HybridRunbookWorkerGroupProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the hybrid worker group properties." }, - "lastSeenDateTime": { - "type": "string", - "format": "date-time", - "description": "Last Heartbeat from the Worker", - "x-nullable": false + "systemData": { + "$ref": "../../common/v1/definitions.json#/definitions/systemData", + "description": "Resource system metadata." } }, - "description": "Definition of hybrid runbook worker." + "allOf": [ + { + "$ref": "../../common/v1/definitions.json#/definitions/Resource" + } + ], + "description": "Definition of hybrid runbook worker group." }, - "HybridRunbookWorkerGroup": { + "HybridRunbookWorkerGroupProperties": { + "type": "object", "properties": { - "id": { - "type": "string", - "description": "Gets or sets the id of the resource." - }, - "name": { - "type": "string", - "description": "Gets or sets the name of the group." - }, - "hybridRunbookWorkers": { - "type": "array", - "items": { - "$ref": "#/definitions/HybridRunbookWorker" - }, - "description": "Gets or sets the list of hybrid runbook workers." - }, - "credential": { + "workerCredential": { "$ref": "#/definitions/RunAsCredentialAssociationProperty", "description": "Sets the credential of a worker group." }, @@ -320,7 +359,7 @@ } } }, - "description": "Definition of hybrid runbook worker group." + "description": "Definition of hybrid runbook worker group property." }, "HybridRunbookWorkerGroupsListResult": { "properties": { @@ -340,12 +379,27 @@ }, "HybridRunbookWorkerGroupUpdateParameters": { "properties": { - "credential": { + "workerCredential": { "$ref": "#/definitions/RunAsCredentialAssociationProperty", "description": "Sets the credential of a worker group." } }, "description": "Parameters supplied to the update operation." + }, + "HybridRunbookWorkerGroupCreateOrUpdateParameters": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/HybridRunbookWorkerGroupUpdateParameters", + "x-ms-client-flatten": true, + "description": "Gets or sets hybrid runbook worker group create or update properties." + }, + "name": { + "type": "string", + "description": "Gets or sets the name of the resource." + } + }, + "description": "The parameters supplied to the create or update hybrid runbook worker group operation." } }, "parameters": {} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/operations.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/operations.json index a567d5e8cca6..581b44a008bf 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/operations.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/operations.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "AutomationManagement", - "version": "2019-06-01", + "version": "2021-06-22", "x-ms-code-generation-settings": { "useDateTimeOffset": true } @@ -58,7 +58,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -66,6 +66,60 @@ "nextLinkName": null } } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/convertGraphRunbookContent": { + "post": { + "tags": [ + "Operations" + ], + "description": "Post operation to serialize or deserialize GraphRunbookContent", + "operationId": "convertGraphRunbookContent", + "x-ms-examples": { + "Get Graphical raw runbook content from graphical runbook JSON object": { + "$ref": "./examples/serializeGraphRunbookContent.json" + }, + "Get Graphical runbook content from raw content": { + "$ref": "./examples/deserializeGraphRunbookContent.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "description": "Input data describing the graphical runbook.", + "required": true, + "schema": { + "$ref": "#/definitions/GraphicalRunbookContent" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GraphicalRunbookContent" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } } }, "definitions": { @@ -107,6 +161,48 @@ "description": "Provider, Resource and Operation values" } } + }, + "GraphicalRunbookContent": { + "type": "object", + "description": "Graphical Runbook Content", + "properties": { + "rawContent": { + "x-nullable": true, + "description": "Raw graphical Runbook content.", + "$ref": "#/definitions/RawGraphicalRunbookContent" + }, + "graphRunbookJson": { + "type": "string", + "x-nullable": true, + "description": "Graphical Runbook content as JSON" + } + } + }, + "RawGraphicalRunbookContent": { + "type": "object", + "description": "Raw Graphical Runbook content", + "properties": { + "schemaVersion": { + "type": "string", + "description": "Schema version of the serializer." + }, + "runbookDefinition": { + "type": "string", + "description": "Serialized Graphical runbook" + }, + "runbookType": { + "type": "string", + "description": "Runbook Type", + "enum": [ + "GraphPowerShell", + "GraphPowerShellWorkflow" + ], + "x-ms-enum": { + "name": "GraphRunbookType", + "modelAsString": true + } + } + } } } } From ba0b451469cdb1be67a586da2c022197b58ce117 Mon Sep 17 00:00:00 2001 From: Bhargava Chary Chollaty Date: Thu, 24 Jun 2021 00:30:47 +0530 Subject: [PATCH 03/15] Updated SystemData --- .../stable/2021-06-22/hybridRunbookWorker.json | 2 +- .../stable/2021-06-22/hybridRunbookWorkerGroup.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorker.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorker.json index ee1af2da8f69..25eeae1e8ea3 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorker.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorker.json @@ -356,7 +356,7 @@ "description": "Gets or sets the hybrid worker group properties." }, "systemData": { - "$ref": "../../common/v1/definitions.json#/definitions/systemData", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", "description": "Resource system metadata." } }, diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json index 901e80b30ca0..2867913cf48b 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json @@ -328,7 +328,7 @@ "description": "Gets or sets the hybrid worker group properties." }, "systemData": { - "$ref": "../../common/v1/definitions.json#/definitions/systemData", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", "description": "Resource system metadata." } }, From ed31704f1b4858ba7c2fa9e4a201b5149b2f4b54 Mon Sep 17 00:00:00 2001 From: Bhargava Chary Chollaty Date: Thu, 24 Jun 2021 13:05:04 +0530 Subject: [PATCH 04/15] Updated Swagger Definition --- .../2021-06-22/examples/getHybridRunbookWorkerGroup.json | 2 +- .../2021-06-22/examples/listHybridRunbookWorkerGroup.json | 2 +- .../2021-06-22/examples/putHybridRunbookWorkerGroup.json | 4 ++-- .../2021-06-22/examples/updateHybridRunbookWorkerGroup.json | 4 ++-- .../stable/2021-06-22/hybridRunbookWorkerGroup.json | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getHybridRunbookWorkerGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getHybridRunbookWorkerGroup.json index f3fb236389f7..030be29b574a 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getHybridRunbookWorkerGroup.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getHybridRunbookWorkerGroup.json @@ -14,7 +14,7 @@ "name": "TestHybridGroup", "type": "Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups", "properties": { - "workerCredential": { + "credential": { "name": "myRunAsCredentialName" } }, diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listHybridRunbookWorkerGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listHybridRunbookWorkerGroup.json index 557ed54b7caf..abdf89b20bac 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listHybridRunbookWorkerGroup.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listHybridRunbookWorkerGroup.json @@ -14,7 +14,7 @@ "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup", "name": "TestHybridGroup", "properties": { - "workerCredential": { + "credential": { "name": "myRunAsCredentialName" } }, diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/putHybridRunbookWorkerGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/putHybridRunbookWorkerGroup.json index f70a01ef65f1..aad6a472e67c 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/putHybridRunbookWorkerGroup.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/putHybridRunbookWorkerGroup.json @@ -8,7 +8,7 @@ "HybridRunbookWorkerGroupCreationParameters": { "name": "TestHybridGroup", "properties": { - "workerCredential": { + "credential": { "name": "myRunAsCredentialName" } } @@ -21,7 +21,7 @@ "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup", "name": "TestHybridGroup", "properties": { - "workerCredential": { + "credential": { "name": "myRunAsCredentialName" } }, diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/updateHybridRunbookWorkerGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/updateHybridRunbookWorkerGroup.json index 2e13693318ff..43c8fb22a4a5 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/updateHybridRunbookWorkerGroup.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/updateHybridRunbookWorkerGroup.json @@ -7,7 +7,7 @@ "api-version": "2021-06-22", "parameters": { "properties": { - "workerCredential": { + "credential": { "name": "myRunAsCredentialName" } } @@ -20,7 +20,7 @@ "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup", "name": "TestHybridGroup", "properties": { - "workerCredential": { + "credential": { "name": "myRunAsCredentialName" } }, diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json index 2867913cf48b..f79746534f2c 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json @@ -342,7 +342,7 @@ "HybridRunbookWorkerGroupProperties": { "type": "object", "properties": { - "workerCredential": { + "credential": { "$ref": "#/definitions/RunAsCredentialAssociationProperty", "description": "Sets the credential of a worker group." }, @@ -379,7 +379,7 @@ }, "HybridRunbookWorkerGroupUpdateParameters": { "properties": { - "workerCredential": { + "credential": { "$ref": "#/definitions/RunAsCredentialAssociationProperty", "description": "Sets the credential of a worker group." } From 24c5786898bbb50a622e6749b2d5e7e9e5ee7f77 Mon Sep 17 00:00:00 2001 From: Bhargava Chary Chollaty Date: Thu, 24 Jun 2021 20:52:36 +0530 Subject: [PATCH 05/15] Address PR Review Comments --- .../stable/2021-06-22/hybridRunbookWorkerGroup.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json index f79746534f2c..7352a6df7274 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json @@ -395,6 +395,7 @@ "description": "Gets or sets hybrid runbook worker group create or update properties." }, "name": { + "readOnly": true, "type": "string", "description": "Gets or sets the name of the resource." } From 1933b235a9f4b32869254f78beb75388688ffa95 Mon Sep 17 00:00:00 2001 From: Bhargava Chary Chollaty Date: Tue, 29 Jun 2021 17:40:52 +0530 Subject: [PATCH 06/15] Updated Error Response Format --- .../stable/2021-06-22/account.json | 18 +++++++++--------- .../stable/2021-06-22/hybridRunbookWorker.json | 10 +++++----- .../2021-06-22/hybridRunbookWorkerGroup.json | 10 +++++----- .../stable/2021-06-22/operations.json | 4 ++-- 4 files changed, 21 insertions(+), 21 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/account.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/account.json index 258a83c7bd49..ea04b59e89ce 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/account.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/account.json @@ -84,7 +84,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -142,7 +142,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -185,7 +185,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -228,7 +228,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -270,7 +270,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -310,7 +310,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -365,7 +365,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -413,7 +413,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -458,7 +458,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorker.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorker.json index 25eeae1e8ea3..8ebfb838e682 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorker.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorker.json @@ -89,7 +89,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -146,7 +146,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -212,7 +212,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -277,7 +277,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -336,7 +336,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json index 7352a6df7274..a9ac35c95da1 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json @@ -79,7 +79,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -129,7 +129,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -188,7 +188,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -247,7 +247,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -299,7 +299,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/operations.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/operations.json index 581b44a008bf..1c0c0b142abb 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/operations.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/operations.json @@ -58,7 +58,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -115,7 +115,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } From 29a85453055d5f54b67b7193edfa12e2e5047a95 Mon Sep 17 00:00:00 2001 From: Bhargava Chary Chollaty Date: Tue, 29 Jun 2021 18:09:40 +0530 Subject: [PATCH 07/15] Supress Lint Errors --- specification/automation/resource-manager/readme.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/specification/automation/resource-manager/readme.md b/specification/automation/resource-manager/readme.md index 1dfe30316319..7b3defee6432 100644 --- a/specification/automation/resource-manager/readme.md +++ b/specification/automation/resource-manager/readme.md @@ -269,6 +269,15 @@ directive: - suppress: LongRunningResponseStatusCode from: runbook.json where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/publish"].post["x-ms-long-running-operation"] + - suppress: DefaultErrorResponseSchema + from: hybridRunbookWorkerGroup.json + reason: This error format is already part of the previous api, cannot change it as it will result in breaking change. + - suppress: DefaultErrorResponseSchema + from: hybridRunbookWorker.json + reason: This error format is already part of the previous api, cannot change it as it will result in breaking change. + - suppress: DefaultErrorResponseSchema + from: operations.json + reason: This error format is already part of the previous api, cannot change it as it will result in breaking change. ``` --- From a05e3f757643fd89f12f4c249b2157ba0658a871 Mon Sep 17 00:00:00 2001 From: Bhargava Chary Chollaty Date: Tue, 29 Jun 2021 18:15:10 +0530 Subject: [PATCH 08/15] Fix Breaking Changes --- .../examples/getHybridRunbookWorkerGroup.json | 7 +- .../listHybridRunbookWorkerGroup.json | 7 +- .../examples/putHybridRunbookWorkerGroup.json | 14 ++-- .../updateHybridRunbookWorkerGroup.json | 13 ++-- .../2021-06-22/hybridRunbookWorkerGroup.json | 67 ++++++++++++------- 5 files changed, 57 insertions(+), 51 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getHybridRunbookWorkerGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getHybridRunbookWorkerGroup.json index 030be29b574a..c5de1988ff51 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getHybridRunbookWorkerGroup.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getHybridRunbookWorkerGroup.json @@ -13,11 +13,10 @@ "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup", "name": "TestHybridGroup", "type": "Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups", - "properties": { - "credential": { - "name": "myRunAsCredentialName" - } + "credential": { + "name": "myRunAsCredentialName" }, + "groupType": "User", "systemData": { "createdBy": "foo@contoso.com", "createdByType": "User", diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listHybridRunbookWorkerGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listHybridRunbookWorkerGroup.json index abdf89b20bac..df4cb4cc6e73 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listHybridRunbookWorkerGroup.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listHybridRunbookWorkerGroup.json @@ -13,11 +13,10 @@ { "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup", "name": "TestHybridGroup", - "properties": { - "credential": { - "name": "myRunAsCredentialName" - } + "credential": { + "name": "myRunAsCredentialName" }, + "groupType": "User", "systemData": { "createdBy": "foo@contoso.com", "createdByType": "User", diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/putHybridRunbookWorkerGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/putHybridRunbookWorkerGroup.json index aad6a472e67c..ff28975cf48e 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/putHybridRunbookWorkerGroup.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/putHybridRunbookWorkerGroup.json @@ -6,11 +6,8 @@ "hybridRunbookWorkerGroupName": "TestHybridGroup", "api-version": "2021-06-22", "HybridRunbookWorkerGroupCreationParameters": { - "name": "TestHybridGroup", - "properties": { - "credential": { - "name": "myRunAsCredentialName" - } + "credential": { + "name": "myRunAsCredentialName" } } }, @@ -20,11 +17,10 @@ "body": { "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup", "name": "TestHybridGroup", - "properties": { - "credential": { - "name": "myRunAsCredentialName" - } + "credential": { + "name": "myRunAsCredentialName" }, + "groupType": "User", "systemData": { "createdBy": "foo@contoso.com", "createdByType": "User", diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/updateHybridRunbookWorkerGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/updateHybridRunbookWorkerGroup.json index 43c8fb22a4a5..6f8246a916f2 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/updateHybridRunbookWorkerGroup.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/updateHybridRunbookWorkerGroup.json @@ -6,10 +6,8 @@ "hybridRunbookWorkerGroupName": "TestHybridGroup", "api-version": "2021-06-22", "parameters": { - "properties": { - "credential": { - "name": "myRunAsCredentialName" - } + "credential": { + "name": "myRunAsCredentialName" } } }, @@ -19,11 +17,10 @@ "body": { "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup", "name": "TestHybridGroup", - "properties": { - "credential": { - "name": "myRunAsCredentialName" - } + "credential": { + "name": "myRunAsCredentialName" }, + "groupType": "User", "systemData": { "createdBy": "foo@contoso.com", "createdByType": "User", diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json index a9ac35c95da1..cac18ddd80b7 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json @@ -320,28 +320,40 @@ }, "description": "Definition of RunAs credential to use for hybrid worker." }, - "HybridRunbookWorkerGroup": { + "HybridRunbookWorker": { "properties": { - "properties": { - "$ref": "#/definitions/HybridRunbookWorkerGroupProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the hybrid worker group properties." + "name": { + "type": "string", + "description": "Gets or sets the worker machine name." }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "Resource system metadata." + "ip": { + "type": "string", + "description": "Gets or sets the assigned machine IP address." + }, + "registrationTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the registration time of the worker machine.", + "x-nullable": false + }, + "lastSeenDateTime": { + "type": "string", + "format": "date-time", + "description": "Last Heartbeat from the Worker", + "x-nullable": false } }, - "allOf": [ - { - "$ref": "../../common/v1/definitions.json#/definitions/Resource" - } - ], - "description": "Definition of hybrid runbook worker group." + "description": "Definition of hybrid runbook worker." }, - "HybridRunbookWorkerGroupProperties": { - "type": "object", + "HybridRunbookWorkerGroup": { "properties": { + "hybridRunbookWorkers": { + "type": "array", + "items": { + "$ref": "#/definitions/HybridRunbookWorker" + }, + "description": "Gets or sets the list of hybrid runbook workers." + }, "credential": { "$ref": "#/definitions/RunAsCredentialAssociationProperty", "description": "Sets the credential of a worker group." @@ -357,9 +369,18 @@ "name": "GroupTypeEnum", "modelAsString": true } + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "Resource system metadata." } }, - "description": "Definition of hybrid runbook worker group property." + "allOf": [ + { + "$ref": "../../common/v1/definitions.json#/definitions/Resource" + } + ], + "description": "Definition of hybrid runbook worker group." }, "HybridRunbookWorkerGroupsListResult": { "properties": { @@ -389,15 +410,9 @@ "HybridRunbookWorkerGroupCreateOrUpdateParameters": { "type": "object", "properties": { - "properties": { - "$ref": "#/definitions/HybridRunbookWorkerGroupUpdateParameters", - "x-ms-client-flatten": true, - "description": "Gets or sets hybrid runbook worker group create or update properties." - }, - "name": { - "readOnly": true, - "type": "string", - "description": "Gets or sets the name of the resource." + "credential": { + "$ref": "#/definitions/RunAsCredentialAssociationProperty", + "description": "Sets the credential of a worker group." } }, "description": "The parameters supplied to the create or update hybrid runbook worker group operation." From 4d246b37ab3359d7c4d0b598501a1b205cbdf6d8 Mon Sep 17 00:00:00 2001 From: Bhargava Chary Chollaty Date: Tue, 29 Jun 2021 18:23:51 +0530 Subject: [PATCH 09/15] Add Supression For HRWG Response Body --- specification/automation/resource-manager/readme.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specification/automation/resource-manager/readme.md b/specification/automation/resource-manager/readme.md index 7b3defee6432..930d336af9e8 100644 --- a/specification/automation/resource-manager/readme.md +++ b/specification/automation/resource-manager/readme.md @@ -278,6 +278,9 @@ directive: - suppress: DefaultErrorResponseSchema from: operations.json reason: This error format is already part of the previous api, cannot change it as it will result in breaking change. + - suppress: BodyTopLevelProperties + from: hybridRunbookWorkerGroup.json + reason: This body format is already part of the previous api, cannot change it as it will result in breaking change. ``` --- From 6d8256fafbac2b0d4e664cd0c7e97d016d1681d9 Mon Sep 17 00:00:00 2001 From: Bhargava Chary Chollaty Date: Tue, 29 Jun 2021 18:28:59 +0530 Subject: [PATCH 10/15] Fix LintErrors --- .../2021-06-22/hybridRunbookWorkerGroup.json | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json index cac18ddd80b7..6e101de8d95e 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json @@ -347,6 +347,19 @@ }, "HybridRunbookWorkerGroup": { "properties": { + "id": { + "type": "string", + "description": "Gets or sets the id of the resource." + }, + "name": { + "type": "string", + "description": "Gets or sets the name of the group." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of the resource." + }, "hybridRunbookWorkers": { "type": "array", "items": { @@ -375,11 +388,6 @@ "description": "Resource system metadata." } }, - "allOf": [ - { - "$ref": "../../common/v1/definitions.json#/definitions/Resource" - } - ], "description": "Definition of hybrid runbook worker group." }, "HybridRunbookWorkerGroupsListResult": { From 1a0aae5c0acb3688d937b3ab7dcfab5757236186 Mon Sep 17 00:00:00 2001 From: Bhargava Chary Chollaty Date: Tue, 29 Jun 2021 18:43:09 +0530 Subject: [PATCH 11/15] Updated hybridRunbookWorkerGroup.json --- .../stable/2021-06-22/hybridRunbookWorkerGroup.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json index 6e101de8d95e..f214cf709045 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json @@ -320,7 +320,7 @@ }, "description": "Definition of RunAs credential to use for hybrid worker." }, - "HybridRunbookWorker": { + "HybridRunbookWorkerLegacy": { "properties": { "name": { "type": "string", @@ -343,7 +343,7 @@ "x-nullable": false } }, - "description": "Definition of hybrid runbook worker." + "description": "Definition of hybrid runbook worker Legacy." }, "HybridRunbookWorkerGroup": { "properties": { @@ -363,7 +363,7 @@ "hybridRunbookWorkers": { "type": "array", "items": { - "$ref": "#/definitions/HybridRunbookWorker" + "$ref": "#/definitions/HybridRunbookWorkerLegacy" }, "description": "Gets or sets the list of hybrid runbook workers." }, From 530b9e7dfa4ee18a18e6dd70dc7005e19076bf94 Mon Sep 17 00:00:00 2001 From: Bhargava Chary Chollaty Date: Tue, 29 Jun 2021 22:45:06 +0530 Subject: [PATCH 12/15] PR Review comments --- .../stable/2021-06-22/hybridRunbookWorker.json | 2 +- .../stable/2021-06-22/hybridRunbookWorkerGroup.json | 2 ++ specification/automation/resource-manager/readme.md | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorker.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorker.json index 8ebfb838e682..a037a9e8474a 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorker.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorker.json @@ -398,7 +398,7 @@ "HybridV2" ], "x-ms-enum": { - "name": "WorkerTypeEnum", + "name": "WorkerType", "modelAsString": true } }, diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json index f214cf709045..b1781d74b730 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json @@ -321,6 +321,7 @@ "description": "Definition of RunAs credential to use for hybrid worker." }, "HybridRunbookWorkerLegacy": { + "type": "object", "properties": { "name": { "type": "string", @@ -346,6 +347,7 @@ "description": "Definition of hybrid runbook worker Legacy." }, "HybridRunbookWorkerGroup": { + "x-ms-azure-resource": true, "properties": { "id": { "type": "string", diff --git a/specification/automation/resource-manager/readme.md b/specification/automation/resource-manager/readme.md index 930d336af9e8..26fbd0298a26 100644 --- a/specification/automation/resource-manager/readme.md +++ b/specification/automation/resource-manager/readme.md @@ -281,6 +281,9 @@ directive: - suppress: BodyTopLevelProperties from: hybridRunbookWorkerGroup.json reason: This body format is already part of the previous api, cannot change it as it will result in breaking change. + - suppress: RequiredPropertiesMissingInResourceModel + from: hybridRunbookWorkerGroup.json + reason: This body format is already part of the previous api, cannot change it as it will result in breaking change. ``` --- From 3a5775dbe66ca5bd8e031b5e184e1730a16a4a08 Mon Sep 17 00:00:00 2001 From: Bhargava Chary Chollaty Date: Wed, 25 Aug 2021 15:10:55 +0530 Subject: [PATCH 13/15] Fix LinDiff Warnings --- .../stable/2021-06-22/hybridRunbookWorker.json | 8 ++++---- .../stable/2021-06-22/hybridRunbookWorkerGroup.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorker.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorker.json index a037a9e8474a..58c4f1dfc5d0 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorker.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorker.json @@ -41,7 +41,7 @@ "tags": [ "HybridRunbookWorker" ], - "operationId": "HybridRunbookWorker_Delete", + "operationId": "HybridRunbookWorkers_Delete", "description": "Delete a hybrid runbook worker.", "externalDocs": { "url": "http://aka.ms/azureautomationsdk/hybridrunbookworkeroperations" @@ -98,7 +98,7 @@ "tags": [ "HybridRunbookWorker" ], - "operationId": "HybridRunbookWorker_Get", + "operationId": "HybridRunbookWorkers_Get", "description": "Retrieve a hybrid runbook worker.", "externalDocs": { "url": "http://aka.ms/azureautomationsdk/hybridrunbookworkeroperations" @@ -155,7 +155,7 @@ "tags": [ "HybridRunbookWorker" ], - "operationId": "HybridRunbookWorker_Put", + "operationId": "HybridRunbookWorkers_Create", "description": "Create a hybrid runbook worker.", "externalDocs": { "url": "http://aka.ms/azureautomationsdk/hybridrunbookworkeroperations" @@ -223,7 +223,7 @@ "tags": [ "HybridRunbookWorker" ], - "operationId": "HybridRunbookWorker_Move", + "operationId": "HybridRunbookWorkers_Move", "description": "Move a hybrid worker to a different group.", "externalDocs": { "url": "http://aka.ms/azureautomationsdk/hybridrunbookworkeroperations" diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json index b1781d74b730..1fbf7af9f751 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json @@ -144,7 +144,7 @@ "url": "http://aka.ms/azureautomationsdk/hybridrunbookworkergroupoperations" }, "x-ms-examples": { - "Get a hybrid worker group": { + "Create a hybrid worker group": { "$ref": "./examples/putHybridRunbookWorkerGroup.json" } }, From 61116d215e7d132a79bca8e53b5883c353959451 Mon Sep 17 00:00:00 2001 From: Bhargava Chary Chollaty Date: Wed, 25 Aug 2021 15:17:27 +0530 Subject: [PATCH 14/15] Fix LintDiff Warnings --- .../stable/2021-06-22/hybridRunbookWorker.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorker.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorker.json index 58c4f1dfc5d0..4f2f7b499248 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorker.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorker.json @@ -288,7 +288,7 @@ "tags": [ "HybridRunbookWorker" ], - "operationId": "HybridRunbookWorker_ListByHybridRunbookWorkerGroup", + "operationId": "HybridRunbookWorkers_ListByHybridRunbookWorkerGroup", "description": "Retrieve a list of hybrid runbook workers.", "externalDocs": { "url": "http://aka.ms/azureautomationsdk/hybridrunbookworkeroperations" From 56ff629547749109c1b9213a6d5e3189d5c4d6ae Mon Sep 17 00:00:00 2001 From: Bhargava Chary Chollaty Date: Wed, 25 Aug 2021 15:26:38 +0530 Subject: [PATCH 15/15] Fix LintDiff Warnings --- .../stable/2021-06-22/hybridRunbookWorkerGroup.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json index 1fbf7af9f751..47a98c4a58be 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/hybridRunbookWorkerGroup.json @@ -138,7 +138,7 @@ "tags": [ "HybridRunbookWorkerGroup" ], - "operationId": "HybridRunbookWorkerGroup_Put", + "operationId": "HybridRunbookWorkerGroup_Create", "description": "Create a hybrid runbook worker group.", "externalDocs": { "url": "http://aka.ms/azureautomationsdk/hybridrunbookworkergroupoperations"