Microsoft Azure Security Contacts API

The Security Contacts API from Microsoft Azure, for security contacts.

GitHub OpenAPI
Business capability
Threat Detection & Response Management BC-620.30

Operations 4

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

GET /subscriptions/{subscriptionId}/providers/Microsoft.Security/securityContacts List security contacts for a subscription · Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Security… #
Ask an LLM
“Who receives Defender for Cloud security alert emails for my subscription?”
“Can I see every security contact configuration on a subscription?”
Tell an agent
List all security contact configurations for my subscription.
Show who is set up to get security alerts on this subscription.
GET /subscriptions/{subscriptionId}/providers/Microsoft.Security/securityContacts/{securityContactName} Get a security contact configuration · Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Security… #
Ask an LLM
“What email and alert settings does my default security contact have?”
“Can I look up one security contact configuration by name?”
Tell an agent
Get security contact configuration {securityContactName}.
Show the alert notification settings of security contact {securityContactName}.
PUT /subscriptions/{subscriptionId}/providers/Microsoft.Security/securityContacts/{securityContactName} Create a security contact configuration · Microsoft Azure Put Subscriptions Subscriptionid Providers Microsoft Security… #
Ask an LLM
“How do I set who gets notified about security alerts on my subscription?”
“Can I configure the emails that receive Defender for Cloud notifications?”
Tell an agent
Create security contact {securityContactName} with configuration {securityContact}.
Set up security contact {securityContactName} for this subscription.
DELETE /subscriptions/{subscriptionId}/providers/Microsoft.Security/securityContacts/{securityContactName} Delete a security contact configuration · Microsoft Azure Delete Subscriptions Subscriptionid Providers Microsoft… #
Ask an LLM
“Can I remove a security contact from my subscription?”
“How do I stop a contact from receiving security alert emails?”
Tell an agent destructive · confirm first
Delete security contact configuration {securityContactName}.
Remove security contact {securityContactName} from the subscription.

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-security-contacts-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-security-contacts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Microsoft Defender for Cloud Security…
  description: API spec for Microsoft.Security (Microsoft Defender for Cloud) resource provider
  version: 2023-12-01-preview
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: Security Contacts
paths:
  /subscriptions/{subscriptionId}/providers/Microsoft.Security/securityContacts:
    get:
      x-ms-examples:
        List security contact data:
          $ref: ./examples/SecurityContacts/GetSecurityContactsSubscription_example.json
      tags:
      - Security Contacts
      description: List all security contact configurations for the subscription
      operationId: microsoftAzureSecuritycontactsList
      parameters:
      - $ref: ../../../common/v1/types.json#/parameters/ApiVersion
      - $ref: ../../../common/v1/types.json#/parameters/SubscriptionId
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SecurityContactList'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../../common/v1/types.json#/definitions/CloudError
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Security…
  /subscriptions/{subscriptionId}/providers/Microsoft.Security/securityContacts/{securityContactName}:
    get:
      x-ms-examples:
        Get a security contact:
          $ref: ./examples/SecurityContacts/GetSecurityContact_example.json
      tags:
      - Security Contacts
      description: Get Default Security contact configurations for the subscription
      operationId: microsoftAzureSecuritycontactsGet
      parameters:
      - $ref: ../../../common/v1/types.json#/parameters/ApiVersion
      - $ref: ../../../common/v1/types.json#/parameters/SubscriptionId
      - $ref: '#/components/parameters/SecurityContactName'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SecurityContact'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../../common/v1/types.json#/definitions/CloudError
      summary: Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Security…
    put:
      x-ms-examples:
        Create security contact data:
          $ref: ./examples/SecurityContacts/CreateSecurityContact_example.json
      tags:
      - Security Contacts
      description: Create security contact configurations for the subscription
      operationId: microsoftAzureSecuritycontactsCreate
      parameters:
      - $ref: ../../../common/v1/types.json#/parameters/ApiVersion
      - $ref: ../../../common/v1/types.json#/parameters/SubscriptionId
      - $ref: '#/components/parameters/SecurityContactName'
      - $ref: '#/components/parameters/SecurityContact'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SecurityContact'
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SecurityContact'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../../common/v1/types.json#/definitions/CloudError
      summary: Microsoft Azure Put Subscriptions Subscriptionid Providers Microsoft Security…
    delete:
      x-ms-examples:
        Deletes a security contact data:
          $ref: ./examples/SecurityContacts/DeleteSecurityContact_example.json
      tags:
      - Security Contacts
      description: Delete security contact configurations for the subscription
      operationId: microsoftAzureSecuritycontactsDelete
      parameters:
      - $ref: ../../../common/v1/types.json#/parameters/ApiVersion
      - $ref: ../../../common/v1/types.json#/parameters/SubscriptionId
      - $ref: '#/components/parameters/SecurityContactName'
      responses:
        '200':
          description: Security contact deleted
        '204':
          description: Security contact was not found
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../../common/v1/types.json#/definitions/CloudError
      summary: Microsoft Azure Delete Subscriptions Subscriptionid Providers Microsoft…
