Azure SQL Database Job Steps API

The JobSteps API from Azure SQL Database — 4 operation(s) for jobsteps.

GitHub OpenAPI

Operations 6

GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps Job steps list by job #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName} Job steps get #
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName} Job steps create or update #
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName} Job steps delete #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}/steps Job steps list by version #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}/steps/{stepName} Job steps get by version #

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-sql-database:microsoft-azure-sql-database-jobsteps-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-sql-database-jobsteps-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SqlManagementClient Job Steps API
  version: '2025-01-01'
  description: The Azure SQL Database management API provides a RESTful set of web APIs that interact with Azure SQL Database services to manage your databases. The API enables users to create, retrieve, update, and delete databases, servers, and other entities.
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: JobSteps
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps
  : get:
      operationId: JobSteps_ListByJob
      tags:
      - JobSteps
      description: Gets all job steps for a job's current version.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: serverName
        in: path
        description: The name of the server.
        required: true
        schema:
          type: string
      - name: jobAgentName
        in: path
        description: The name of the job agent.
        required: true
        schema:
          type: string
      - name: jobName
        in: path
        description: The name of the job.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobStepListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Job steps list by job
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}
  : get:
      operationId: JobSteps_Get
      tags:
      - JobSteps
      description: Gets a job step in a job's current version.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: serverName
        in: path
        description: The name of the server.
        required: true
        schema:
          type: string
      - name: jobAgentName
        in: path
        description: The name of the job agent.
        required: true
        schema:
          type: string
      - name: jobName
        in: path
        description: The name of the job.
        required: true
        schema:
          type: string
      - name: stepName
        in: path
        description: The name of the job step.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobStep'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Job steps get
      x-summary-source: derived
    put:
      operationId: JobSteps_CreateOrUpdate
      tags:
      - JobSteps
      description: Creates or updates a job step. This will implicitly create a new job version.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: serverName
        in: path
        description: The name of the server.
        required: true
        schema:
          type: string
      - name: jobAgentName
        in: path
        description: The name of the job agent.
        required: true
        schema:
          type: string
      - name: jobName
        in: path
        description: The name of the job.
        required: true
        schema:
          type: string
      - name: stepName
        in: path
        description: The name of the job step.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Resource 'JobStep' update operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobStep'
        '201':
          description: Resource 'JobStep' create operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobStep'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/JobStep'
        description: The requested state of the job step.
        required: true
      summary: Job steps create or update
      x-summary-source: derived
    delete:
      operationId: JobSteps_Delete
      tags:
      - JobSteps
      description: Deletes a job step. This will implicitly create a new job version.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: serverName
        in: path
        description: The name of the server.
        required: true
        schema:
          type: string
      - name: jobAgentName
        in: path
        description: The name of the job agent.
        required: true
        schema:
          type: string
      - name: jobName
        in: path
        description: The name of the job.
        required: true
        schema:
          type: string
      - name: stepName
        in: path
        description: The name of the job step.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Resource deleted successfully.
        '204':
          description: Resource does not exist.
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Job steps delete
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}/steps
  : get:
      operationId: JobSteps_ListByVersion
      tags:
      - JobSteps
      description: Gets all job steps in the specified job version.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: serverName
        in: path
        description: The name of the server.
        required: true
        schema:
          type: string
      - name: jobAgentName
        in: path
        description: The name of the job agent.
        required: true
        schema:
          type: string
      - name: jobName
        in: path
        description: The name of the job.
        required: true
        schema:
          type: string
      - name: jobVersion
        in: path
        description: The version of the job to get.
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobStepListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Job steps list by version
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}/steps/{stepName}
  : get:
      operationId: JobSteps_GetByVersion
      tags:
      - JobSteps
      description: Gets the specified version of a job step.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: serverName
        in: path
        description: The name of the server.
        required: true
        schema:
          type: string
      - name: jobAgentName
        in: path
        description: The name of the job agent.
        required: true
        schema:
          type: string
      - name: jobName
        in: path
        description: The name of the job.
        required: true
        schema:
          type: string
      - name: jobVersion
        in: path
        description: The version of the job to get.
        required: true
        schema:
          type: integer
          format: int32
      - name: stepName
        in: path
        description: The name of the job step.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobStep'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Job steps get by version
      x-summary-source: derived
