swagger: '2.0' info: version: 2020-08-01-preview title: Microsoft Azure AccessControlClient AccessConnector BicepClient API schemes: - https tags: - name: BicepClient paths: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/decompileBicep: post: tags: - BicepClient operationId: microsoftAzureDecompileBicep description: Decompiles an ARM json template into a Bicep template x-ms-examples: Decompile an ARM json template into a Bicep file: $ref: ./examples/DecompileBicep.json parameters: - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter - name: decompileOperationRequest in: body required: true schema: $ref: '#/definitions/DecompileOperationRequest' description: Decompile operation request supplied to the operation. responses: '200': description: OK - The decompilation has succeeded. schema: $ref: '#/definitions/DecompileOperationSuccessResponse' default: description: Error response describing why the operation failed. schema: $ref: ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse summary: Microsoft Azure Post Subscriptions Subscriptionid Providers Microsoft Resources Decompilebicep definitions: FileDefinition: type: object properties: path: type: string contents: type: string description: The definition of a file along with its contents DecompileOperationRequest: required: - template type: object description: The body of the request for the decompileBicep operation properties: template: type: string description: The ARM json template to be decompiled into a Bicep file DecompileOperationSuccessResponse: required: - files - entryPoint type: object description: The response of the decompileBicep operation properties: files: type: array items: $ref: '#/definitions/FileDefinition' x-ms-identifiers: - path description: An array of key-value pairs containing the entryPoint string as the key for the Bicep file decompiled from the ARM json template entryPoint: type: string description: The file path to the main Bicep file generated from the decompiled ARM json template. x-ms-parameterized-host: hostTemplate: '{endpoint}' useSchemePrefix: false parameters: - $ref: '#/parameters/Endpoint'