Microsoft Azure Cloud Shell Client

The Microsoft Azure Cloud Shell Client is a powerful tool that allows users to manage their Azure resources directly from their web browser. With the Cloud Shell Client, users can access a set of command-line tools and scripts that enable them to interact with their Azure resources, such as virtual machines, storage accounts, and databases.

OpenAPI Specification

cloudshellclient-openapi-original.yml Raw ↑
swagger: '2.0'
info:
  version: '2018-10-01'
  title: Microsoft Azure CloudShellClient
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.Portal/locations/{location}/userSettings/{userSettingsName}:
    get:
      operationId: microsoftAzureGetusersettingswithlocation
      x-ms-examples:
        GetUserSettings:
          $ref: ./examples/GetUserSettings_Location.json
      summary: 'Microsoft Azure Get User Settings'
      description: >-
        Get current user settings for current signed in user. This operation
        returns settings for the user's cloud shell preferences including
        preferred location, storage profile, shell type, font and size settings.
      parameters:
        - $ref: '#/parameters/ApiVersionParameter'
        - $ref: '#/parameters/UserSettingsNameParameter'
        - $ref: '#/parameters/LocationParameter'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/UserSettingsResponse'
          headers:
            x-ms-console-required-location-code:
              type: string
              description: normalized required location code
            x-ms-console-preview-user:
              type: boolean
              description: indicates whether user is a previous usr.
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/ErrorResponse'
      tags:
        - Providers
    patch:
      operationId: microsoftAzurePatchusersettingswithlocation
      summary: 'Microsoft Azure Patch User Settings'
      description: Patch cloud shell settings for current signed in user
      x-ms-examples:
        PatchUserSettings:
          $ref: ./examples/PatchUserSettings_Location.json
      parameters:
        - $ref: '#/parameters/ApiVersionParameter'
        - $ref: '#/parameters/UserSettingsNameParameter'
        - $ref: '#/parameters/LocationParameter'
        - name: parameters
          description: The properties of the user settings to be updated.
          required: true
          in: body
          schema:
            $ref: '#/definitions/CloudShellPatchUserSettings'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/UserSettingsResponse'
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/ErrorResponse'
      tags:
        - Providers
    delete:
      operationId: microsoftAzureDeleteusersettingswithlocation
      summary: 'Microsoft Azure Delete User Settings'
      x-ms-examples:
        DeleteUserSettings:
          $ref: ./examples/DeleteUserSettings_Location.json
      description: Delete cloud shell settings for current signed in user
      parameters:
        - $ref: '#/parameters/ApiVersionParameter'
        - $ref: '#/parameters/UserSettingsNameParameter'
        - $ref: '#/parameters/LocationParameter'
      responses:
        '200':
          description: OK
        '204':
          description: No Content
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/ErrorResponse'
      tags:
        - Providers
    put:
      operationId: microsoftAzurePutusersettingswithlocation
      summary: 'Microsoft Azure Put User Settings'
      x-ms-examples:
        PutUserSettings:
          $ref: ./examples/PutUserSettings_Location.json
      description: Create or update cloud shell settings for current signed in user
      parameters:
        - $ref: '#/parameters/ApiVersionParameter'
        - $ref: '#/parameters/UserSettingsNameParameter'
        - $ref: '#/parameters/LocationParameter'
        - name: parameters
          description: The properties of the user settings to be created or updated.
          required: true
          in: body
          schema:
            $ref: '#/definitions/CloudShellUserSettings'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/UserSettingsResponse'
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/ErrorResponse'
      tags:
        - Providers
  /providers/Microsoft.Portal/locations/{location}/consoles/{consoleName}:
    get:
      operationId: microsoftAzureGetconsolewithlocation
      summary: Microsoft Azure Get Console
      x-ms-examples:
        GetConsole:
          $ref: ./examples/GetConsole_Location.json
      description: Gets the console for the user.
      parameters:
        - $ref: '#/parameters/ApiVersionParameter'
        - $ref: '#/parameters/ConsoleNameParameter'
        - $ref: '#/parameters/LocationParameter'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/CloudShellConsole'
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/ErrorResponse'
      tags:
        - Providers
    put:
      operationId: microsoftAzurePutconsolewithlocation
      summary: Microsoft Azure Put Console
      x-ms-examples:
        PutConsole:
          $ref: ./examples/PutConsole_Location.json
      description: Puts a request for a console
      parameters:
        - $ref: '#/parameters/ApiVersionParameter'
        - $ref: '#/parameters/ConsoleNameParameter'
        - $ref: '#/parameters/LocationParameter'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/CloudShellConsole'
        '201':
          description: Created
          schema:
            $ref: '#/definitions/CloudShellConsole'
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/ErrorResponse'
      tags:
        - Providers
    delete:
      operationId: microsoftAzureDeleteconsolewithlocation
      summary: Microsoft Azure Delete Console
      x-ms-examples:
        DeleteConsole:
          $ref: ./examples/DeleteConsole_Location.json
      description: Deletes the console
      parameters:
        - $ref: '#/parameters/ApiVersionParameter'
        - $ref: '#/parameters/ConsoleNameParameter'
        - $ref: '#/parameters/LocationParameter'
      responses:
        '200':
          description: OK
        '204':
          description: No Content
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/ErrorResponse'
      tags:
        - Providers
  /providers/Microsoft.Portal/locations/{location}/consoles/{consoleName}/keepAlive:
    post:
      operationId: microsoftAzureKeepalivewithlocation
      x-ms-examples:
        GetUserSettings:
          $ref: ./examples/KeepAlive_Location.json
      summary: Microsoft Azure Keep Alive
      description: Keep console alive
      parameters:
        - $ref: '#/parameters/ConsoleNameParameter'
        - $ref: '#/parameters/LocationParameter'
      responses:
        '200':
          description: OK
          headers:
            x-ms-console-remaining-seconds:
              type: integer
              format: int32
              description: Remaining time left in session, in seconds.
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/ErrorResponse'
      tags:
        - Providers
  /providers/Microsoft.Portal/userSettings/{userSettingsName}:
    get:
      operationId: microsoftAzureGetusersettings
      x-ms-examples:
        GetUserSettings:
          $ref: ./examples/GetUserSettings.json
      summary: 'Microsoft Azure Get User Settings'
      description: >-
        Get current user settings for current signed in user. This operation
        returns settings for the user's cloud shell preferences including
        preferred location, storage profile, shell type, font and size settings.
      parameters:
        - $ref: '#/parameters/ApiVersionParameter'
        - $ref: '#/parameters/UserSettingsNameParameter'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/UserSettingsResponse'
          headers:
            x-ms-console-required-location-code:
              type: string
              description: normalized required location code
            x-ms-console-preview-user:
              type: boolean
              description: indicates whether user is a previous usr.
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/ErrorResponse'
      tags:
        - Providers
    patch:
      operationId: microsoftAzurePatchusersettings
      summary: 'Microsoft Azure Patch User Settings'
      description: Patch cloud shell settings for current signed in user
      x-ms-examples:
        PatchUserSettings:
          $ref: ./examples/PatchUserSettings.json
      parameters:
        - $ref: '#/parameters/ApiVersionParameter'
        - $ref: '#/parameters/UserSettingsNameParameter'
        - name: parameters
          description: The properties of the user settings to be updated.
          required: true
          in: body
          schema:
            $ref: '#/definitions/CloudShellPatchUserSettings'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/UserSettingsResponse'
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/ErrorResponse'
      tags:
        - Providers
    delete:
      operationId: microsoftAzureDeleteusersettings
      x-ms-examples:
        DeleteUserSettings:
          $ref: ./examples/DeleteUserSettings.json
      summary: 'Microsoft Azure Delete User Settings'
      description: Delete cloud shell settings for current signed in user
      parameters:
        - $ref: '#/parameters/ApiVersionParameter'
        - $ref: '#/parameters/UserSettingsNameParameter'
      responses:
        '200':
          description: OK
        '204':
          description: No Content
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/ErrorResponse'
      tags:
        - Providers
    put:
      operationId: microsoftAzurePutusersettings
      x-ms-examples:
        PutUserSettings:
          $ref: ./examples/PutUserSettings.json
      summary: 'Microsoft Azure Put User Settings'
      description: Create or update cloud shell settings for current signed in user
      parameters:
        - $ref: '#/parameters/ApiVersionParameter'
        - $ref: '#/parameters/UserSettingsNameParameter'
        - name: parameters
          description: The properties of the user settings to be created or updated.
          required: true
          in: body
          schema:
            $ref: '#/definitions/CloudShellUserSettings'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/UserSettingsResponse'
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/ErrorResponse'
      tags:
        - Providers
  /providers/Microsoft.Portal/consoles/{consoleName}:
    get:
      operationId: microsoftAzureGetconsole
      x-ms-examples:
        GetConsole:
          $ref: ./examples/GetConsole.json
      summary: Microsoft Azure Get Console
      description: Gets the console for the user.
      parameters:
        - $ref: '#/parameters/ApiVersionParameter'
        - $ref: '#/parameters/ConsoleNameParameter'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/CloudShellConsole'
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/ErrorResponse'
      tags:
        - Providers
    put:
      operationId: microsoftAzurePutconsole
      x-ms-examples:
        PutConsole:
          $ref: ./examples/PutConsole.json
      summary: Microsoft Azure Put Console
      description: Puts a request for a console
      parameters:
        - $ref: '#/parameters/ApiVersionParameter'
        - $ref: '#/parameters/ConsoleNameParameter'
        - name: parameters
          description: The console definition.
          required: true
          in: body
          schema:
            $ref: '#/definitions/ConsoleDefinition'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/CloudShellConsole'
        '201':
          description: Created
          schema:
            $ref: '#/definitions/CloudShellConsole'
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/ErrorResponse'
      tags:
        - Providers
    delete:
      operationId: microsoftAzureDeleteconsole
      x-ms-examples:
        DeleteConsole:
          $ref: ./examples/DeleteConsole.json
      summary: Microsoft Azure Delete Console
      description: Deletes the console
      parameters:
        - $ref: '#/parameters/ApiVersionParameter'
        - $ref: '#/parameters/ConsoleNameParameter'
      responses:
        '200':
          description: OK
        '204':
          description: No Content
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/ErrorResponse'
      tags:
        - Providers
  /providers/Microsoft.Portal/consoles/{consoleName}/keepAlive:
    post:
      operationId: microsoftAzureKeepalive
      x-ms-examples:
        KeepAlive:
          $ref: ./examples/KeepAlive.json
      summary: Microsoft Azure Keep Alive
      description: Keep console alive
      parameters:
        - $ref: '#/parameters/ConsoleNameParameter'
      responses:
        '200':
          description: OK
          headers:
            x-ms-console-remaining-seconds:
              type: integer
              format: int32
              description: Remaining time left in session, in seconds.
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/ErrorResponse'
      tags:
        - Providers
