.. _sys_ut_state_next_state_case_action_tcp:

sys-ut state next-state case action tcp
=======================================

TCP header


tcp Specification
-----------------

	===================================== ========================================================================================================================
	 **Parameter**                         **Value** 

	===================================== ========================================================================================================================
	 **Type**                              *Configuration Resource*

	 **Element Name**                      tcp

	 **Element URI**                       /axapi/v3/sys-ut/state/{name}/next-state/{name}/case/{case-number}/action/{direction}/tcp

	 **Element Attributes**                tcp_attributes

	 **Partition Visibility**              shared

	 **Schema**                             :download:`tcp schema <sys-ut-state-next-state-case-action-tcp/sys-ut-state-next-state-case-action-tcp.txt>`
	===================================== ========================================================================================================================





	**Operations Allowed:**




.. raw:: html

   <script type="text/javascript">
 function showExample(a,b) { document.getElementById(a+'_div').style.display = 'block'; document.getElementById(a+'_cl').style.display = 'block'; document.getElementById(a+'_eg').style.display = 'none';}
   function closeExample(a,b) { document.getElementById(a+'_div').style.display = 'none'; document.getElementById(a+'_cl').style.display = 'none'; document.getElementById(a+'_eg').style.display = 'block';}
 </script>
   <table width='90%' style='margin-left:5%'>



.. raw:: html

   <tr style='border-bottom: thin solid; border-top: thin solid'><th width=15%>Operation</th><th width=10%>Method</th><th>URI</th><th width=15%>Payload</th><th width=10%></th></tr>




.. raw:: html

   <tr  style='border-bottom: thin solid;'><td valign = 'top'>


Create Object



.. raw:: html

   </td><td valign = 'top'>


POST



.. raw:: html

   </td><td valign = 'top'>


/axapi/v3/sys-ut/state/{name}/next-state/{name}/case/{case-number}/action/{direction}/tcp



.. raw:: html

   </td><td valign = 'top'>


:ref:`3157_tcp_attributes`



.. raw:: html

   </td><td></td></tr>




.. raw:: html

   <tr  style='border-bottom: thin solid;'><td valign = 'top'>


Get Object



.. raw:: html

   </td><td valign = 'top'>


GET



.. raw:: html

   </td><td valign = 'top'>


/axapi/v3/sys-ut/state/{name}/next-state/{name}/case/{case-number}/action/{direction}/tcp



.. raw:: html

   </td><td valign = 'top'>


:ref:`3157_tcp_attributes`



.. raw:: html

   </td><td></td></tr>




.. raw:: html

   <tr  style='border-bottom: thin solid;'><td valign = 'top'>


Modify Object



.. raw:: html

   </td><td valign = 'top'>


POST



.. raw:: html

   </td><td valign = 'top'>


/axapi/v3/sys-ut/state/{name}/next-state/{name}/case/{case-number}/action/{direction}/tcp



.. raw:: html

   </td><td valign = 'top'>


:ref:`3157_tcp_attributes`



.. raw:: html

   </td><td></td></tr>




.. raw:: html

   <tr  style='border-bottom: thin solid;'><td valign = 'top'>


Replace Object



.. raw:: html

   </td><td valign = 'top'>


PUT



.. raw:: html

   </td><td valign = 'top'>


/axapi/v3/sys-ut/state/{name}/next-state/{name}/case/{case-number}/action/{direction}/tcp



.. raw:: html

   </td><td valign = 'top'>


:ref:`3157_tcp_attributes`



.. raw:: html

   </td><td></td></tr>




.. raw:: html

   <tr  style='border-bottom: thin solid;'><td valign = 'top'>


Delete Object



.. raw:: html

   </td><td valign = 'top'>


DELETE



.. raw:: html

   </td><td valign = 'top'>


/axapi/v3/sys-ut/state/{name}/next-state/{name}/case/{case-number}/action/{direction}/tcp



.. raw:: html

   </td><td valign = 'top'>


:ref:`3157_tcp_attributes`



.. raw:: html

   </td><td></td></tr>




.. raw:: html

   </table>

.. _3157_tcp_attributes:

