application_persistence_profile#

States module for managing Profiles Application Persistence Profiles.

async idem_vmware_alb.states.avilb.profiles.application_persistence_profile.present(hub, ctx, name: str, persistence_type: str, resource_id: str = None, app_cookie_persistence_profile: app_cookie_persistence_profile = None, configpb_attributes: configpb_attributes = None, description: str = None, hdr_persistence_profile: hdr_persistence_profile = None, http_cookie_persistence_profile: http_cookie_persistence_profile = None, ip_persistence_profile: ip_persistence_profile = None, is_federated: bool = None, markers: List[markers] = None, server_hm_down_recovery: str = None, tenant_ref: str = None) Dict[str, Any][source]#
None

None

Parameters:
  • name (str) – Idem name of the resource.

  • persistence_type (str) – Method used to persist clients to the same server for a duration of time or a session. Enum options - PERSISTENCE_TYPE_CLIENT_IP_ADDRESS, PERSISTENCE_TYPE_HTTP_COOKIE, PERSISTENCE_TYPE_TLS, PERSISTENCE_TYPE_CLIENT_IPV6_ADDRESS, PERSISTENCE_TYPE_CUSTOM_HTTP_HEADER, PERSISTENCE_TYPE_APP_COOKIE, PERSISTENCE_TYPE_GSLB_SITE. Allowed in Enterprise edition with any value, Essentials edition(Allowed values- PERSISTENCE_TYPE_CLIENT_IP_ADDRESS,PERSISTENCE_TYPE_HTTP_COOKIE), Basic edition(Allowed values- PERSISTENCE_TYPE_CLIENT_IP_ADDRESS,PERSISTENCE_TYPE_HTTP_COOKIE), Enterprise with Cloud Services edition.

  • resource_id (str, Optional) – profiles.application_persistence_profile unique ID. Defaults to None.

  • app_cookie_persistence_profile (dict[str, Any], Optional) –

    app_cookie_persistence_profile. Defaults to None.

    • encryption_key (str, Optional):

      Key to use for cookie encryption. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition. Defaults to None.

    • prst_hdr_name (str):

      Header or cookie name for application cookie persistence. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

    • timeout (int, Optional):

      The length of time after a client’s connections have closed before expiring the client’s persistence to a server. Allowed values are 1-720. Unit is MIN. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition. Defaults to None.

  • configpb_attributes (dict[str, Any], Optional) –

    configpb_attributes. Defaults to None.

    • version (int, Optional):

      Protobuf version number. Gets incremented if there is se Diff of federated diff in config pbs.This field will be a monotonically increasing number indicating the number of Config Update operations. Field introduced in 21.1.1. Allowed in Enterprise edition with any value, Essentials edition with any value, Basic edition with any value, Enterprise with Cloud Services edition. Defaults to None.

  • description (str, Optional) – Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition. Defaults to None.

  • hdr_persistence_profile (dict[str, Any], Optional) –

    hdr_persistence_profile. Defaults to None.

    • prst_hdr_name (str, Optional):

      Header name for custom header persistence. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition. Defaults to None.

  • http_cookie_persistence_profile (dict[str, Any], Optional) –

    http_cookie_persistence_profile. Defaults to None.

    • always_send_cookie (bool, Optional):

      If no persistence cookie was received from the client, always send it. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition. Defaults to None.

    • cookie_name (str, Optional):

      HTTP cookie name for cookie persistence. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition. Defaults to None.

    • encryption_key (str, Optional):

      Key name to use for cookie encryption. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition. Defaults to None.

    • http_only (bool, Optional):

      Sets the HttpOnly attribute in the cookie. Setting this helps to prevent the client side scripts from accessing this cookie, if supported by browser. Field introduced in 21.1.1. Allowed in Enterprise edition with any value, Enterprise with Cloud Services edition. Defaults to None.

    • is_persistent_cookie (bool, Optional):

      When True, the cookie used is a persistent cookie, i.e. the cookie shouldn’t be used at the end of the timeout. By default, it is set to false, making the cookie a session cookie, which allows clients to use it even after the timeout, if the session is still open. Field introduced in 21.1.3. Allowed in Enterprise edition with any value, Enterprise with Cloud Services edition. Defaults to None.

    • key (List[dict[str, Any]], Optional):

      Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition. Defaults to None.

      • aes_key (str, Optional):

        Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition. Defaults to None.

      • hmac_key (str, Optional):

        Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition. Defaults to None.

      • name (str, Optional):

        name to use for cookie encryption. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition. Defaults to None.

    • timeout (int, Optional):

      The maximum lifetime of any session cookie. No value or ‘zero’ indicates no timeout. Allowed values are 1-14400. Special values are 0- No Timeout. Unit is MIN. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition. Defaults to None.

  • ip_persistence_profile (dict[str, Any], Optional) –

    ip_persistence_profile. Defaults to None.

    • ip_mask (int, Optional):

      Mask to be applied on client IP. This may be used to persist clients from a subnet to the same server. When set to 0, all requests are sent to the same server. Allowed values are 0-128. Field introduced in 18.2.7. Allowed in Enterprise edition with any value, Enterprise with Cloud Services edition. Defaults to None.

    • ip_persistent_timeout (int, Optional):

      The length of time after a client’s connections have closed before expiring the client’s persistence to a server. Allowed values are 1-720. Unit is MIN. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition. Defaults to None.

  • is_federated (bool, Optional) – This field describes the object’s replication scope. If the field is set to false, then the object is visible within the controller-cluster and its associated service-engines. If the field is set to true, then the object is replicated across the federation. . Field introduced in 17.1.3. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition. Defaults to None.

  • markers (List[dict[str, Any]], Optional) –

    List of labels to be used for granular RBAC. Field introduced in 20.1.5. Allowed in Enterprise edition with any value, Essentials edition with any value, Basic edition with any value, Enterprise with Cloud Services edition. Defaults to None.

    • key (str):

      Key for filter match. Field introduced in 20.1.3. Allowed in Enterprise edition with any value, Enterprise with Cloud Services edition.

    • values (List[str], Optional):

      Values for filter match. Multiple values will be evaluated as OR. Example key = value1 OR key = value2. Behavior for match is key = * if this field is empty. Field introduced in 20.1.3. Allowed in Enterprise edition with any value, Enterprise with Cloud Services edition. Defaults to None.

  • server_hm_down_recovery (str, Optional) – Specifies behavior when a persistent server has been marked down by a health monitor. Enum options - HM_DOWN_PICK_NEW_SERVER, HM_DOWN_ABORT_CONNECTION, HM_DOWN_CONTINUE_PERSISTENT_SERVER. Allowed in Enterprise edition with any value, Essentials edition(Allowed values- HM_DOWN_PICK_NEW_SERVER), Basic edition(Allowed values- HM_DOWN_PICK_NEW_SERVER), Enterprise with Cloud Services edition. Defaults to None.

  • tenant_ref (str, Optional) – It is a reference to an object of type Tenant. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition. Defaults to None.

