Amazon Resource Explorer Views API

The Views API from Amazon Resource Explorer — 5 operation(s) for views.

GitHub OpenAPI

Operations 5

POST /BatchGetView Batch Get View #
POST /CreateView Create View #
POST /GetView Get View #
POST /DeleteView Delete View #
POST /ListViews List Views #

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/amazon-resource-explorer:amazon-resource-explorer-views-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

amazon-resource-explorer-views-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS Resource Explorer Views API
  version: '2022-07-28'
  description: Generated from AWS's published Smithy model for AWS Resource Explorer. 5 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://resource-explorer-2.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /BatchGetView:
    post:
      operationId: BatchGetView
      summary: Batch Get View
      description: Retrieves details about a list of views.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchGetViewOutput'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                ViewArns:
                  type: array
                  items:
                    type: string
                  description: A list of Amazon resource names (ARNs) that identify the views you want details for.
      tags:
      - Views
  /CreateView:
    post:
      operationId: CreateView
      summary: Create View
      description: Creates a view that users can query by using the Search operation. Results from queries that you make using
        this view include only resources that match the view's Filters. For more information about Amazon Web Services Resource
        Explorer views, see Managing views in the Amazon Web Services Resource Explorer User Guide. Only the principals with
        an IAM identity-based policy that grants Allow to the Search action on a Resource with the Amazon resource name (ARN)
        of this view can Search using views you create with this operation.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateViewOutput'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                ClientToken:
                  type: string
                  description: This value helps ensure idempotency. Resource Explorer uses this value to prevent the accidental
                    creation of duplicate versions. We recommend that you generate a UUID-type value to ensure the uniqueness
                    of your views.
                ViewName:
                  type: string
                  description: The name of the new view. This name appears in the list of views in Resource Explorer. The
                    name must be no more than 64 characters long, and can include letters, digits, and the dash (-) character.
                    The name must be unique within its Amazon Web Services Region.
                IncludedProperties:
                  type: array
                  items:
                    $ref: '#/components/schemas/IncludedProperty'
                  description: Specifies optional fields that you want included in search results from this view. It is a
                    list of objects that each describe a field to include. The default is an empty list, with no optional
                    fields included in the results.
                Scope:
                  type: string
                  description: The root ARN of the account, an organizational unit (OU), or an organization ARN. If left empty,
                    the default is account.
                Filters:
                  $ref: '#/components/schemas/SearchFilter'
                Tags:
                  type: object
                  additionalProperties:
                    type: string
                  description: Tag key and value pairs that are attached to the view.
              required:
              - ViewName
      tags:
      - Views
  /GetView:
    post:
      operationId: GetView
      summary: Get View
      description: Retrieves details of the specified view.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetViewOutput'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                ViewArn:
                  type: string
                  description: The Amazon resource name (ARN) of the view that you want information about.
              required:
              - ViewArn
      tags:
      - Views
  /DeleteView:
    post:
      operationId: DeleteView
      summary: Delete View
      description: Deletes the specified view. If the specified view is the default view for its Amazon Web Services Region,
        then all Search operations in that Region must explicitly specify the view to use until you configure a new default
        by calling the AssociateDefaultView operation.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteViewOutput'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                ViewArn:
                  type: string
                  description: The Amazon resource name (ARN) of the view that you want to delete.
              required:
              - ViewArn
      tags:
      - Views
  /ListViews:
    post:
      operationId: ListViews
      summary: List Views
      description: Lists the Amazon resource names (ARNs) of the views available in the Amazon Web Services Region in which
        you call this operation. Always check the NextToken response parameter for a null value when calling a paginated operation.
        These operations can occasionally return an empty set of results even when there are more results available. The NextToken
        response parameter value is null only when there are no more results to display.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListViewsOutput'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                NextToken:
                  type: string
                  description: The parameter for receiving additional results if you receive a NextToken response in a previous
                    request. A NextToken response indicates that more output is available. Set this parameter to the value
                    of the previous call's NextToken response to indicate where the output should continue from. The pagination
                    tokens expire after 24 hours.
                MaxResults:
                  type: integer
                  description: 'The maximum number of results that you want included on each page of the response. If you
                    do not include this parameter, it defaults to a value appropriate to the operation. If additional items
                    exist beyond those included in the current response, the NextToken response element is present and has
                    a value (is not null). Include that value as the NextToken request parameter in the next call to the operation
                    to get the next part of the results. An API operation can return fewer results than the maximum even when
                    there are more results available. You should check NextToken after every operation to '
      tags:
      - Views
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: resource-explorer-2
  schemas:
    AccessDeniedException:
      type: object
      properties:
        Message:
          type: string
    BatchGetViewError:
      type: object
      properties:
        ViewArn:
          type: string
          description: The Amazon resource name (ARN) of the view for which Resource Explorer failed to retrieve details.
        ErrorMessage:
          type: string
          description: The description of the error for the specified view.
      required:
      - ViewArn
      - ErrorMessage
    BatchGetViewOutput:
      type: object
      properties:
        Views:
          type: array
          items:
            $ref: '#/components/schemas/View'
          description: A structure with a list of objects with details for each of the specified views.
        Errors:
          type: array
          items:
            $ref: '#/components/schemas/BatchGetViewError'
          description: If any of the specified ARNs result in an error, then this structure describes the error.
    ConflictException:
      type: object
      properties:
        Message:
          type: string
      required:
      - Message
    CreateViewOutput:
      type: object
      properties:
        View:
          $ref: '#/components/schemas/View'
    DeleteViewOutput:
      type: object
      properties:
        ViewArn:
          type: string
          description: The Amazon resource name (ARN) of the view that you successfully deleted.
    GetViewOutput:
      type: object
      properties:
        View:
          $ref: '#/components/schemas/View'
        Tags:
          type: object
          additionalProperties:
            type: string
          description: Tag key and value pairs that are attached to the view.
    IncludedProperty:
      type: object
      properties:
        Name:
          type: string
          description: 'The name of the property that is included in this view. You can specify the following property names
            for this field: tags'
      required:
      - Name
    InternalServerException:
      type: object
      properties:
        Message:
          type: string
    ListViewsOutput:
      type: object
      properties:
        Views:
          type: array
          items:
            type: string
          description: The list of views available in the Amazon Web Services Region in which you called this operation.
        NextToken:
          type: string
          description: If present, indicates that more output is available than is included in the current response. Use this
            value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output.
            You should repeat this until the NextToken response element comes back as null. The pagination tokens expire after
            24 hours.
    ResourceNotFoundException:
      type: object
      properties:
        Message:
          type: string
    SearchFilter:
      type: object
      properties:
        FilterString:
          type: string
          description: The string that contains the search keywords, prefixes, and operators to control the results that can
            be returned by a Search operation. For more details, see Search query syntax.
      required:
      - FilterString
    ServiceQuotaExceededException:
      type: object
      properties:
        Message:
          type: string
        Name:
          type: string
          description: The name of the service quota that was exceeded by the request.
        Value:
          type: string
          description: The current value for the quota that the request tried to exceed.
      required:
      - Message
      - Name
      - Value
    ThrottlingException:
      type: object
      properties:
        Message:
          type: string
    UnauthorizedException:
      type: object
      properties:
        Message:
          type: string
    ValidationException:
      type: object
      properties:
        Message:
          type: string
        FieldList:
          type: array
          items:
            $ref: '#/components/schemas/ValidationExceptionField'
          description: An array of the request fields that had validation errors.
      required:
      - Message
    ValidationExceptionField:
      type: object
      properties:
        Name:
          type: string
          description: The name of the request field that had a validation error.
        ValidationIssue:
          type: string
          description: The validation error caused by the request field.
      required:
      - Name
      - ValidationIssue
    View:
      type: object
      properties:
        ViewArn:
          type: string
          description: The Amazon resource name (ARN) of the view.
        ViewName:
          type: string
          description: The name of the view.
        Owner:
          type: string
          description: The Amazon Web Services account that owns this view.
        LastUpdatedAt:
          type: string
          description: The date and time when this view was last modified.
        Scope:
          type: string
          description: An Amazon resource name (ARN) of an Amazon Web Services account, an organization, or an organizational
            unit (OU) that specifies whether this view includes resources from only the specified Amazon Web Services account,
            all accounts in the specified organization, or all accounts in the specified OU. If not specified, the value defaults
            to the Amazon Web Services account used to call this operation.
        IncludedProperties:
          type: array
          items:
            $ref: '#/components/schemas/IncludedProperty'
          description: A structure that contains additional information about the view.
        Filters:
          $ref: '#/components/schemas/SearchFilter'
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/resource-explorer-2/service/2022-07-28/resource-explorer-2-2022-07-28.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)