components:
  schemas:
    SecurityContactList:
      type: object
      description: List of security contacts response
      required:
      - value
      properties:
        value:
          description: List of security contacts
          type: array
          items:
            $ref: '#/components/schemas/SecurityContact'
        nextLink:
          readOnly: true
          type: string
          description: The URI to fetch the next page.
    SecurityContact:
      type: object
      description: Contact details and configurations for notifications coming from Microsoft Defender for Cloud.
      properties:
        properties:
          x-ms-client-flatten: true
          description: Security contact data
          $ref: '#/components/schemas/SecurityContactProperties'
      allOf:
      - $ref: ../../../common/v1/types.json#/definitions/Resource
    SecurityContactProperties:
      type: object
      description: Describes security contact properties
      properties:
        emails:
          type: string
          description: List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact.
        phone:
          type: string
          description: The security contact's phone number
        isEnabled:
          type: boolean
          description: Indicates whether the security contact is enabled.
        notificationsSources:
          type: array
          description: A collection of sources types which evaluate the email notification.
          items:
            $ref: '#/components/schemas/NotificationsSource'
          x-ms-identifiers: []
        notificationsByRole:
          type: object
          description: Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription.
          properties:
            state:
              type: string
              description: Defines whether to send email notifications from AMicrosoft Defender for Cloud to persons with specific RBAC roles on the subscription.
              enum:
              - 'On'
              - 'Off'
              x-ms-enum:
                name: state
                modelAsString: true
                values:
                - value: 'On'
                  description: Send notification on new alerts to the subscription's admins
                - value: 'Off'
                  description: Don't send notification on new alerts to the subscription's admins
            roles:
              type: array
              description: 'Defines which RBAC roles will get email notifications from Microsoft Defender for Cloud. List of allowed RBAC roles: '
              items:
                $ref: '#/components/schemas/SecurityContactRole'
    NotificationsSource:
      type: object
      description: A valid notification source type
      discriminator:
        propertyName: sourceType
      required:
      - sourceType
      properties:
        sourceType:
          type: string
          description: The source type that will trigger the notification
          enum:
          - Alert
          - AttackPath
          x-ms-enum:
            name: sourceType
            modelAsString: true
    SecurityContactRole:
      type: string
      description: A possible role to configure sending security notification alerts to
      enum:
      - AccountAdmin
      - ServiceAdmin
      - Owner
      - Contributor
      x-ms-enum:
        name: securityContactRole
        modelAsString: true
        values:
        - value: AccountAdmin
          description: If enabled, send notification on new alerts to the account admins
        - value: ServiceAdmin
          description: If enabled, send notification on new alerts to the service admins
        - value: Owner
          description: If enabled, send notification on new alerts to the subscription owners
        - value: Contributor
          description: If enabled, send notification on new alerts to the subscription contributors
  parameters:
    SecurityContact:
      name: securityContact
      in: body
      required: true
      description: Security contact object
      schema:
        $ref: '#/components/schemas/SecurityContact'
      x-ms-parameter-location: method
    SecurityContactName:
      name: securityContactName
      x-ms-enum:
        name: securityContactName
        modelAsString: true
        values:
        - value: default
          description: The single applicable name of the security contact object
      in: path
      required: true
      description: Name of the security contact object
      x-ms-parameter-location: method
      schema:
        type: string
        enum:
        - default
        maxLength: 7
        minLength: 7
        pattern: ^(default)$
  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