Returns:

Dict[str, Any]

Example

idem_test_avilb.profiles.application_persistence_profile_is_present:
    avilb.avilb.profiles.application_persistence_profile.present:
    - app_cookie_persistence_profile:
        encryption_key: string
        prst_hdr_name: string
        timeout: int
    - configpb_attributes:
        version: int
    - description: string
    - hdr_persistence_profile:
        prst_hdr_name: string
    - http_cookie_persistence_profile:
        always_send_cookie: bool
        cookie_name: string
        encryption_key: string
        http_only: bool
        is_persistent_cookie: bool
        key:
        - aes_key: string
          hmac_key: string
          name: string
        timeout: int
    - ip_persistence_profile:
        ip_mask: int
        ip_persistent_timeout: int
    - is_federated: bool
    - markers:
      - key: string
        values:
        - value
    - persistence_type: string
    - server_hm_down_recovery: string
    - tenant_ref: string
async idem_vmware_alb.states.avilb.profiles.application_persistence_profile.absent(hub, ctx, name: str, resource_id: str = None) Dict[str, Any][source]#
None

None

Parameters:
  • name (str) – Idem name of the resource.

  • resource_id (str, Optional) – profiles.application_persistence_profile unique ID. Defaults to None.

Returns:

Dict[str, Any]

Example

idem_test_avilb.profiles.application_persistence_profile_is_absent:
  avilb.avilb.profiles.application_persistence_profile.absent:
async idem_vmware_alb.states.avilb.profiles.application_persistence_profile.describe(hub, ctx) Dict[str, Dict[str, Any]][source]#

Describe the resource in a way that can be recreated/managed with the corresponding “present” function

None

None

Args:

Returns:

Dict[str, Any]

Example

$ idem describe avilb.profiles.application_persistence_profile