:doc:`SecurityHub <../../securityhub>` / Client / create_ticket_v2

****************
create_ticket_v2
****************



.. py:method:: SecurityHub.Client.create_ticket_v2(**kwargs)

  

  Grants permission to create a ticket in the chosen ITSM based on finding information for the provided finding metadata UID.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/CreateTicketV2>`_  


  **Request Syntax**
  ::

    response = client.create_ticket_v2(
        ConnectorId='string',
        FindingMetadataUid='string',
        ClientToken='string',
        Mode='DRYRUN'
    )
    
  :type ConnectorId: string
  :param ConnectorId: **[REQUIRED]** 

    The UUID of the connectorV2 to identify connectorV2 resource.

    

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

    The the unique ID for the finding.

    

  
  :type ClientToken: string
  :param ClientToken: 

    The client idempotency token.

    This field is autopopulated if not provided.

  
  :type Mode: string
  :param Mode: 

    The mode for ticket creation. When set to DRYRUN, the ticket is created using a Security Hub owned template test finding to verify the integration is working correctly.

    

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

    
    ::

      {
          'TicketId': 'string',
          'TicketSrcUrl': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **TicketId** *(string) --* 

        The ID for the ticketv2.

        
      

      - **TicketSrcUrl** *(string) --* 

        The url to the created ticket.

        
  
  **Exceptions**
  
  *   :py:class:`SecurityHub.Client.exceptions.AccessDeniedException`

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

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

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

  
  *   :py:class:`SecurityHub.Client.exceptions.ConflictException`

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

  