:doc:`rePostPrivate <../../repostspace>` / Client / get_channel

***********
get_channel
***********



.. py:method:: rePostPrivate.Client.get_channel(**kwargs)

  

  Displays information about a channel in a private re:Post.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/repostspace-2022-05-13/GetChannel>`_  


  **Request Syntax**
  ::

    response = client.get_channel(
        spaceId='string',
        channelId='string'
    )
    
  :type spaceId: string
  :param spaceId: **[REQUIRED]** 

    The unique ID of the private re:Post.

    

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

    The unique ID of the private re:Post channel.

    

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

    
    ::

      {
          'spaceId': 'string',
          'channelId': 'string',
          'channelName': 'string',
          'channelDescription': 'string',
          'createDateTime': datetime(2015, 1, 1),
          'deleteDateTime': datetime(2015, 1, 1),
          'channelRoles': {
              'string': [
                  'ASKER'|'EXPERT'|'MODERATOR'|'SUPPORTREQUESTOR',
              ]
          },
          'channelStatus': 'CREATED'|'CREATING'|'CREATE_FAILED'|'DELETED'|'DELETING'|'DELETE_FAILED'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **spaceId** *(string) --* 

        The unique ID of the private re:Post.

        
      

      - **channelId** *(string) --* 

        The unique ID of the private re:Post channel.

        
      

      - **channelName** *(string) --* 

        The name for the channel. This must be unique per private re:Post.

        
      

      - **channelDescription** *(string) --* 

        A description for the channel. This is used only to help you identify this channel.

        
      

      - **createDateTime** *(datetime) --* 

        The date when the channel was created.

        
      

      - **deleteDateTime** *(datetime) --* 

        The date when the channel was deleted.

        
      

      - **channelRoles** *(dict) --* 

        The channel roles associated to the users and groups of the channel.

        
        

        - *(string) --* 
          

          - *(list) --* 
            

            - *(string) --* 
        
    
  
      

      - **channelStatus** *(string) --* 

        The status pf the channel.

        
  
  **Exceptions**
  
  *   :py:class:`rePostPrivate.Client.exceptions.ValidationException`

  
  *   :py:class:`rePostPrivate.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`rePostPrivate.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`rePostPrivate.Client.exceptions.ThrottlingException`

  
  *   :py:class:`rePostPrivate.Client.exceptions.InternalServerException`

  