:doc:`mediapackagev2 <../../mediapackagev2>` / Client / reset_origin_endpoint_state

***************************
reset_origin_endpoint_state
***************************



.. py:method:: mediapackagev2.Client.reset_origin_endpoint_state(**kwargs)

  

  Resetting the origin endpoint can help to resolve unexpected behavior and other content packaging issues. It also helps to preserve special events when you don't want the previous content to be available for viewing. A reset clears out all previous content from the origin endpoint.

   

  MediaPackage might return old content from this endpoint in the first 30 seconds after the endpoint reset. For best results, when possible, wait 30 seconds from endpoint reset to send playback requests to this endpoint.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/mediapackagev2-2022-12-25/ResetOriginEndpointState>`_  


  **Request Syntax**
  ::

    response = client.reset_origin_endpoint_state(
        ChannelGroupName='string',
        ChannelName='string',
        OriginEndpointName='string'
    )
    
  :type ChannelGroupName: string
  :param ChannelGroupName: **[REQUIRED]** 

    The name of the channel group that contains the channel with the origin endpoint that you are resetting.

    

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

    The name of the channel with the origin endpoint that you are resetting.

    

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

    The name of the origin endpoint that you are resetting.

    

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

    
    ::

      {
          'ChannelGroupName': 'string',
          'ChannelName': 'string',
          'OriginEndpointName': 'string',
          'Arn': 'string',
          'ResetAt': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ChannelGroupName** *(string) --* 

        The name of the channel group that contains the channel with the origin endpoint that you just reset.

        
      

      - **ChannelName** *(string) --* 

        The name of the channel with the origin endpoint that you just reset.

        
      

      - **OriginEndpointName** *(string) --* 

        The name of the origin endpoint that you just reset.

        
      

      - **Arn** *(string) --* 

        The Amazon Resource Name (ARN) associated with the endpoint that you just reset.

        
      

      - **ResetAt** *(datetime) --* 

        The time that the origin endpoint was last reset.

        
  
  **Exceptions**
  
  *   :py:class:`mediapackagev2.Client.exceptions.ConflictException`

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

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

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

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

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

  