:doc:`OpenSearchServiceServerless <../../opensearchserverless>` / Client / batch_get_vpc_endpoint

**********************
batch_get_vpc_endpoint
**********************



.. py:method:: OpenSearchServiceServerless.Client.batch_get_vpc_endpoint(**kwargs)

  

  Returns attributes for one or more VPC endpoints associated with the current account. For more information, see `Access Amazon OpenSearch Serverless using an interface endpoint <https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-vpc.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/BatchGetVpcEndpoint>`_  


  **Request Syntax**
  ::

    response = client.batch_get_vpc_endpoint(
        ids=[
            'string',
        ]
    )
    
  :type ids: list
  :param ids: **[REQUIRED]** 

    A list of VPC endpoint identifiers.

    

  
    - *(string) --* 

    

  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'vpcEndpointDetails': [
              {
                  'id': 'string',
                  'name': 'string',
                  'vpcId': 'string',
                  'subnetIds': [
                      'string',
                  ],
                  'securityGroupIds': [
                      'string',
                  ],
                  'status': 'PENDING'|'DELETING'|'ACTIVE'|'FAILED',
                  'createdDate': 123,
                  'failureCode': 'string',
                  'failureMessage': 'string'
              },
          ],
          'vpcEndpointErrorDetails': [
              {
                  'id': 'string',
                  'errorMessage': 'string',
                  'errorCode': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **vpcEndpointDetails** *(list) --* 

        Details about the specified VPC endpoint.

        
        

        - *(dict) --* 

          Details about an OpenSearch Serverless-managed interface endpoint.

          
          

          - **id** *(string) --* 

            The unique identifier of the endpoint.

            
          

          - **name** *(string) --* 

            The name of the endpoint.

            
          

          - **vpcId** *(string) --* 

            The ID of the VPC from which you access OpenSearch Serverless.

            
          

          - **subnetIds** *(list) --* 

            The ID of the subnets from which you access OpenSearch Serverless.

            
            

            - *(string) --* 
        
          

          - **securityGroupIds** *(list) --* 

            The unique identifiers of the security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.

            
            

            - *(string) --* 
        
          

          - **status** *(string) --* 

            The current status of the endpoint.

            
          

          - **createdDate** *(integer) --* 

            The date the endpoint was created.

            
          

          - **failureCode** *(string) --* 

            A failure code associated with the request.

            
          

          - **failureMessage** *(string) --* 

            A message associated with the failure code.

            
      
    
      

      - **vpcEndpointErrorDetails** *(list) --* 

        Error information for a failed request.

        
        

        - *(dict) --* 

          Error information for a failed ``BatchGetVpcEndpoint`` request.

          
          

          - **id** *(string) --* 

            The unique identifier of the VPC endpoint.

            
          

          - **errorMessage** *(string) --* 

            An error message describing the reason for the failure.

            
          

          - **errorCode** *(string) --* 

            The error code for the failed request.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`OpenSearchServiceServerless.Client.exceptions.InternalServerException`

  
  *   :py:class:`OpenSearchServiceServerless.Client.exceptions.ValidationException`

  