components:
  schemas:
    JobStep:
      type: object
      description: A job step.
      properties:
        properties:
          $ref: '#/components/schemas/JobStepProperties'
          description: Resource properties.
          x-ms-client-flatten: true
      allOf:
      - $ref: '#/components/schemas/ProxyResource'
    JobStepAction:
      type: object
      description: The action to be executed by a job step.
      properties:
        type:
          type: string
          description: Type of action being executed by the job step.
          default: TSql
          enum:
          - TSql
          x-ms-enum:
            name: JobStepActionType
            modelAsString: true
            values:
            - name: TSql
              value: TSql
              description: TSql
        source:
          type: string
          description: The source of the action to execute.
          default: Inline
          enum:
          - Inline
          x-ms-enum:
            name: JobStepActionSource
            modelAsString: true
            values:
            - name: Inline
              value: Inline
              description: Inline
        value:
          type: string
          description: The action value, for example the text of the T-SQL script to execute.
      required:
      - value
    ProxyResource:
      type: object
      title: Proxy Resource
      description: The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
      allOf:
      - $ref: '#/components/schemas/Resource'
    ErrorResponse:
      type: object
      title: Error response
      description: Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
          description: The error object.
    JobStepOutput:
      type: object
      description: The output configuration of a job step.
      properties:
        type:
          type: string
          description: The output destination type.
          default: SqlDatabase
          enum:
          - SqlDatabase
          x-ms-enum:
            name: JobStepOutputType
            modelAsString: true
            values:
            - name: SqlDatabase
              value: SqlDatabase
              description: SqlDatabase
        subscriptionId:
          $ref: '#/components/schemas/Azure.Core.uuid'
          description: The output destination subscription id.
        resourceGroupName:
          type: string
          description: The output destination resource group.
        serverName:
          type: string
          description: The output destination server name.
        databaseName:
          type: string
          description: The output destination database.
        schemaName:
          type: string
          description: The output destination schema.
          default: dbo
        tableName:
          type: string
          description: The output destination table.
        credential:
          type: string
          description: The resource ID of the credential to use to connect to the output destination.
      required:
      - serverName
      - databaseName
      - tableName
    JobStepExecutionOptions:
      type: object
      description: The execution options of a job step.
      properties:
        timeoutSeconds:
          type: integer
          format: int32
          description: Execution timeout for the job step.
          default: 43200
        retryAttempts:
          type: integer
          format: int32
          description: Maximum number of times the job step will be reattempted if the first attempt fails.
          default: 10
        initialRetryIntervalSeconds:
          type: integer
          format: int32
          description: Initial delay between retries for job step execution.
          default: 1
        maximumRetryIntervalSeconds:
          type: integer
          format: int32
          description: The maximum amount of time to wait between retries for job step execution.
          default: 120
        retryIntervalBackoffMultiplier:
          type: number
          format: float
          description: The backoff multiplier for the time between retries.
          default: 2
    Azure.Core.uuid:
      type: string
      format: uuid
      description: Universally Unique Identifier
    JobStepProperties:
      type: object
      description: Properties of a job step.
      properties:
        stepId:
          type: integer
          format: int32
          description: The job step's index within the job. If not specified when creating the job step, it will be created as the last step. If not specified when updating the job step, the step id is not modified.
        targetGroup:
          type: string
          description: The resource ID of the target group that the job step will be executed on.
        credential:
          type: string
          description: The resource ID of the job credential that will be used to connect to the targets.
        action:
          $ref: '#/components/schemas/JobStepAction'
          description: The action payload of the job step.
        output:
          $ref: '#/components/schemas/JobStepOutput'
          description: Output destination properties of the job step.
        executionOptions:
          $ref: '#/components/schemas/JobStepExecutionOptions'
          description: Execution options for the job step.
      required:
      - targetGroup
      - action
    JobStepListResult:
      type: object
      description: The response of a JobStep list operation.
      properties:
        value:
          type: array
          description: The JobStep items on this page
          items:
            $ref: '#/components/schemas/JobStep'
        nextLink:
          type: string
          format: uri
          description: The link to the next page of items
      required:
      - value
  parameters:
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      description: The ID of the target subscription. The value must be an UUID.
      required: true
      schema:
        type: string
        format: uuid
    ResourceGroupNameParameter:
      name: resourceGroupName
      in: path
      description: The name of the resource group. The name is case insensitive.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 90
        minLength: 1
    ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      schema:
        type: string
        minLength: 1
  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.