Azure Virtual Machines Cloud Service Roles API

The CloudServiceRoles API from Azure Virtual Machines — 2 operation(s) for cloudserviceroles.

GitHub OpenAPI

Operations 2

GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles/{roleName} Cloud service roles get #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles Cloud service roles list #

Documentation

Specifications

SDKs

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure-virtual-machines:microsoft-azure-virtual-machines-cloudserviceroles-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-virtual-machines-cloudserviceroles-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: CloudServiceManagementClient Cloud Service Roles API
  description: The Cloud Service Management Client.
  version: '2024-11-04'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: CloudServiceRoles
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles/{roleName}
  : get:
      tags:
      - CloudServiceRoles
      description: Gets a role from a cloud service.
      operationId: CloudServiceRoles_Get
      parameters:
      - in: path
        name: roleName
        description: Name of the role.
        required: true
        schema:
          type: string
      - in: path
        name: resourceGroupName
        description: Name of the resource group.
        required: true
        schema:
          type: string
      - in: path
        name: cloudServiceName
        description: Name of the cloud service.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudServiceRole'
      summary: Cloud service roles get
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles
  : get:
      tags:
      - CloudServiceRoles
      description: Gets a list of all roles in a cloud service. Use nextLink property in the response to get the next page of roles. Do this till nextLink is null to fetch all the roles.
      operationId: CloudServiceRoles_List
      parameters:
      - in: path
        name: resourceGroupName
        description: Name of the resource group.
        required: true
        schema:
          type: string
      - in: path
        name: cloudServiceName
        description: Name of the cloud service.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudServiceRoleListResult'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Cloud service roles list
      x-summary-source: derived
components:
  parameters:
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      required: true
      description: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
      schema:
        type: string
    ApiVersionParameter:
      name: api-version
      in: query
      required: true
      description: Client Api Version.
      schema:
        type: string
  schemas:
    CloudError:
      type: object
      x-ms-external: true
      properties:
        error:
          $ref: '#/components/schemas/ApiError'
      description: An error response from the Compute service.
    CloudServiceRoleProperties:
      description: The cloud service role properties.
      type: object
      properties:
        uniqueId:
          description: Specifies the ID which uniquely identifies a cloud service role.
          type: string
          readOnly: true
    CloudServiceRoleSku:
      description: Describes the cloud service role sku.
      type: object
      properties:
        name:
          description: 'The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku.'
          type: string
        tier:
          description: Specifies the tier of the cloud service. Possible Values are <br /><br /> **Standard** <br /><br /> **Basic**
          type: string
        capacity:
          format: int64
          description: Specifies the number of role instances in the cloud service.
          type: integer
    CloudServiceRole:
      description: Describes a role of the cloud service.
      type: object
      properties:
        id:
          description: Resource id
          type: string
          readOnly: true
        name:
          description: Resource name
          type: string
          readOnly: true
        type:
          description: Resource type
          type: string
          readOnly: true
        location:
          description: Resource location
          type: string
          readOnly: true
        sku:
          $ref: '#/components/schemas/CloudServiceRoleSku'
        properties:
          $ref: '#/components/schemas/CloudServiceRoleProperties'
    CloudServiceRoleListResult:
      description: The list operation result.
      type: object
      properties:
        value:
          description: The list of resources.
          type: array
          items:
            $ref: '#/components/schemas/CloudServiceRole'
        nextLink:
          description: The URI to fetch the next page of resources. Use this to get the next page of resources. Do this till nextLink is null to fetch all the resources.
          type: string
      required:
      - value
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow.