Microsoft Azure Role Instances API

The RoleInstances API from Microsoft Azure, for roleinstances.

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /subscriptions/{subscriptionId}/providers/Microsoft.HybridNetwork/locations/{locationName}/vendors/{vendorName}/networkFunctions/{serviceKey}/roleInstances/{roleInstanceName}/start Start a role instance of a vendor network function · Microsoft Azure Post Subscriptions Subscriptionid Providers Microsoft… #
Ask an LLM
“How do I start a stopped role instance of a vendor network function?”
“Can a vendor power on one role instance of a network function?”
Tell an agent
Start role instance {role} of network function {service} for vendor {vendor} in {location}.
Power on {role} in vendor {vendor}'s network function {service} at location {location}.
POST /subscriptions/{subscriptionId}/providers/Microsoft.HybridNetwork/locations/{locationName}/vendors/{vendorName}/networkFunctions/{serviceKey}/roleInstances/{roleInstanceName}/stop Stop a role instance of a vendor network function · Microsoft Azure Post Subscriptions Subscriptionid Providers Microsoft… #
Ask an LLM
“How do I power off a role instance of a vendor network function?”
“Can I shut down just one role instance without stopping the whole network function?”
Tell an agent destructive · confirm first
Stop role instance {role} of network function {service} for vendor {vendor} in {location}.
Power off {role} in vendor {vendor}'s network function {service} at location {location}.
POST /subscriptions/{subscriptionId}/providers/Microsoft.HybridNetwork/locations/{locationName}/vendors/{vendorName}/networkFunctions/{serviceKey}/roleInstances/{roleInstanceName}/restart Restart a role instance of a vendor network function · Microsoft Azure Post Subscriptions Subscriptionid Providers Microsoft… #
Ask an LLM
“My network function role instance is misbehaving, can I reboot it?”
“Can a vendor restart a single role instance remotely?”
Tell an agent
Restart role instance {role} of network function {service} for vendor {vendor} in {location}.
Reboot {role} in vendor {vendor}'s network function {service} at location {location}.
GET /subscriptions/{subscriptionId}/providers/Microsoft.HybridNetwork/locations/{locationName}/vendors/{vendorName}/networkFunctions/{serviceKey}/roleInstances/{roleInstanceName} Get a role instance of a vendor network function · Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft… #
Ask an LLM
“What is the power state of a specific role instance in my network function?”
“How do I look up one role instance of a vendor network function?”
Tell an agent
Get role instance {role} of network function {service} for vendor {vendor} in {location}.
Show the status of {role} in vendor {vendor}'s network function {service} at {location}.
GET /subscriptions/{subscriptionId}/providers/Microsoft.HybridNetwork/locations/{locationName}/vendors/{vendorName}/networkFunctions/{serviceKey}/roleInstances List role instances of a vendor network function · Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft… #
Ask an LLM
“Which role instances make up a vendor network function?”
“Can I see all role instances and their states for one network function?”
Tell an agent
List the role instances of network function {service} for vendor {vendor} in {location}.
Show every role instance in vendor {vendor}'s network function {service} at {location}.

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:microsoft-azure-roleinstances-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-roleinstances-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure HybridNetworkManagementClient Role…
  description: The resources in this swagger specification will be used to manage the vendor network function deployment in the Microsoft.HybridNetwork resource provider.
  version: 2020-01-01-preview
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: RoleInstances
paths:
  ? /subscriptions/{subscriptionId}/providers/Microsoft.HybridNetwork/locations/{locationName}/vendors/{vendorName}/networkFunctions/{serviceKey}/roleInstances/{roleInstanceName}/start
  : post:
      tags:
      - RoleInstances
      operationId: microsoftAzureRoleinstancesStart
      description: Starts a role instance of a vendor network function.
      parameters:
      - name: locationName
        in: path
        required: true
        description: The Azure region where the network function resource was created by customer.
        schema:
          type: string
      - name: vendorName
        in: path
        required: true
        description: The name of the vendor.
        schema:
          type: string
      - name: serviceKey
        in: path
        required: true
        description: The GUID for the vendor network function.
        schema:
          type: string
      - name: roleInstanceName
        in: path
        required: true
        description: The name of the role instance of the vendor network function.
        schema:
          type: string
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter
      responses:
        '200':
          description: OK.
        '202':
          description: Accepted. The header contains 'Azure-AsyncOperation' header which can be used to monitor the progress of the operation.
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Start a role instance of a vendor network function:
          $ref: ./examples/RoleInstanceStart.json
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: location
      summary: Microsoft Azure Post Subscriptions Subscriptionid Providers Microsoft…
  ? /subscriptions/{subscriptionId}/providers/Microsoft.HybridNetwork/locations/{locationName}/vendors/{vendorName}/networkFunctions/{serviceKey}/roleInstances/{roleInstanceName}/stop
  : post:
      tags:
      - RoleInstances
      operationId: microsoftAzureRoleinstancesStop
      description: Powers off (stop) a role instance of a vendor network function.
      parameters:
      - name: locationName
        in: path
        required: true
        description: The Azure region where the network function resource was created by customer.
        schema:
          type: string
      - name: vendorName
        in: path
        required: true
        description: The name of the vendor.
        schema:
          type: string
      - name: serviceKey
        in: path
        required: true
        description: The GUID for the vendor network function.
        schema:
          type: string
      - name: roleInstanceName
        in: path
        required: true
        description: The name of the role instance of the vendor network function.
        schema:
          type: string
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter
      responses:
        '200':
          description: OK.
        '202':
          description: Accepted. The header contains 'Azure-AsyncOperation' header which can be used to monitor the progress of the operation.
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Stop a role instance of a vendor network function:
          $ref: ./examples/RoleInstanceStop.json
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: location
      summary: Microsoft Azure Post Subscriptions Subscriptionid Providers Microsoft…
  ? /subscriptions/{subscriptionId}/providers/Microsoft.HybridNetwork/locations/{locationName}/vendors/{vendorName}/networkFunctions/{serviceKey}/roleInstances/{roleInstanceName}/restart
  : post:
      tags:
      - RoleInstances
      operationId: microsoftAzureRoleinstancesRestart
      description: Restarts a role instance of a vendor network function.
      parameters:
      - name: locationName
        in: path
        required: true
        description: The Azure region where the network function resource was created by customer.
        schema:
          type: string
      - name: vendorName
        in: path
        required: true
        description: The name of the vendor.
        schema:
          type: string
      - name: serviceKey
        in: path
        required: true
        description: The GUID for the vendor network function.
        schema:
          type: string
      - name: roleInstanceName
        in: path
        required: true
        description: The name of the role instance of the vendor network function.
        schema:
          type: string
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter
      responses:
        '200':
          description: OK.
        '202':
          description: Accepted. The header contains 'Azure-AsyncOperation' header which can be used to monitor the progress of the operation.
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Restart a role instance of a vendor network function:
          $ref: ./examples/RoleInstanceRestart.json
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: location
      summary: Microsoft Azure Post Subscriptions Subscriptionid Providers Microsoft…
  ? /subscriptions/{subscriptionId}/providers/Microsoft.HybridNetwork/locations/{locationName}/vendors/{vendorName}/networkFunctions/{serviceKey}/roleInstances/{roleInstanceName}
  : get:
      tags:
      - RoleInstances
      operationId: microsoftAzureRoleinstancesGet
      description: Gets the information of role instance of vendor network function.
      parameters:
      - name: locationName
        in: path
        required: true
        description: The Azure region where the network function resource was created by customer.
        schema:
          type: string
      - name: vendorName
        in: path
        required: true
        description: The name of the vendor.
        schema:
          type: string
      - name: serviceKey
        in: path
        required: true
        description: The GUID for the vendor network function.
        schema:
          type: string
      - name: roleInstanceName
        in: path
        required: true
        description: The name of the role instance of the vendor network function.
        schema:
          type: string
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RoleInstance'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Get the operational state of role instance of vendor network function:
          $ref: ./examples/RoleInstanceGet.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft…
  ? /subscriptions/{subscriptionId}/providers/Microsoft.HybridNetwork/locations/{locationName}/vendors/{vendorName}/networkFunctions/{serviceKey}/roleInstances
  : get:
      tags:
      - RoleInstances
      operationId: microsoftAzureRoleinstancesList
      description: Lists the information of role instances of vendor network function.
      parameters:
      - name: locationName
        in: path
        required: true
        description: The Azure region where the network function resource was created by customer.
        schema:
          type: string
      - name: vendorName
        in: path
        required: true
        description: The name of the vendor.
        schema:
          type: string
      - name: serviceKey
        in: path
        required: true
        description: The GUID for the vendor network function.
        schema:
          type: string
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NetworkFunctionRoleInstanceListResult'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse
      x-ms-examples:
        List all role instances of vendor network function:
          $ref: ./examples/RoleInstanceListByVendorNetworkFunction.json
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft…
components:
  schemas:
    NetworkFunctionRoleInstanceListResult:
      description: List of role instances of vendor network function.
      properties:
        value:
          readOnly: true
          type: array
          items:
            $ref: '#/components/schemas/RoleInstance'
          description: A list of role instances.
        nextLink:
          readOnly: true
          type: string
          description: The URL to get the next set of results.
    RoleInstanceProperties:
      properties:
        operationalState:
          type: string
          description: The operational state of the role instance.
          enum:
          - Unknown
          - Stopped
          - Running
          - Stopping
          - Starting
          x-ms-enum:
            name: OperationalState
            modelAsString: true
      description: The role instance properties of the network function.
    RoleInstance:
      x-ms-azure-resource: true
      properties:
        name:
          type: string
          description: The role instance name.
        id:
          type: string
          description: The ARM ID of the resource.
        type:
          type: string
          description: The type of the resource.
        properties:
          x-ms-client-flatten: true
          $ref: '#/components/schemas/RoleInstanceProperties'
          description: The role instance properties.
      description: The role instance sub resource.
  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.