definitions:
  CloudShellConsole:
    description: Cloud shell console
    type: object
    required:
      - properties
    properties:
      properties:
        $ref: '#/definitions/ConsoleProperties'
    allOf:
      - $ref: '#/definitions/Resource'
  ConsoleProperties:
    description: Cloud shell console properties.
    type: object
    required:
      - osType
      - provisioningState
      - uri
    properties:
      osType:
        description: The operating system type of the cloud shell.
        type: string
        enum:
          - Linux
          - Windows
        x-ms-enum:
          name: osType
          modelAsString: true
      provisioningState:
        description: Provisioning state of the console.
        type: string
        enum:
          - NotSpecified
          - Accepted
          - Pending
          - Updating
          - Creating
          - Repairing
          - Failed
          - Canceled
          - Succeeded
        x-ms-enum:
          name: provisioningState
          modelAsString: true
      uri:
        description: Uri of the console.
        type: string
  ConsoleCreateProperties:
    description: Cloud shell properties for creating a console.
    type: object
    required:
      - osType
    properties:
      osType:
        description: The operating system type of the cloud shell.
        type: string
        enum:
          - Linux
          - Windows
        x-ms-enum:
          name: osType
          modelAsString: true
      provisioningState:
        description: Provisioning state of the console.
        type: string
        enum:
          - NotSpecified
          - Accepted
          - Pending
          - Updating
          - Creating
          - Repairing
          - Failed
          - Canceled
          - Succeeded
        x-ms-enum:
          name: provisioningState
          modelAsString: true
      uri:
        description: Uri of the console.
        type: string
  ConsoleDefinition:
    description: Console definition
    type: object
    required:
      - properties
    properties:
      properties:
        $ref: '#/definitions/ConsoleCreateProperties'
    allOf:
      - $ref: '#/definitions/Resource'
  Resource:
    description: The Resource model definition.
    x-ms-azure-resource: true
  UserSettingsResponse:
    description: Response to get user settings
    type: object
    required:
      - properties
    properties:
      properties:
        $ref: '#/definitions/UserProperties'
    allOf:
      - $ref: '#/definitions/Resource'
  CloudShellUserSettings:
    description: Cloud shell user settings.
    type: object
    required:
      - properties
    properties:
      properties:
        $ref: '#/definitions/UserProperties'
    allOf:
      - $ref: '#/definitions/Resource'
  CloudShellPatchUserSettings:
    description: Cloud shell patch operation user settings.
    type: object
    properties:
      properties:
        $ref: '#/definitions/UserProperties'
  UserProperties:
    description: The cloud shell user settings properties.
    type: object
    required:
      - preferredOsType
      - preferredLocation
      - storageProfile
      - terminalSettings
      - preferredShellType
    properties:
      preferredOsType:
        description: >-
          The operating system type of the cloud shell. Deprecated, use
          preferredShellType.
        type: string
        enum:
          - Windows
          - Linux
        x-ms-enum:
          name: osType
          modelAsString: true
      preferredLocation:
        description: The preferred location of the cloud shell.
        type: string
      storageProfile:
        $ref: '#/definitions/StorageProfile'
      terminalSettings:
        $ref: '#/definitions/TerminalSettings'
      preferredShellType:
        description: The shell type of the cloud shell.
        type: string
        enum:
          - bash
          - pwsh
          - powershell
        x-ms-enum:
          name: shellType
          modelAsString: true
  StorageProfile:
    description: The storage profile of the user settings.
    type: object
    properties:
      storageAccountResourceId:
        type: string
        description: Full resource ID of storage account.
      fileShareName:
        type: string
        description: >-
          Name of the mounted file share. 63 characters or less, lowercase
          alphabet, numbers, and -
      diskSizeInGB:
        type: integer
        format: int32
        description: Size of file share
  TerminalSettings:
    description: Settings for terminal appearance.
    type: object
    properties:
      fontSize:
        type: string
        description: Size of terminal font.
        enum:
          - NotSpecified
          - Small
          - Medium
          - Large
        x-ms-enum:
          name: fontSize
          modelAsString: true
      fontStyle:
        type: string
        description: Style of terminal font.
        enum:
          - NotSpecified
          - Monospace
          - Courier
        x-ms-enum:
          name: fontStyle
          modelAsString: true
  ErrorResponse:
    title: ErrorResponse
    description: Contains details when the response code indicates an error.
    type: object
    properties:
      error:
        $ref: '#/definitions/ErrorDetail'
    required:
      - error
  ErrorDetail:
    title: ErrorDetail
    type: object
    properties:
      code:
        description: The error's code.
        type: string
      message:
        description: A human readable error message.
        type: string
    required:
      - code
      - message
parameters:
  ApiVersionParameter:
    name: api-version
    in: query
    required: true
    type: string
    description: Client API version
    x-ms-parameter-location: client
  ConsoleNameParameter:
    name: consoleName
    in: path
    required: true
    type: string
    description: The name of the console
    x-ms-parameter-location: client
  LocationParameter:
    name: location
    in: path
    required: true
    type: string
    description: The provider location
    x-ms-parameter-location: method
  UserSettingsNameParameter:
    name: userSettingsName
    in: path
    required: true
    type: string
    description: The name of the user settings
    x-ms-parameter-location: client
tags:
  - name: Providers