{ "swagger": "2.0", "info": { "title": "AutomationManagement", "version": "2023-11-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 }, "x-ms-examples": { "Lists all of the available Automation REST API operations.": { "$ref": "./examples/listRestAPIOperations.json" } } } }, "/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/v1/definitions.json#/definitions/ErrorResponse" } } } } } }, "definitions": { "OperationListResult": { "properties": { "value": { "type": "array", "items": { "$ref": "#/definitions/Operation" }, "x-ms-identifiers": [ "name" ], "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": { "description": "Description of the operation.", "type": "string" } }, "description": "Provider, Resource and Operation values" }, "origin": { "description": "Origin of the operation.", "type": "string" }, "properties": { "x-ms-client-flatten": true, "$ref": "#/definitions/OperationPropertiesFormat", "description": "Operation properties format." } } }, "OperationPropertiesFormat": { "description": "Description of operation properties format.", "type": "object", "properties": { "serviceSpecification": { "description": "Specification of the service.", "type": "object", "properties": { "metricSpecifications": { "type": "array", "x-ms-identifiers": [], "items": { "$ref": "#/definitions/MetricSpecification" }, "description": "Operation service specification." }, "logSpecifications": { "type": "array", "x-ms-identifiers": [], "items": { "$ref": "#/definitions/LogSpecification" }, "description": "Operation log specification." } } } } }, "LogSpecification": { "description": "Description of logging specification.", "type": "object", "properties": { "name": { "type": "string", "description": "The name of the specification." }, "displayName": { "type": "string", "description": "The display name of the specification." }, "blobDuration": { "type": "string", "description": "Duration of the blob." } } }, "MetricSpecification": { "description": "Description of metrics specification.", "type": "object", "properties": { "name": { "type": "string", "description": "The name of the metric." }, "displayName": { "type": "string", "description": "The display name of the metric." }, "displayDescription": { "type": "string", "description": "The description of the metric." }, "unit": { "type": "string", "description": "Units the metric to be displayed in." }, "aggregationType": { "type": "string", "description": "The aggregation type." }, "dimensions": { "type": "array", "x-ms-identifiers": [], "items": { "$ref": "#/definitions/Dimension" }, "description": "List of dimensions." } } }, "Dimension": { "description": "Dimension of the metric.", "type": "object", "properties": { "name": { "type": "string", "description": "The name of the dimension." }, "displayName": { "type": "string", "description": "The display name of the dimension." } } }, "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 } } } } } }