:doc:`S3Control <../../s3control>` / Client / get_access_point_scope

**********************
get_access_point_scope
**********************



.. py:method:: S3Control.Client.get_access_point_scope(**kwargs)

  

  Returns the access point scope for a directory bucket.

   

  To use this operation, you must have the permission to perform the ``s3express:GetAccessPointScope`` action.

   

  For information about REST API errors, see `REST error responses <https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#RESTErrorResponses>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/GetAccessPointScope>`_  


  **Request Syntax**
  ::

    response = client.get_access_point_scope(
        AccountId='string',
        Name='string'
    )
    
  :type AccountId: string
  :param AccountId: **[REQUIRED]** 

    The Amazon Web Services account ID that owns the access point with the scope that you want to retrieve.

    

  
  :type Name: string
  :param Name: **[REQUIRED]** 

    The name of the access point with the scope you want to retrieve.

    

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

    
    ::

      {
          'Scope': {
              'Prefixes': [
                  'string',
              ],
              'Permissions': [
                  'GetObject'|'GetObjectAttributes'|'ListMultipartUploadParts'|'ListBucket'|'ListBucketMultipartUploads'|'PutObject'|'DeleteObject'|'AbortMultipartUpload',
              ]
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Scope** *(dict) --* 

        The contents of the access point scope.

        
        

        - **Prefixes** *(list) --* 

          You can specify any amount of prefixes, but the total length of characters of all prefixes must be less than 256 bytes in size.

          
          

          - *(string) --* 
      
        

        - **Permissions** *(list) --* 

          You can include one or more API operations as permissions.

          
          

          - *(string) --* 
      
    
  