AWS Security Hub API

The Hub API from AWS Security Hub — 1 operation(s) for hub.

GitHub OpenAPI
Business capability
Cybersecurity Management BC-620

Operations 4

GET /accounts Describe Hub #
DELETE /accounts Disable Security Hub #
POST /accounts Enable Security Hub #
PATCH /accounts Update Security Hub Configuration #

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/aws-security-hub:aws-security-hub-hub-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

aws-security-hub-hub-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS SecurityHub Hub API
  version: '2018-10-26'
  description: Generated from AWS's published Smithy model for AWS SecurityHub. 4 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://securityhub.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /accounts:
    get:
      operationId: DescribeHub
      summary: Describe Hub
      description: Returns details about the Hub resource in your account, including the HubArn and the time when you enabled
        Security Hub CSPM.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DescribeHubResponse'
              example:
                HubArn: arn:aws:securityhub:us-west-1:123456789012:hub/default
                SubscribedAt: '2019-11-19T23:15:10.046Z'
                AutoEnableControls: true
                ControlFindingGenerator: SECURITY_CONTROL
        '500':
          description: InternalException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalException'
        '401':
          description: InvalidAccessException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidAccessException'
        '400':
          description: InvalidInputException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidInputException'
        '429':
          description: LimitExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
      parameters:
      - name: HubArn
        in: query
        schema:
          type: string
        description: The ARN of the Hub resource to retrieve.
      tags:
      - Hub
    delete:
      operationId: DisableSecurityHub
      summary: Disable Security Hub
      description: Disables Security Hub CSPM in your account only in the current Amazon Web Services Region. To disable Security
        Hub CSPM in all Regions, you must submit one request per Region where you have enabled Security Hub CSPM. You can't
        disable Security Hub CSPM in an account that is currently the Security Hub CSPM administrator. When you disable Security
        Hub CSPM, your existing findings and insights and any Security Hub CSPM configuration settings are deleted after 90
        days and cannot be recovered. Any standards that were enabled are disabled, and your administrator and member account
        associations are removed. If you want to save your existing findings, you must export them before you disable Security
        Hub CSPM.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DisableSecurityHubResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalException'
        '401':
          description: InvalidAccessException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidAccessException'
        '429':
          description: LimitExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
      tags:
      - Hub
    post:
      operationId: EnableSecurityHub
      summary: Enable Security Hub
      description: 'Enables Security Hub CSPM for your account in the current Region or the Region you specify in the request.
        When you enable Security Hub CSPM, you grant to Security Hub CSPM the permissions necessary to gather findings from
        other services that are integrated with Security Hub CSPM. When you use the EnableSecurityHub operation to enable
        Security Hub CSPM, you also automatically enable the following standards: Center for Internet Security (CIS) Amazon
        Web Services Foundations Benchmark v1.2.0 Amazon Web Services Foundational Security Best Practices Other standards
        are not automatically enabled. To opt out of automatically enabled standards, set EnableDefaultStandards to false.
        After you enable Security Hub CSPM, to enable a standard, use the BatchEnableStandards operation. To disable a standard,
        use the BatchDisableStandards operation. To learn more, see the setup information in the Security Hub CSPM User Guide.'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnableSecurityHubResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalException'
        '401':
          description: InvalidAccessException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidAccessException'
        '429':
          description: LimitExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '409':
          description: ResourceConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceConflictException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                Tags:
                  type: object
                  additionalProperties:
                    type: string
                  description: The tags to add to the hub resource when you enable Security Hub CSPM.
                EnableDefaultStandards:
                  type: boolean
                  description: Whether to enable the security standards that Security Hub CSPM has designated as automatically
                    enabled. If you don't provide a value for EnableDefaultStandards, it is set to true. To not enable the
                    automatically enabled standards, set EnableDefaultStandards to false.
                ControlFindingGenerator:
                  type: string
                  enum:
                  - STANDARD_CONTROL
                  - SECURITY_CONTROL
                  description: 'This field, used when enabling Security Hub CSPM, specifies whether the calling account has
                    consolidated control findings turned on. If the value for this field is set to SECURITY_CONTROL, Security
                    Hub CSPM generates a single finding for a control check even when the check applies to multiple enabled
                    standards. If the value for this field is set to STANDARD_CONTROL, Security Hub CSPM generates separate
                    findings for a control check when the check applies to multiple enabled standards. The value for this
                    field in a member account matches the value in the administrator account. For accounts that '
            example:
              Tags:
                Department: Security
              EnableDefaultStandards: true
      tags:
      - Hub
    patch:
      operationId: UpdateSecurityHubConfiguration
      summary: Update Security Hub Configuration
      description: Updates configuration options for Security Hub CSPM.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateSecurityHubConfigurationResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalException'
        '401':
          description: InvalidAccessException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidAccessException'
        '400':
          description: InvalidInputException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidInputException'
        '429':
          description: LimitExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                AutoEnableControls:
                  type: boolean
                  description: Whether to automatically enable new controls when they are added to standards that are enabled.
                    By default, this is set to true, and new controls are enabled automatically. To not automatically enable
                    new controls, set this to false. When you automatically enable new controls, you can interact with the
                    controls in the console and programmatically immediately after release. However, automatically enabled
                    controls have a temporary default status of DISABLED. It can take up to several days for Security Hub
                    CSPM to process the control release and designate the control as ENABLED in your account. D
                ControlFindingGenerator:
                  type: string
                  enum:
                  - STANDARD_CONTROL
                  - SECURITY_CONTROL
                  description: Updates whether the calling account has consolidated control findings turned on. If the value
                    for this field is set to SECURITY_CONTROL, Security Hub CSPM generates a single finding for a control
                    check even when the check applies to multiple enabled standards. If the value for this field is set to
                    STANDARD_CONTROL, Security Hub CSPM generates separate findings for a control check when the check applies
                    to multiple enabled standards. For accounts that are part of an organization, this value can only be updated
                    in the administrator account.
            example:
              AutoEnableControls: true
              ControlFindingGenerator: SECURITY_CONTROL
      tags:
      - Hub
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: securityhub
  schemas:
    AccessDeniedException:
      type: object
      properties:
        Message:
          type: string
        Code:
          type: string
    DescribeHubResponse:
      type: object
      properties:
        HubArn:
          type: string
          description: The ARN of the Hub resource that was retrieved.
        SubscribedAt:
          type: string
          description: The date and time when Security Hub CSPM was enabled in the account.
        AutoEnableControls:
          type: boolean
          description: Whether to automatically enable new controls when they are added to standards that are enabled. If
            set to true, then new controls for enabled standards are enabled automatically. If set to false, then new controls
            are not enabled. When you automatically enable new controls, you can interact with the controls in the console
            and programmatically immediately after release. However, automatically enabled controls have a temporary default
            status of DISABLED. It can take up to several days for Security Hub CSPM to process the control release and designate
            the control as ENABLED in your account. Duri
        ControlFindingGenerator:
          type: string
          enum:
          - STANDARD_CONTROL
          - SECURITY_CONTROL
          description: 'Specifies whether the calling account has consolidated control findings turned on. If the value for
            this field is set to SECURITY_CONTROL, Security Hub CSPM generates a single finding for a control check even when
            the check applies to multiple enabled standards. If the value for this field is set to STANDARD_CONTROL, Security
            Hub CSPM generates separate findings for a control check when the check applies to multiple enabled standards.
            The value for this field in a member account matches the value in the administrator account. For accounts that
            aren''t part of an organization, the default value '
    DisableSecurityHubResponse:
      type: object
      properties: {}
    EnableSecurityHubResponse:
      type: object
      properties: {}
    InternalException:
      type: object
      properties:
        Message:
          type: string
        Code:
          type: string
    InvalidAccessException:
      type: object
      properties:
        Message:
          type: string
        Code:
          type: string
    InvalidInputException:
      type: object
      properties:
        Message:
          type: string
        Code:
          type: string
    LimitExceededException:
      type: object
      properties:
        Message:
          type: string
        Code:
          type: string
    ResourceConflictException:
      type: object
      properties:
        Message:
          type: string
        Code:
          type: string
    ResourceNotFoundException:
      type: object
      properties:
        Message:
          type: string
        Code:
          type: string
    UpdateSecurityHubConfigurationResponse:
      type: object
      properties: {}
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/securityhub/service/2018-10-26/securityhub-2018-10-26.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)