tcp attributes
--------------

    **ack-seq-number**

        **Description** 'valid': valid; 'invalid': invalid; 

        **Type:** string

        **Supported Values:** valid, invalid

        **Default:** valid

    **checksum**

        **Description** 'valid': valid; 'invalid': invalid; 

        **Type:** string

        **Supported Values:** valid, invalid

        **Default:** valid

    **dest-port**

        **Description** Dest port

        **Type:** boolean

        **Supported Values:** true, false, 1, 0

        **Default:** 0

    **dest-port-value**

        **Description** Dest port value

        **Type:** number

        **Range:** 1-65535

    **flags**

        **Description:** flags is a **JSON Block**.  Please see below for :ref:`3157_flags` 

        **Type:** Object

        **Reference Object:** :doc:`/axapi/v3/sys-ut/state/{name}/next-state/{name}/case/{case-number}/action/{direction}/tcp/flags <sys_ut_state>`

    **nat-pool**

        **Description** Nat pool port

        **Type:** string

        **Maximum Length:** 128 characters

        **Maximum Length:** 1 characters

    **options**

        **Description:** options is a **JSON Block**.  Please see below for :ref:`3157_options` 

        **Type:** Object

        **Reference Object:** :doc:`/axapi/v3/sys-ut/state/{name}/next-state/{name}/case/{case-number}/action/{direction}/tcp/options <sys_ut_state>`

    **seq-number**

        **Description** 'valid': valid; 'invalid': invalid; 

        **Type:** string

        **Supported Values:** valid, invalid

        **Default:** valid

    **src-port**

        **Description** Source port value

        **Type:** number

        **Range:** 1-65535

    **urgent**

        **Description** 'valid': valid; 'invalid': invalid; 

        **Type:** string

        **Supported Values:** valid, invalid

        **Default:** valid

    **uuid**

        **Description** uuid of the object

        **Type:** string

        **Maximum Length:** 64 characters

        **Maximum Length:** 1 characters

    **window**

        **Description** 'valid': valid; 'invalid': invalid; 

        **Type:** string

        **Supported Values:** valid, invalid

        **Default:** valid

.. _3157_flags:

flags
^^^^^
	=============================== ===================================================
	**Specification**                 **Value**
	=============================== ===================================================
	 **Type**                        *object*

	=============================== ===================================================

    **ack**

        **Description** Ack

        **Type:** boolean

        **Supported Values:** true, false, 1, 0

        **Default:** 0

    **cwr**

        **Description** Cwr

        **Type:** boolean

        **Supported Values:** true, false, 1, 0

        **Default:** 0

    **ece**

        **Description** Ece

        **Type:** boolean

        **Supported Values:** true, false, 1, 0

        **Default:** 0

    **fin**

        **Description** Fin

        **Type:** boolean

        **Supported Values:** true, false, 1, 0

        **Default:** 0

    **psh**

        **Description** Psh

        **Type:** boolean

        **Supported Values:** true, false, 1, 0

        **Default:** 0

    **rst**

        **Description** Rst

        **Type:** boolean

        **Supported Values:** true, false, 1, 0

        **Default:** 0

    **syn**

        **Description** Syn

        **Type:** boolean

        **Supported Values:** true, false, 1, 0

        **Default:** 0

    **urg**

        **Description** Urg

        **Type:** boolean

        **Supported Values:** true, false, 1, 0

        **Default:** 0

    **uuid**

        **Description** uuid of the object

        **Type:** string

        **Maximum Length:** 64 characters

        **Maximum Length:** 1 characters

.. _3157_options:

options
^^^^^^^
	=============================== ===================================================
	**Specification**                 **Value**
	=============================== ===================================================
	 **Type**                        *object*

	=============================== ===================================================

    **mss**

        **Description** TCP MSS

        **Type:** number

        **Range:** 536-1460

    **nop**

        **Description** No Op

        **Type:** boolean

        **Supported Values:** true, false, 1, 0

        **Default:** 0

    **sack-type**

        **Description** 'permitted': permitted; 'block': block; 

        **Type:** string

        **Supported Values:** permitted, block

    **time-stamp-enable**

        **Description** adds Time Stamp to options

        **Type:** boolean

        **Supported Values:** true, false, 1, 0

        **Default:** 0

    **uuid**

        **Description** uuid of the object

        **Type:** string

        **Maximum Length:** 64 characters

        **Maximum Length:** 1 characters

    **wscale**

        **Description** 

        **Type:** number

        **Range:** 1-8