Skip to main content

F5 Application Security Manager (WAF)

This Integration is part of the F5 firewall Pack.#

Use the F5 ASM integration to read information and to manage F5 firewall. This integration was integrated and tested with version 15.1.0 of F5 ASM

Configure F5 ASM on Cortex XSOAR#

  1. Navigate to Settings > Integrations > Servers & Services.
  2. Search for F5 ASM.
  3. Click Add instance to create and configure a new integration instance.
ParameterDescriptionRequired
urlServer URL (e.g., 8.8.8.8)True
credentialsUsernameTrue
insecureTrust any certificate (not secure)False
proxyUse system proxy settingsFalse
  1. Click Test to validate the URLs, token, and connection.

Commands#

You can execute these commands from the Cortex XSOAR CLI, as part of an automation, or in a playbook. After you successfully execute a command, a DBot message appears in the War Room with the command details.

f5-asm-policy-list#


Lists all F5 Application Security Manager (ASM) policies.

Base Command#

f5-asm-policy-list

Input#

Argument NameDescriptionRequired
self_linkA link to this resource.Optional
kindA unique type identifier.Optional
itemsitemsOptional

Context Output#

PathTypeDescription
f5.Policy.nameStringDisplay name of the policy.
f5.Policy.activeBooleanIndicates if the policy is active.
f5.Policy.creatorNameStringThe name of the user who created the policy.
f5.Policy.createdTimeStringThe time that the policy was created.
f5.Policy.enforcementModeBooleanIndicates if the policy is in enforcement mode.
f5.Policy.typeStringThe policy type.

Command Example#

!f5-asm-policy-list

Context Example#

{
"f5": {
"ListPolicies": [
{
"active": null,
"createdTime": null,
"creatorName": "admin",
"enforcementMode": null,
"id": "d2wbyiegGUJDigyNPELJuQ",
"name": "policy_to_delete",
"selfLink": "https://localhost/mgmt/tm/asm/policies/d2wbyiegGUJDigyNPELJuQ?ver=15.1.0",
"type": "parent"
},
{
"active": false,
"createdTime": null,
"creatorName": "admin",
"enforcementMode": "transparent",
"id": "WS7SYdAM7F3yexKVGPrm8w",
"name": "technologies",
"selfLink": "https://localhost/mgmt/tm/asm/policies/WS7SYdAM7F3yexKVGPrm8w?ver=15.1.0",
"type": "security"
},
{
"active": false,
"createdTime": null,
"creatorName": "admin",
"enforcementMode": "blocking",
"id": "7FWxqE2a-3bbpJimP4amtA",
"name": "server-tech",
"selfLink": "https://localhost/mgmt/tm/asm/policies/7FWxqE2a-3bbpJimP4amtA?ver=15.1.0",
"type": "security"
},
{
"active": true,
"createdTime": null,
"creatorName": "admin",
"enforcementMode": "blocking",
"id": "kpD2qFaUlGAbw8RhN5IFQA",
"name": "Test_Policy",
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA?ver=15.1.0",
"type": "security"
},
{
"active": false,
"createdTime": null,
"creatorName": "admin",
"enforcementMode": "blocking",
"id": "eTzNEnVBWVG87KIljElZIw",
"name": "Lior-test",
"selfLink": "https://localhost/mgmt/tm/asm/policies/eTzNEnVBWVG87KIljElZIw?ver=15.1.0",
"type": "security"
}
]
}
}

Human Readable Output#

f5 data for listing policies:#

nameidtypeenforcementModeselfLinkcreatorNameactive
policy_to_deleted2wbyiegGUJDigyNPELJuQparenthttps://localhost/mgmt/tm/asm/policies/d2wbyiegGUJDigyNPELJuQ?ver=15.1.0admin
technologiesWS7SYdAM7F3yexKVGPrm8wsecuritytransparenthttps://localhost/mgmt/tm/asm/policies/WS7SYdAM7F3yexKVGPrm8w?ver=15.1.0adminfalse
server-tech7FWxqE2a-3bbpJimP4amtAsecurityblockinghttps://localhost/mgmt/tm/asm/policies/7FWxqE2a-3bbpJimP4amtA?ver=15.1.0adminfalse
Test_PolicykpD2qFaUlGAbw8RhN5IFQAsecurityblockinghttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA?ver=15.1.0admintrue
Lior-testeTzNEnVBWVG87KIljElZIwsecurityblockinghttps://localhost/mgmt/tm/asm/policies/eTzNEnVBWVG87KIljElZIw?ver=15.1.0adminfalse

f5-asm-policy-create#


Creates a new ASM policy.

Base Command#

f5-asm-policy-create

Input#

Argument NameDescriptionRequired
nameDisplay name of the policy.Required
descriptionOptional description for the policy.Optional
kindThe type of the policy. Possible values are: "parent" and "child". Default is "parent".Required
parentThe parent path if the policy is a security policy.Optional
enforcement_modeThe enforcement mode of the policy. Possible values are: "transparent" and "blocking". Default is "transparent".Optional
protocol_independentWhether the policy is protocol independent. Default is "true".Optional
allowWhether to allow the new policy.Optional
activeWhether to activate the new policy.Optional

Context Output#

PathTypeDescription
f5.Policy.nameStringDisplay name of the policy.
f5.Policy.idStringID of the policy.
f5.Policy.fullPathStringFull path of the policy.
f5.Policy.descriptionStringDescription of the policy.
f5.Policy.typeStringType of the policy.
f5.Policy.versionDatetimeStringThe creation time of the policy.
f5.Policy.selfLinkStringPolicy self link

Command Example#

!f5-asm-policy-create name=Test_Policy_1 kind=parent

Context Example#

{
"f5": {
"CreatePolicy": {
"description": "",
"fullPath": "/Common/Test_Policy_1",
"id": "qB5caokejf-8DZiNe_1VKw",
"name": "Test_Policy_1",
"serverTechnologyName": null,
"type": "parent",
"versionDatetime": "2020-10-06T11:00:44Z"
}
}
}

Human Readable Output#

f5 data for creating policy:#

nameidfullPathtypeversionDatetime
Test_Policy_1qB5caokejf-8DZiNe_1VKw/Common/Test_Policy_1parent2020-10-06T11:00:44Z

f5-asm-policy-apply#


Applies a policy in the application security manager.

Base Command#

f5-asm-policy-apply

Input#

Argument NameDescriptionRequired
policy_reference_linkLink to the policy to apply.Required

Context Output#

PathTypeDescription
f5.Policy.idStringThe policy ID.
f5.Policy.kindStringThe type of the policy.
f5.Policy.policyReferenceStringThe policy reference link.
f5.Policy.statusStringThe status of the policy.
f5.Policy.startTimeStringThe start time of the policy.

Command Example#

!f5-asm-policy-apply policy_reference_link="https://192.168.30.76/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA?ver=15.1.0"

Context Example#

{
"f5": {
"ApplyPolicy": {
"id": "eUa5aK7Ym-V3jgYV6C4wuw",
"kind": "tm:asm:tasks:apply-policy:apply-policy-taskstate",
"policyReference": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA?ver=15.1.0",
"startTime": "2020-10-06T11:00:46Z",
"status": "NEW"
}
}
}

Human Readable Output#

f5 data for applying policy:#

policyReferencestatusidstartTimekind
https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA?ver=15.1.0NEWeUa5aK7Ym-V3jgYV6C4wuw2020-10-06T11:00:46Ztm:asm:tasks:apply-policy:apply-policy-taskstate

f5-asm-policy-export-file#


Exports a policy file.

Base Command#

f5-asm-policy-export-file

Input#

Argument NameDescriptionRequired
filenameThe name of the file to export the policy to.Required
policy_reference_linkThe link to the policy to export.Required
minimalIndicates whether to export only custom settings. Default is "true".Optional

Context Output#

PathTypeDescription
f5.Policy.kindStringThe type of the policy.
f5.Policy.formatStringThe format of the policy.
f5.Policy.filenameStringThe filename of the exported file.
f5.Policy.policyReferenceStringThe reference link to the policy.
f5.Policy.idStringThe ID of the policy.
f5.Policy.startTimeStringThe start time of the policy.
f5.Policy.statusStringThe status of the policy.

Command Example#

!f5-asm-policy-export-file filename="exported_file.xml" policy_reference_link="https://192.168.30.76/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA?ver=15.1.0"

Context Example#

{
"f5": {
"ExportPolicy": {
"filename": "exported_file.xml",
"format": "xml",
"id": "WGIZaXwino-Kj0SBRfagHw",
"kind": "tm:asm:tasks:export-policy:export-policy-taskstate",
"policyReference": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA?ver=15.1.0",
"startTime": "2020-10-06T11:00:48Z",
"status": "NEW"
}
}
}

Human Readable Output#

f5 data for exporting policy:#

policyReferencestatusidstartTimekindformatfilename
https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA?ver=15.1.0NEWWGIZaXwino-Kj0SBRfagHw2020-10-06T11:00:48Ztm:asm:tasks:export-policy:export-policy-taskstatexmlexported_file.xml

f5-asm-policy-methods-list#


Lists the HTTP methods that are enforced in the security policy.

Base Command#

f5-asm-policy-methods-list

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 hash using the f5-asm-get-policy-md5 command.Required

Context Output#

PathTypeDescription
f5.PolicyMethods.nameStringThe name of the method.
f5.PolicyMethods.actAsMethodStringThe functionality of the method.
f5.PolicyMethods.idStringThe ID of the method.
f5.PolicyMethods.selfLinkStringThe self link to the method.
f5.PolicyMethods.kindStringThe type of endpoint.
f5.PolicyMethods.lastUpdateMicrosStringThe datetime the policy method was last updated represented in micro seconds since 1970-01-01 00:00:00 GMT (Unix epoch). For example, 1519382317000000 is Friday, 23 February 2018 10:38:37.

Command Example#

!f5-asm-policy-methods-list policy_md5=kpD2qFaUlGAbw8RhN5IFQA

Context Example#

{
"f5": {
"PolicyMethods": [
{
"actAsMethod": "POST",
"active": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "mxy58ouQBKYZ7AsujHtdNQ",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-05T15:59:44Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "new_method_04",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/methods/mxy58ouQBKYZ7AsujHtdNQ?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"valueType": null
},
{
"actAsMethod": "POST",
"active": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "gbcCSqQgfttFwDszpHR8vg",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-09-30T12:20:51Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "new_method_03",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/methods/gbcCSqQgfttFwDszpHR8vg?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"valueType": null
},
{
"actAsMethod": "POST",
"active": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "p773WZAfmkgA-fTq6aqYzQ",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-09-30T12:20:28Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "new_method_02",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/methods/p773WZAfmkgA-fTq6aqYzQ?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"valueType": null
},
{
"actAsMethod": "POST",
"active": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "g1NIB_pTaAlM6YcpKrTFLg",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-09-30T12:19:08Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "new_name_0101",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/methods/g1NIB_pTaAlM6YcpKrTFLg?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"valueType": null
},
{
"actAsMethod": "POST",
"active": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "qBX6xVxyjS3v4faysUuE6A",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-09-30T12:02:58Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "new_method_01",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/methods/qBX6xVxyjS3v4faysUuE6A?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"valueType": null
},
{
"actAsMethod": "POST",
"active": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "QB1BzVdfL5WfSHrpP_2MOQ",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-11T12:32:56Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "test_get_2",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/methods/QB1BzVdfL5WfSHrpP_2MOQ?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"valueType": null
},
{
"actAsMethod": "GET",
"active": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "fY-VmdD8p450Aqd86HMKtQ",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-11T12:30:44Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "test_get",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/methods/fY-VmdD8p450Aqd86HMKtQ?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"valueType": null
},
{
"actAsMethod": "GET",
"active": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "9l8WogEiTHYEa8UzGruaBg",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-05T21:07:26Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "getty",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/methods/9l8WogEiTHYEa8UzGruaBg?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"valueType": null
},
{
"actAsMethod": "GET",
"active": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "4V4hb8HGOfeHsSMezfob-A",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-05T20:58:48Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "HEAD",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/methods/4V4hb8HGOfeHsSMezfob-A?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"valueType": null
},
{
"actAsMethod": "POST",
"active": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "oCQ57CKdi-DnSwwWAjkjEA",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-05T20:58:48Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "POST",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/methods/oCQ57CKdi-DnSwwWAjkjEA?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"valueType": null
},
{
"actAsMethod": "GET",
"active": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "dSgDWpPuac7bHb3bLwv8yA",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-05T20:58:48Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "GET",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/methods/dSgDWpPuac7bHb3bLwv8yA?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"valueType": null
}
]
}
}

Human Readable Output#

f5 data for listing policy methods:#

nameidactAsMethodselfLinklastUpdateMicros
new_method_04mxy58ouQBKYZ7AsujHtdNQPOSThttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/methods/mxy58ouQBKYZ7AsujHtdNQ?ver=15.1.02020-10-05T15:59:44Z
new_method_03gbcCSqQgfttFwDszpHR8vgPOSThttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/methods/gbcCSqQgfttFwDszpHR8vg?ver=15.1.02020-09-30T12:20:51Z
new_method_02p773WZAfmkgA-fTq6aqYzQPOSThttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/methods/p773WZAfmkgA-fTq6aqYzQ?ver=15.1.02020-09-30T12:20:28Z
new_name_0101g1NIB_pTaAlM6YcpKrTFLgPOSThttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/methods/g1NIB_pTaAlM6YcpKrTFLg?ver=15.1.02020-09-30T12:19:08Z
new_method_01qBX6xVxyjS3v4faysUuE6APOSThttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/methods/qBX6xVxyjS3v4faysUuE6A?ver=15.1.02020-09-30T12:02:58Z
test_get_2QB1BzVdfL5WfSHrpP_2MOQPOSThttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/methods/QB1BzVdfL5WfSHrpP_2MOQ?ver=15.1.02020-08-11T12:32:56Z
test_getfY-VmdD8p450Aqd86HMKtQGEThttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/methods/fY-VmdD8p450Aqd86HMKtQ?ver=15.1.02020-08-11T12:30:44Z
getty9l8WogEiTHYEa8UzGruaBgGEThttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/methods/9l8WogEiTHYEa8UzGruaBg?ver=15.1.02020-08-05T21:07:26Z
HEAD4V4hb8HGOfeHsSMezfob-AGEThttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/methods/4V4hb8HGOfeHsSMezfob-A?ver=15.1.02020-08-05T20:58:48Z
POSToCQ57CKdi-DnSwwWAjkjEAPOSThttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/methods/oCQ57CKdi-DnSwwWAjkjEA?ver=15.1.02020-08-05T20:58:48Z
GETdSgDWpPuac7bHb3bLwv8yAGEThttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/methods/dSgDWpPuac7bHb3bLwv8yA?ver=15.1.02020-08-05T20:58:48Z

f5-asm-policy-file-types-list#


Lists the file types that are allowed or not allowed in the security policy.

Base Command#

f5-asm-policy-file-types-list

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 hash using the f5-asm-get-policy-md5 command.Required

Context Output#

PathTypeDescription
f5.FileType.nameStringThe name of the file type.
f5.FileType.idStringThe ID of the file type.
f5.FileType.selfLinkStringThe self link to the file type.
f5.FileType.kindStringThe type of endpoint.
f5.FileType.lastUpdateMicrosStringThe datetime the file type was last updated represented in micro seconds since 1970-01-01 00:00:00 GMT (Unix epoch). For example, 1519382317000000 is Friday, 23 February 2018 10:38:37.
f5.FileType.queryStringLengthStringThe length of the query string.
f5.FileType.checkRequestLengthStringThe length of the request.
f5.FileType.allowedBooleanIndicates if the file type is allowed.

Command Example#

!f5-asm-policy-file-types-list policy_md5=kpD2qFaUlGAbw8RhN5IFQA

Context Example#

{
"f5": {
"FileType": [
{
"actAsMethod": null,
"active": null,
"allowed": true,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": true,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "Q3F1ukGRIQ7gBOHZN0lNCQ",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-09-14T12:31:25Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "pdf",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/filetypes/Q3F1ukGRIQ7gBOHZN0lNCQ?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "explicit",
"valueType": null
},
{
"actAsMethod": null,
"active": null,
"allowed": true,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": true,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "Yoy1Z1_1JPPnGbeqLoj-Pw",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-09-03T14:25:22Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "csv",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/filetypes/Yoy1Z1_1JPPnGbeqLoj-Pw?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "explicit",
"valueType": null
},
{
"actAsMethod": null,
"active": null,
"allowed": true,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": true,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "F2o7I8XjkrtcBH1IGTi9ew",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-09-03T14:22:09Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "yml",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/filetypes/F2o7I8XjkrtcBH1IGTi9ew?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "explicit",
"valueType": null
},
{
"actAsMethod": null,
"active": null,
"allowed": true,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": true,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "D2NdDg84dP_4tYHBMubHpw",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-18T17:04:01Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "xml",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/filetypes/D2NdDg84dP_4tYHBMubHpw?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "explicit",
"valueType": null
},
{
"actAsMethod": null,
"active": null,
"allowed": true,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": true,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "3-1bwXe4erMXxYTgZWatxg",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-05T21:05:35Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "py",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/filetypes/3-1bwXe4erMXxYTgZWatxg?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "explicit",
"valueType": null
},
{
"actAsMethod": null,
"active": null,
"allowed": true,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": true,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "mOgzedRVODecKsTkfDvoHQ",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-05T21:05:11Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "exe",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/filetypes/mOgzedRVODecKsTkfDvoHQ?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "explicit",
"valueType": null
},
{
"actAsMethod": null,
"active": null,
"allowed": true,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": true,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "M4na42GvebBMnI5wV_YMxg",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-23T10:24:11Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "*",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/filetypes/M4na42GvebBMnI5wV_YMxg?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "wildcard",
"valueType": null
}
]
}
}

Human Readable Output#

f5 data for listing policy file types:#

nameidtypeselfLinkcheckRequestLengthperformStagingallowedlastUpdateMicros
pdfQ3F1ukGRIQ7gBOHZN0lNCQexplicithttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/filetypes/Q3F1ukGRIQ7gBOHZN0lNCQ?ver=15.1.0truefalsetrue2020-09-14T12:31:25Z
csvYoy1Z1_1JPPnGbeqLoj-Pwexplicithttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/filetypes/Yoy1Z1_1JPPnGbeqLoj-Pw?ver=15.1.0truefalsetrue2020-09-03T14:25:22Z
ymlF2o7I8XjkrtcBH1IGTi9ewexplicithttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/filetypes/F2o7I8XjkrtcBH1IGTi9ew?ver=15.1.0truefalsetrue2020-09-03T14:22:09Z
xmlD2NdDg84dP_4tYHBMubHpwexplicithttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/filetypes/D2NdDg84dP_4tYHBMubHpw?ver=15.1.0truefalsetrue2020-08-18T17:04:01Z
py3-1bwXe4erMXxYTgZWatxgexplicithttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/filetypes/3-1bwXe4erMXxYTgZWatxg?ver=15.1.0truefalsetrue2020-08-05T21:05:35Z
exemOgzedRVODecKsTkfDvoHQexplicithttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/filetypes/mOgzedRVODecKsTkfDvoHQ?ver=15.1.0truefalsetrue2020-08-05T21:05:11Z
*M4na42GvebBMnI5wV_YMxgwildcardhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/filetypes/M4na42GvebBMnI5wV_YMxg?ver=15.1.0truefalsetrue2020-08-23T10:24:11Z

f5-asm-policy-methods-add#


Adds a new allowed method.

Base Command#

f5-asm-policy-methods-add

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy to which to add the method. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
new_method_nameThe display name of the new method.Required
act_as_methodFunctionality of the new method. Possible values are: "GET" and "POST". Default is "GET".Optional

Context Output#

PathTypeDescription
f5.PolicyMethods.nameStringThe name of the new method.
f5.PolicyMethods.idStringThe ID of the new method.
f5.PolicyMethods.actAsMethodStringThe functionality of the new method.
f5.PolicyMethods.selfLinkStringThe self link to the method.
f5.PolicyMethods.kindStringThe type of method.

Command Example#

!f5-asm-policy-methods-add policy_md5=kpD2qFaUlGAbw8RhN5IFQA new_method_name="Posty" act_as_method="POST"

Context Example#

{
"f5": {
"PolicyMethods": {
"actAsMethod": "POST",
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "cwMuAdnzCUXmGBTc552zvQ",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:00:58Z",
"mandatory": null,
"metacharElementCheck": null,
"method": null,
"name": "Posty",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"postDataLength": null,
"protocol": null,
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/methods/cwMuAdnzCUXmGBTc552zvQ?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for adding policy methods:#

nameidactAsMethodselfLinklastUpdateMicros
PostycwMuAdnzCUXmGBTc552zvQPOSThttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/methods/cwMuAdnzCUXmGBTc552zvQ?ver=15.1.02020-10-06T11:00:58Z

f5-asm-policy-methods-update#


Updates a policy method.

Base Command#

f5-asm-policy-methods-update

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy in which to update the method. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
method_idThe ID of the method to update. The method_ID or method_name arguments must be filled. Default is "None".Optional
method_nameDisplay name of the method to update. The method_ID or method_name argument must be filled. Default is "None".Optional
act_as_methodFunctionality of the updated method. Possible values are: "GET" and "POST".Required

Context Output#

PathTypeDescription
f5.PolicyMethods.nameStringThe name of the updated method.
f5.PolicyMethods.idStringThe ID of the updated method.
f5.PolicyMethods.actAsMethodStringThe functionality of the updated method.
f5.PolicyMethods.selfLinkStringThe self link to the updated method.
f5.PolicyMethods.kindStringThe type of method.

Command Example#

!f5-asm-policy-methods-update policy_md5=kpD2qFaUlGAbw8RhN5IFQA method_name="Posty" act_as_method="POST"

Context Example#

{
"f5": {
"PolicyMethods": {
"actAsMethod": "POST",
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "cwMuAdnzCUXmGBTc552zvQ",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:00:58Z",
"mandatory": null,
"metacharElementCheck": null,
"method": null,
"name": "Posty",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"postDataLength": null,
"protocol": null,
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/methods/cwMuAdnzCUXmGBTc552zvQ?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for updating policy methods:#

nameidactAsMethodselfLinklastUpdateMicros
PostycwMuAdnzCUXmGBTc552zvQPOSThttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/methods/cwMuAdnzCUXmGBTc552zvQ?ver=15.1.02020-10-06T11:00:58Z

f5-asm-policy-methods-delete#


Deletes a method from a given policy.

Base Command#

f5-asm-policy-methods-delete

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy from which to delete the method. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
method_idThe ID of the method to delete. The method_ID or method_name argument must be filled. Default is "None".Optional
method_nameThe display name of the method to delete. The method_ID or method_name argument must be filled. Default is "None".Optional

Context Output#

PathTypeDescription
f5.PolicyMethods.nameStringThe name of the deleted method.
f5.PolicyMethods.idStringThe ID of the deleted method.
f5.PolicyMethods.actAsMethodStringThe functionality of the deleted method.
f5.PolicyMethods.selfLinkStringThe self link to the deleted method.
f5.PolicyMethods.kindStringThe type of the deleted method.

Command Example#

!f5-asm-policy-methods-delete policy_md5=kpD2qFaUlGAbw8RhN5IFQA method_name="Posty"

Context Example#

{
"f5": {
"PolicyMethods": {
"actAsMethod": "POST",
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "cwMuAdnzCUXmGBTc552zvQ",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:00:58Z",
"mandatory": null,
"metacharElementCheck": null,
"method": null,
"name": "Posty",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"postDataLength": null,
"protocol": null,
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/methods/cwMuAdnzCUXmGBTc552zvQ?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for deleting policy methods:#

nameidactAsMethodselfLinklastUpdateMicros
PostycwMuAdnzCUXmGBTc552zvQPOSThttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/methods/cwMuAdnzCUXmGBTc552zvQ?ver=15.1.02020-10-06T11:00:58Z

f5-asm-policy-file-types-add#


add new file type

Base Command#

f5-asm-policy-file-types-add

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy to which you want to add the new file type. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
new_file_typeThe new file type to add.Required
query_string_lengthThe length of the query string. Default is "100".Optional
check_post_data_lengthWhether to check the length of the data in the post method. Default is "true".Optional
response_checkWhether to check the response. Default is "true".Optional
check_request_lengthWhether to check the length of the request. Default is "true".Optional
post_data_lengthThe post data length. Default is "100".Optional
perform_stagingWhether to stage the new file type. Default is "false".Optional

Context Output#

PathTypeDescription
f5.FileType.nameStringThe name of the file type.
f5.FileType.idStringThe ID of the file type.
f5.FileType.queryStringLengthNumberThe length of the query string.
f5.FileType.selfLinkStringThe self link to the file type.
f5.FileType.lastUpdateMicrosStringThe datetime the file type was last updated represented in micro seconds since 1970-01-01 00:00:00 GMT (Unix epoch). For example, 1519382317000000 is Friday, 23 February 2018 10:38:37.
f5.FileType.responseCheckBooleanIndicates if user wanted to check the response.
f5.FileType.checkRequestLengthStringThe length of the request.
f5.FileType.allowedBooleanIndicates if the file type is allowed.
f5.FileType.check-url-lengthBooleanIndicates whether to check the URL length.
f5.FileType.postDataLengthNumberThe length of the post data.
f5.FileType.urlLengthNumberThe length of the URL.
f5.FileType.performStagingBooleanIndicates whether the file type should be staged.

Command Example#

!f5-asm-policy-file-types-add policy_md5=kpD2qFaUlGAbw8RhN5IFQA new_file_type="txt"

Context Example#

{
"f5": {
"FileType": {
"actAsMethod": null,
"allowed": true,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": true,
"checkUrlLength": false,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "x4JPPU1fey8i0DR1jB6UVA",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:01:08Z",
"mandatory": null,
"metacharElementCheck": null,
"method": null,
"name": "txt",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"postDataLength": 100,
"protocol": null,
"queryStringLength": null,
"responseCheck": true,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/filetypes/x4JPPU1fey8i0DR1jB6UVA?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "explicit",
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for adding policy file types:#

nameidtypeselfLinkcheckRequestLengthresponseCheckcheckUrlLengthpostDataLengthperformStagingallowedlastUpdateMicros
txtx4JPPU1fey8i0DR1jB6UVAexplicithttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/filetypes/x4JPPU1fey8i0DR1jB6UVA?ver=15.1.0truetruefalse100falsetrue2020-10-06T11:01:08Z

f5-asm-policy-file-types-update#


Updates the policy file type.

Base Command#

f5-asm-policy-file-types-update

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
file_type_idID of the file type. The ID or display name must be filled. Default is "None".Optional
file_type_nameDisplay name of the file type. The ID or display name must be filled. Default is "None".Optional
query_string_lengthThe length of the query string. Default is "100".Optional
check_post_data_lengthWhether to check the length of the data in the post method. Default is "True".Optional
response_checkWhether to check the response. Default is "true".Optional
check_request_lengthWhether to check the length of the request. Default is "true".Optional
post_data_lengthThe post data length. Default is "100".Optional
perform_stagingWhether to stage the updated file type. Default is "false".Optional

Context Output#

PathTypeDescription
f5.FileType.nameStringThe name of the file type.
f5.FileType.idStringThe ID of the file type.
f5.FileType.queryStringLengthNumberThe length of the query string.
f5.FileType.selfLinkStringThe self link to the file type.
f5.FileType.lastUpdateMicrosStringThe datetime the file type was last updated represented in micro seconds since 1970-01-01 00:00:00 GMT (Unix epoch). For example, 1519382317000000 is Friday, 23 February 2018 10:38:37.
f5.FileType.responseCheckBooleanIndicates whether the user wanted to check the response.
f5.FileType.checkRequestLengthStringThe length of the request.
f5.FileType.allowedBooleanIndicates if the file type is allowed.
f5.FileType.check-url-lengthBooleanIndicates whether the user wanted to check the URL length.
f5.FileType.postDataLengthNumberThe length of the post data.
f5.FileType.urlLengthNumberThe length of the URL.
f5.FileType.performStagingBooleanIndicates whether the file type should be staged.

Command Example#

!f5-asm-policy-file-types-update policy_md5=kpD2qFaUlGAbw8RhN5IFQA file_type_name="txt"

Context Example#

{
"f5": {
"FileType": {
"actAsMethod": null,
"allowed": true,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": true,
"checkUrlLength": false,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "x4JPPU1fey8i0DR1jB6UVA",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:01:08Z",
"mandatory": null,
"metacharElementCheck": null,
"method": null,
"name": "txt",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"postDataLength": 100,
"protocol": null,
"queryStringLength": null,
"responseCheck": true,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/filetypes/x4JPPU1fey8i0DR1jB6UVA?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "explicit",
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for updating policy methods:#

nameidtypeselfLinkcheckRequestLengthresponseCheckcheckUrlLengthpostDataLengthperformStagingallowedlastUpdateMicros
txtx4JPPU1fey8i0DR1jB6UVAexplicithttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/filetypes/x4JPPU1fey8i0DR1jB6UVA?ver=15.1.0truetruefalse100falsetrue2020-10-06T11:01:08Z

f5-asm-policy-file-types-delete#


Deletes the policy file type.

Base Command#

f5-asm-policy-file-types-delete

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
file_type_idID of the file type. The ID or display name must be filled. Default is "None".Optional
file_type_nameDisplay name of the file type. The ID or display name must be filled. Default is "None".Optional

Context Output#

PathTypeDescription
f5.FileType.nameStringDisplay name of the policy.
f5.FileType.idStringID of the policy that was deleted.
f5.FileType.selfLinkStringThe self link to the deleted policy.

Command Example#

!f5-asm-policy-file-types-delete policy_md5=kpD2qFaUlGAbw8RhN5IFQA file_type_name="txt"

Context Example#

{
"f5": {
"FileType": {
"actAsMethod": null,
"allowed": true,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": true,
"checkUrlLength": false,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "x4JPPU1fey8i0DR1jB6UVA",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:01:08Z",
"mandatory": null,
"metacharElementCheck": null,
"method": null,
"name": "txt",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"postDataLength": 100,
"protocol": null,
"queryStringLength": null,
"responseCheck": true,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/filetypes/x4JPPU1fey8i0DR1jB6UVA?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "explicit",
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for deleting policy file type:#

nameidtypeselfLinkcheckRequestLengthresponseCheckcheckUrlLengthpostDataLengthperformStagingallowedlastUpdateMicros
txtx4JPPU1fey8i0DR1jB6UVAexplicithttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/filetypes/x4JPPU1fey8i0DR1jB6UVA?ver=15.1.0truetruefalse100falsetrue2020-10-06T11:01:08Z

f5-asm-policy-delete#


Deletes a policy.

Base Command#

f5-asm-policy-delete

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required

Context Output#

PathTypeDescription
f5.Policy.nameStringDisplay name of the deleted policy.
f5.Policy.idStringID of the deleted policy.
f5.Policy.selfLinkStringThe self link to the deleted policy.

Command Example#

!f5-asm-policy-delete policy_md5=d2wbyiegGUJDigyNPELJuQ

Context Example#

{
"f5": {
"DeletePolicy": {
"id": "d2wbyiegGUJDigyNPELJuQ",
"name": "policy_to_delete",
"selfLink": "https://localhost/mgmt/tm/asm/policies/d2wbyiegGUJDigyNPELJuQ?ver=15.1.0",
"serverTechnologyName": null
}
}
}

Human Readable Output#

f5 data for deleting policy:#

nameidselfLink
policy_to_deleted2wbyiegGUJDigyNPELJuQhttps://localhost/mgmt/tm/asm/policies/d2wbyiegGUJDigyNPELJuQ?ver=15.1.0

f5-asm-policy-hostnames-list#


Lists the hostnames of the policy.

Base Command#

f5-asm-policy-hostnames-list

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required

Context Output#

PathTypeDescription
f5.Hostname.nameStringThe hostname of the policy.
f5.Hostname.idStringThe ID of the hostname.
f5.Hostname.createdByStringThe interface used to create the hostname.
f5.Hostname.selfLinkStringThe self link to the specific hostname.
f5.Hostname.includeSubdomainsBooleanIndicates whether to include subdomains.
f5.Hostname.lastUpdateMicrosStringThe datetime the hostname was last updated represented in micro seconds since 1970-01-01 00:00:00 GMT (Unix epoch). For example, 1519382317000000 is Friday, 23 February 2018 10:38:37.

Command Example#

!f5-asm-policy-hostnames-list policy_md5=kpD2qFaUlGAbw8RhN5IFQA

Context Example#

{
"f5": {
"Hostname": [
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": "GUI",
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "Wrq9YDsieAMC3Y2DSY5Rcg",
"ignoreAnomalies": null,
"includeSubdomains": true,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-09-01T12:22:17Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "example.com",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/host-names/Wrq9YDsieAMC3Y2DSY5Rcg?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"valueType": null
},
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": "GUI",
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "tM6UhfuSaPYYRnUS6-k2vg",
"ignoreAnomalies": null,
"includeSubdomains": false,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-09-01T12:36:37Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "qmasters.co.il",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/host-names/tM6UhfuSaPYYRnUS6-k2vg?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"valueType": null
},
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": "GUI",
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "_3pBVxU6gHchLIdX_Tm4vQ",
"ignoreAnomalies": null,
"includeSubdomains": false,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-05T21:09:06Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "cnn",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/host-names/_3pBVxU6gHchLIdX_Tm4vQ?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"valueType": null
},
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": "GUI",
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "HVkg9LRLJ6gCvXfE8FNvWg",
"ignoreAnomalies": null,
"includeSubdomains": false,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-05T21:08:39Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "google.com",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/host-names/HVkg9LRLJ6gCvXfE8FNvWg?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"valueType": null
}
]
}
}

Human Readable Output#

f5 data for listing policy hostname:#

nameidselfLinkincludeSubdomainscreatedBylastUpdateMicros
example.comWrq9YDsieAMC3Y2DSY5Rcghttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/host-names/Wrq9YDsieAMC3Y2DSY5Rcg?ver=15.1.0trueGUI2020-09-01T12:22:17Z
qmasters.co.iltM6UhfuSaPYYRnUS6-k2vghttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/host-names/tM6UhfuSaPYYRnUS6-k2vg?ver=15.1.0falseGUI2020-09-01T12:36:37Z
cnn_3pBVxU6gHchLIdX_Tm4vQhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/host-names/_3pBVxU6gHchLIdX_Tm4vQ?ver=15.1.0falseGUI2020-08-05T21:09:06Z
google.comHVkg9LRLJ6gCvXfE8FNvWghttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/host-names/HVkg9LRLJ6gCvXfE8FNvWg?ver=15.1.0falseGUI2020-08-05T21:08:39Z

f5-asm-policy-hostnames-add#


Adds a new hostname to a policy.

Base Command#

f5-asm-policy-hostnames-add

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
nameThe hostname to add to the policy.Required
include_subdomainsWhether to include subdomains in the policy. Default is "false".Optional

Context Output#

PathTypeDescription
f5.Hostname.nameStringThe policy hostname.
f5.Hostname.idStringThe policy ID.
f5.Hostname.createdByStringThe interface used to create the hostname.
f5.Hostname.selfLinkStringThe self link to the specific hostname.
f5.Hostname.includeSubdomainsBooleanIndicates whether to include subdomains.
f5.Hostname.lastUpdateMicrosStringThe datetime the hostname was last updated represented in micro seconds since 1970-01-01 00:00:00 GMT (Unix epoch). For example, 1519382317000000 is Friday, 23 February 2018 10:38:37.

Command Example#

!f5-asm-policy-hostnames-add policy_md5=kpD2qFaUlGAbw8RhN5IFQA name=qmasters.co

Context Example#

{
"f5": {
"Hostname": {
"actAsMethod": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": null,
"createdBy": "GUI",
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "dsblcoDkMkFb_A_H6BS6eA",
"ignoreAnomalies": null,
"includeSubdomains": false,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:01:25Z",
"mandatory": null,
"metacharElementCheck": null,
"method": null,
"name": "qmasters.co",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"postDataLength": null,
"protocol": null,
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/host-names/dsblcoDkMkFb_A_H6BS6eA?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for adding policy hostname:#

nameidselfLinkincludeSubdomainscreatedBylastUpdateMicros
qmasters.codsblcoDkMkFb_A_H6BS6eAhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/host-names/dsblcoDkMkFb_A_H6BS6eA?ver=15.1.0falseGUI2020-10-06T11:01:25Z

f5-asm-policy-hostnames-update#


Updates an existing policy hostname.

Base Command#

f5-asm-policy-hostnames-update

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
hostname_idID of the hostname. ID or display name must be filled. Default is "None".Optional
hostname_nameDisplay name of the hostname. ID or display name must be filled. Default is "None".Optional
include_subdomainsWhether to include subdomains.Required

Context Output#

PathTypeDescription
f5.Hostname.nameStringThe policy hostname.
f5.Hostname.idStringThe policy ID.
f5.Hostname.createdByStringThe interface used to create the hostname.
f5.Hostname.selfLinkStringThe self link to the specific hostname.
f5.Hostname.includeSubdomainsBooleanIndicates whether subdomains are included.
f5.Hostname.lastUpdateMicrosStringThe datetime the hostname was last updated represented in micro seconds since 1970-01-01 00:00:00 GMT (Unix epoch). For example, 1519382317000000 is Friday, 23 February 2018 10:38:37.

Command Example#

!f5-asm-policy-hostnames-update policy_md5=kpD2qFaUlGAbw8RhN5IFQA hostname_name=qmasters.co include_subdomains=true

Context Example#

{
"f5": {
"Hostname": {
"actAsMethod": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": null,
"createdBy": "GUI",
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "dsblcoDkMkFb_A_H6BS6eA",
"ignoreAnomalies": null,
"includeSubdomains": true,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:01:27Z",
"mandatory": null,
"metacharElementCheck": null,
"method": null,
"name": "qmasters.co",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"postDataLength": null,
"protocol": null,
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/host-names/dsblcoDkMkFb_A_H6BS6eA?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for updating hostname:#

nameidselfLinkincludeSubdomainscreatedBylastUpdateMicros
qmasters.codsblcoDkMkFb_A_H6BS6eAhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/host-names/dsblcoDkMkFb_A_H6BS6eA?ver=15.1.0trueGUI2020-10-06T11:01:27Z

f5-asm-policy-hostnames-delete#


Deletes a hostname from a policy.

Base Command#

f5-asm-policy-hostnames-delete

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
hostname_idThe ID of the hostname. The ID or display name must be filled. Default is "None".Optional
hostname_nameThe display name of the hostname. The ID or display name must be filled. Default is "None".Optional

Context Output#

PathTypeDescription
f5.Hostname.nameStringThe policy hostname.
f5.Hostname.idStringThe policy ID.
f5.Hostname.createdByStringThe interface used to create the hostname.
f5.Hostname.selfLinkStringThe self link to the specific hostname.
f5.Hostname.includeSubdomainsBooleanWhether to include subdomains.
f5.Hostname.lastUpdateMicrosStringThe datetime the hostname was last updated represented in micro seconds since 1970-01-01 00:00:00 GMT (Unix epoch). For example, 1519382317000000 is Friday, 23 February 2018 10:38:37.

Command Example#

!f5-asm-policy-hostnames-delete policy_md5=kpD2qFaUlGAbw8RhN5IFQA hostname_name=qmasters.co

Context Example#

{
"f5": {
"Hostname": {
"actAsMethod": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": null,
"createdBy": "GUI",
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "dsblcoDkMkFb_A_H6BS6eA",
"ignoreAnomalies": null,
"includeSubdomains": true,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:01:27Z",
"mandatory": null,
"metacharElementCheck": null,
"method": null,
"name": "qmasters.co",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"postDataLength": null,
"protocol": null,
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/host-names/dsblcoDkMkFb_A_H6BS6eA?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for deleting hostname:#

nameidselfLinkincludeSubdomainscreatedBylastUpdateMicros
qmasters.codsblcoDkMkFb_A_H6BS6eAhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/host-names/dsblcoDkMkFb_A_H6BS6eA?ver=15.1.0trueGUI2020-10-06T11:01:27Z

f5-asm-policy-cookies-list#


Lists all cookies of a given policy.

Base Command#

f5-asm-policy-cookies-list

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required

Context Output#

PathTypeDescription
f5.Cookies.nameStringThe name of the cookie.
f5.Cookies.idStringThe ID of the cookie.
f5.Cookies.selfLinkStringThe self link to the specific cookie.
f5.Cookies.enforcementTypeStringThe enforcement type of the cookie.
f5.Cookies.performStagingBooleanIndicates whether the cookie should be staged.
f5.Cookies.kindStringThe cookie type.
f5.Cookies.isBase64BooleanIndicates if the cookie is encoded in base64.
f5.Cookies.createdByStringIndicates which user created this cookie.

Command Example#

!f5-asm-policy-cookies-list policy_md5=kpD2qFaUlGAbw8RhN5IFQA

Context Example#

{
"f5": {
"Cookies": [
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": "GUI",
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": "allow",
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "6qrK8k_J8uIbW-r9fgQiCw",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": false,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-09-22T11:37:17Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "not_mal",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/cookies/6qrK8k_J8uIbW-r9fgQiCw?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "explicit",
"valueType": null
},
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": "GUI",
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": "allow",
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "w3iYXWKemaToYhPbDNXnDQ",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": false,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-01T16:48:41Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "chocolate",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/cookies/w3iYXWKemaToYhPbDNXnDQ?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "wildcard",
"valueType": null
},
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": "GUI",
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": "allow",
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "E1g7FVU2CYuY30F-Rp_MUw",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": false,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-05T21:04:51Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "yummy",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/cookies/E1g7FVU2CYuY30F-Rp_MUw?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "explicit",
"valueType": null
},
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": "GUI",
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": "allow",
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "HeC08NE594GztN6H7bTecA",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": false,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-05T21:04:43Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "yum",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/cookies/HeC08NE594GztN6H7bTecA?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "explicit",
"valueType": null
},
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": "GUI",
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": "allow",
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "M4na42GvebBMnI5wV_YMxg",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": false,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-23T10:24:10Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "*",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/cookies/M4na42GvebBMnI5wV_YMxg?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "wildcard",
"valueType": null
}
]
}
}

Human Readable Output#

f5 data for listing policy cookies:#

nameidtypeselfLinkenforcementTypeattackSignaturesCheckisBase64performStagingcreatedBylastUpdateMicros
not_mal6qrK8k_J8uIbW-r9fgQiCwexplicithttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/cookies/6qrK8k_J8uIbW-r9fgQiCw?ver=15.1.0allowtruefalsefalseGUI2020-09-22T11:37:17Z
chocolatew3iYXWKemaToYhPbDNXnDQwildcardhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/cookies/w3iYXWKemaToYhPbDNXnDQ?ver=15.1.0allowtruefalsefalseGUI2020-10-01T16:48:41Z
yummyE1g7FVU2CYuY30F-Rp_MUwexplicithttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/cookies/E1g7FVU2CYuY30F-Rp_MUw?ver=15.1.0allowtruefalsefalseGUI2020-08-05T21:04:51Z
yumHeC08NE594GztN6H7bTecAexplicithttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/cookies/HeC08NE594GztN6H7bTecA?ver=15.1.0allowtruefalsefalseGUI2020-08-05T21:04:43Z
*M4na42GvebBMnI5wV_YMxgwildcardhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/cookies/M4na42GvebBMnI5wV_YMxg?ver=15.1.0allowtruefalsefalseGUI2020-08-23T10:24:10Z

f5-asm-policy-blocking-settings-list#


Retrieves a blocking-settings list from a selected policy.

Base Command#

f5-asm-policy-blocking-settings-list

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
endpointSub-path of the blocking- settings element. Possible values are: "violations", "evasions", "http-protocols", and "web-services-securities".Required

Context Output#

PathTypeDescription
f5.BlockingSettings.descriptionStringDescription of the element.
f5.BlockingSettings.learnBooleanIndicates whether the element is learning.
f5.BlockingSettings.idStringThe element ID.
f5.BlockingSettings.kindStringThe type of element.
f5.BlockingSettings.enabledBooleanWhether the element is enabled.
f5.BlockingSettings.selfLinkStringThe self link to the specific element.
f5.BlockingSettings.referenceStringReference to the element.
f5.BlockingSettings.lastUpdateMicrosStringThe datetime the element was last updated represented in micro seconds since 1970-01-01 00:00:00 GMT (Unix epoch). For example, 1519382317000000 is Friday, 23 February 2018 10:38:37.
f5.BlockingSettings.section-referenceStringSection reference to the element.
f5.BlockingSettings.alarmBooleanWhether the system records requests that trigger the violation.
f5.BlockingSettings.blockBooleanWhether the element blocks the request that triggers the violation.

Command Example#

!f5-asm-policy-blocking-settings-list policy_md5=kpD2qFaUlGAbw8RhN5IFQA endpoint=evasions

Context Example#

{
"f5": {
"evasions": [
{
"alarm": null,
"block": null,
"description": "Bad unescape",
"enabled": false,
"id": "9--k-GSum4jUNSf0sU91Dw",
"kind": "tm:asm:policies:blocking-settings:evasions:evasionstate",
"lastUpdateMicros": "2020-08-16T10:18:55Z",
"learn": true,
"reference": "https://localhost/mgmt/tm/asm/sub-violations/evasions/9--k-GSum4jUNSf0sU91Dw?ver=15.1.0",
"section-reference": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/blocking-settings/evasions/9--k-GSum4jUNSf0sU91Dw?ver=15.1.0"
},
{
"alarm": null,
"block": null,
"description": "Apache whitespace",
"enabled": false,
"id": "Ahu8fuILcRNNU-ICBr1v6w",
"kind": "tm:asm:policies:blocking-settings:evasions:evasionstate",
"lastUpdateMicros": "2020-08-05T20:58:49Z",
"learn": true,
"reference": "https://localhost/mgmt/tm/asm/sub-violations/evasions/Ahu8fuILcRNNU-ICBr1v6w?ver=15.1.0",
"section-reference": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/blocking-settings/evasions/Ahu8fuILcRNNU-ICBr1v6w?ver=15.1.0"
},
{
"alarm": null,
"block": null,
"description": "Bare byte decoding",
"enabled": false,
"id": "EKfN2XD-E1z097tVwOO1nw",
"kind": "tm:asm:policies:blocking-settings:evasions:evasionstate",
"lastUpdateMicros": "2020-08-05T20:58:49Z",
"learn": true,
"reference": "https://localhost/mgmt/tm/asm/sub-violations/evasions/EKfN2XD-E1z097tVwOO1nw?ver=15.1.0",
"section-reference": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/blocking-settings/evasions/EKfN2XD-E1z097tVwOO1nw?ver=15.1.0"
},
{
"alarm": null,
"block": null,
"description": "IIS Unicode codepoints",
"enabled": false,
"id": "dtxhHW66r8ZswIeccbXbXA",
"kind": "tm:asm:policies:blocking-settings:evasions:evasionstate",
"lastUpdateMicros": "2020-08-05T20:58:49Z",
"learn": true,
"reference": "https://localhost/mgmt/tm/asm/sub-violations/evasions/dtxhHW66r8ZswIeccbXbXA?ver=15.1.0",
"section-reference": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/blocking-settings/evasions/dtxhHW66r8ZswIeccbXbXA?ver=15.1.0"
},
{
"alarm": null,
"block": null,
"description": "IIS backslashes",
"enabled": false,
"id": "6l0vHEYIIy4H06o9mY5RNQ",
"kind": "tm:asm:policies:blocking-settings:evasions:evasionstate",
"lastUpdateMicros": "2020-08-05T20:58:49Z",
"learn": true,
"reference": "https://localhost/mgmt/tm/asm/sub-violations/evasions/6l0vHEYIIy4H06o9mY5RNQ?ver=15.1.0",
"section-reference": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/blocking-settings/evasions/6l0vHEYIIy4H06o9mY5RNQ?ver=15.1.0"
},
{
"alarm": null,
"block": null,
"description": "%u decoding",
"enabled": false,
"id": "Y2TT8PSVtqudz407XG4LAQ",
"kind": "tm:asm:policies:blocking-settings:evasions:evasionstate",
"lastUpdateMicros": "2020-08-05T20:58:49Z",
"learn": true,
"reference": "https://localhost/mgmt/tm/asm/sub-violations/evasions/Y2TT8PSVtqudz407XG4LAQ?ver=15.1.0",
"section-reference": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/blocking-settings/evasions/Y2TT8PSVtqudz407XG4LAQ?ver=15.1.0"
},
{
"alarm": null,
"block": null,
"description": "Multiple decoding",
"enabled": false,
"id": "x02XsB6uJX5Eqp1brel7rw",
"kind": "tm:asm:policies:blocking-settings:evasions:evasionstate",
"lastUpdateMicros": "2020-08-05T20:58:49Z",
"learn": true,
"reference": "https://localhost/mgmt/tm/asm/sub-violations/evasions/x02XsB6uJX5Eqp1brel7rw?ver=15.1.0",
"section-reference": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/blocking-settings/evasions/x02XsB6uJX5Eqp1brel7rw?ver=15.1.0"
},
{
"alarm": null,
"block": null,
"description": "Directory traversals",
"enabled": false,
"id": "qH_2eaLz5x2RgaZ7dUISLA",
"kind": "tm:asm:policies:blocking-settings:evasions:evasionstate",
"lastUpdateMicros": "2020-08-05T20:58:49Z",
"learn": true,
"reference": "https://localhost/mgmt/tm/asm/sub-violations/evasions/qH_2eaLz5x2RgaZ7dUISLA?ver=15.1.0",
"section-reference": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/blocking-settings/evasions/qH_2eaLz5x2RgaZ7dUISLA?ver=15.1.0"
}
]
}
}

Human Readable Output#

Evasions for selected policy#

iddescriptionenabledlearnkindreferenceselfLinklastUpdateMicros
9--k-GSum4jUNSf0sU91DwBad unescapefalsetruetm:asm:policies:blocking-settings:evasions:evasionstatehttps://localhost/mgmt/tm/asm/sub-violations/evasions/9--k-GSum4jUNSf0sU91Dw?ver=15.1.0https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/blocking-settings/evasions/9--k-GSum4jUNSf0sU91Dw?ver=15.1.02020-08-16T10:18:55Z
Ahu8fuILcRNNU-ICBr1v6wApache whitespacefalsetruetm:asm:policies:blocking-settings:evasions:evasionstatehttps://localhost/mgmt/tm/asm/sub-violations/evasions/Ahu8fuILcRNNU-ICBr1v6w?ver=15.1.0https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/blocking-settings/evasions/Ahu8fuILcRNNU-ICBr1v6w?ver=15.1.02020-08-05T20:58:49Z
EKfN2XD-E1z097tVwOO1nwBare byte decodingfalsetruetm:asm:policies:blocking-settings:evasions:evasionstatehttps://localhost/mgmt/tm/asm/sub-violations/evasions/EKfN2XD-E1z097tVwOO1nw?ver=15.1.0https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/blocking-settings/evasions/EKfN2XD-E1z097tVwOO1nw?ver=15.1.02020-08-05T20:58:49Z
dtxhHW66r8ZswIeccbXbXAIIS Unicode codepointsfalsetruetm:asm:policies:blocking-settings:evasions:evasionstatehttps://localhost/mgmt/tm/asm/sub-violations/evasions/dtxhHW66r8ZswIeccbXbXA?ver=15.1.0https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/blocking-settings/evasions/dtxhHW66r8ZswIeccbXbXA?ver=15.1.02020-08-05T20:58:49Z
6l0vHEYIIy4H06o9mY5RNQIIS backslashesfalsetruetm:asm:policies:blocking-settings:evasions:evasionstatehttps://localhost/mgmt/tm/asm/sub-violations/evasions/6l0vHEYIIy4H06o9mY5RNQ?ver=15.1.0https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/blocking-settings/evasions/6l0vHEYIIy4H06o9mY5RNQ?ver=15.1.02020-08-05T20:58:49Z
Y2TT8PSVtqudz407XG4LAQ%u decodingfalsetruetm:asm:policies:blocking-settings:evasions:evasionstatehttps://localhost/mgmt/tm/asm/sub-violations/evasions/Y2TT8PSVtqudz407XG4LAQ?ver=15.1.0https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/blocking-settings/evasions/Y2TT8PSVtqudz407XG4LAQ?ver=15.1.02020-08-05T20:58:49Z
x02XsB6uJX5Eqp1brel7rwMultiple decodingfalsetruetm:asm:policies:blocking-settings:evasions:evasionstatehttps://localhost/mgmt/tm/asm/sub-violations/evasions/x02XsB6uJX5Eqp1brel7rw?ver=15.1.0https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/blocking-settings/evasions/x02XsB6uJX5Eqp1brel7rw?ver=15.1.02020-08-05T20:58:49Z
qH_2eaLz5x2RgaZ7dUISLADirectory traversalsfalsetruetm:asm:policies:blocking-settings:evasions:evasionstatehttps://localhost/mgmt/tm/asm/sub-violations/evasions/qH_2eaLz5x2RgaZ7dUISLA?ver=15.1.0https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/blocking-settings/evasions/qH_2eaLz5x2RgaZ7dUISLA?ver=15.1.02020-08-05T20:58:49Z

f5-asm-policy-blocking-settings-update#


Updates a blocking-settings element.

Base Command#

f5-asm-policy-blocking-settings-update

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
endpointSub-path of the blocking- settings element. Possible values are: "violations", "evasions", "http-protocols", and "web-services-securities".Required
descriptionDescription (or name) of the element.Required
learnWhether the element should learn.Optional
alarmWhether the system records requests that trigger the violation.Optional
blockWhether the element blocks the request that triggers the violation.Optional
enabledWhether the element should be enabled.Optional

Context Output#

PathTypeDescription
f5.BlockingSettings.descriptionStringThe description of the element.
f5.BlockingSettings.learnBooleanWhether the element is learning.
f5.BlockingSettings.idStringThe ID of the element.
f5.BlockingSettings.kindStringThe type of element.
f5.BlockingSettings.enabledBooleanWhether the element is enabled.
f5.BlockingSettings.selfLinkStringThe self link to the specific element.
f5.BlockingSettings.referenceStringThe reference to the element.
f5.BlockingSettings.lastUpdateMicrosStringThe datetime the resource was last updated represented in micro seconds since 1970-01-01 00:00:00 GMT (Unix epoch). For example, 1519382317000000 is Friday, 23 February 2018 10:38:37.
f5.BlockingSettings.section-referenceStringThe section reference to the element.
f5.BlockingSettings.alarmBooleanWhether the system records requests that trigger the violation.
f5.BlockingSettings.blockBooleanWhether the element blocks the request that triggers the violation.

Command Example#

!f5-asm-policy-blocking-settings-update policy_md5=kpD2qFaUlGAbw8RhN5IFQA endpoint=evasions description="Bad unescape"

Context Example#

{
"f5": {
"evasions": {
"alarm": null,
"block": null,
"description": "Bad unescape",
"enabled": false,
"id": "9--k-GSum4jUNSf0sU91Dw",
"kind": "tm:asm:policies:blocking-settings:evasions:evasionstate",
"lastUpdateMicros": "2020-08-16T10:18:55Z",
"learn": true,
"reference": "https://localhost/mgmt/tm/asm/sub-violations/evasions/9--k-GSum4jUNSf0sU91Dw?ver=15.1.0",
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/blocking-settings/evasions/9--k-GSum4jUNSf0sU91Dw?ver=15.1.0"
}
}
}

Human Readable Output#

Modified evasions#

iddescriptionenabledlearnkindreferenceselfLinklastUpdateMicros
9--k-GSum4jUNSf0sU91DwBad unescapefalsetruetm:asm:policies:blocking-settings:evasions:evasionstatehttps://localhost/mgmt/tm/asm/sub-violations/evasions/9--k-GSum4jUNSf0sU91Dw?ver=15.1.0https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/blocking-settings/evasions/9--k-GSum4jUNSf0sU91Dw?ver=15.1.02020-08-16T10:18:55Z

f5-asm-policy-urls-list#


Lists all policy URLs.

Base Command#

f5-asm-policy-urls-list

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required

Context Output#

PathTypeDescription
f5.Url.idStringThe ID of the URL.
f5.Url.nameStringThe name of the URL.
f5.Url.descriptionStringA description of the URL.
f5.Url.protocolStringThe protocol the URL uses.
f5.Url.typeStringWhether the URL is explicit or a wildcard.
f5.Url.methodStringThe allowed method (or all methods) of the URL.
f5.Url.isAllowedBooleanWhether the URL is allowed.
f5.Url.clickjackingProtectionBooleanWhether clickjacking protection is enabled in the URL.
f5.Url.performStagingBooleanIndicates whether the URL should be staged.
f5.Url.mandatoryBodyBooleanWhether a request body is mandatory.
f5.Url.selfLinkStringThe self link to the URL in the API.
f5.Url.lastUpdateMicrosStringThe datetime the last update was committed to the URL represented in micro seconds since 1970-01-01 00:00:00 GMT (Unix epoch). For example, 1519382317000000 is Friday, 23 February 2018 10:38:37.

Command Example#

!f5-asm-policy-urls-list policy_md5=kpD2qFaUlGAbw8RhN5IFQA

Context Example#

{
"f5": {
"Url": [
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": false,
"createdBy": "GUI",
"dataType": null,
"description": "",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "h89DiM-YtWptqKb9c0egbA",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": true,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-18T15:04:39Z",
"mandatory": null,
"mandatoryBody": false,
"metacharElementCheck": null,
"method": "*",
"name": "/http_example_2",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"protocol": "http",
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/urls/h89DiM-YtWptqKb9c0egbA?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "explicit",
"valueType": null
},
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": false,
"createdBy": "GUI",
"dataType": null,
"description": "",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "q_O5IGzUqSmFYZhlkA1CpQ",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": true,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-18T14:55:47Z",
"mandatory": null,
"mandatoryBody": false,
"metacharElementCheck": null,
"method": "*",
"name": "/http_example",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"protocol": "http",
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/urls/q_O5IGzUqSmFYZhlkA1CpQ?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "explicit",
"valueType": null
},
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": false,
"createdBy": "GUI",
"dataType": null,
"description": "",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "2lQ1Z3wue9pdEjZxE-L_ZQ",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": true,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-11T17:06:05Z",
"mandatory": null,
"mandatoryBody": false,
"metacharElementCheck": null,
"method": "*",
"name": "/http_examplel",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"protocol": "http",
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/urls/2lQ1Z3wue9pdEjZxE-L_ZQ?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "explicit",
"valueType": null
},
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": "GUI",
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "6ER7SOq208zow5rraOzwyQ",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": false,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-11T14:00:44Z",
"mandatory": null,
"mandatoryBody": true,
"metacharElementCheck": null,
"method": "*",
"name": "/http",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"protocol": "http",
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/urls/6ER7SOq208zow5rraOzwyQ?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "explicit",
"valueType": null
},
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": false,
"createdBy": "GUI",
"dataType": null,
"description": "",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "faiefv884qtHRU3Qva2AbQ",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": true,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-20T15:24:11Z",
"mandatory": null,
"mandatoryBody": false,
"metacharElementCheck": null,
"method": "*",
"name": "*",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"protocol": "http",
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/urls/faiefv884qtHRU3Qva2AbQ?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "wildcard",
"valueType": null
},
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": false,
"createdBy": "GUI",
"dataType": null,
"description": "",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "N_a3D1S7OKDehYEPb-mgCg",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": true,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-20T15:24:11Z",
"mandatory": null,
"mandatoryBody": false,
"metacharElementCheck": null,
"method": "*",
"name": "*",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"protocol": "https",
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/urls/N_a3D1S7OKDehYEPb-mgCg?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "wildcard",
"valueType": null
}
]
}
}

Human Readable Output#

f5 data for listing policy url:#

nameidtypeprotocolmethodselfLinkmandatoryBodyclickjackingProtectionattackSignaturesCheckperformStagingisAllowedcreatedBylastUpdateMicros
/http_example_2h89DiM-YtWptqKb9c0egbAexplicithttp*https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/urls/h89DiM-YtWptqKb9c0egbA?ver=15.1.0falsefalsetruefalsetrueGUI2020-08-18T15:04:39Z
/http_exampleq_O5IGzUqSmFYZhlkA1CpQexplicithttp*https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/urls/q_O5IGzUqSmFYZhlkA1CpQ?ver=15.1.0falsefalsetruefalsetrueGUI2020-08-18T14:55:47Z
/http_examplel2lQ1Z3wue9pdEjZxE-L_ZQexplicithttp*https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/urls/2lQ1Z3wue9pdEjZxE-L_ZQ?ver=15.1.0falsefalsetruefalsetrueGUI2020-08-11T17:06:05Z
/http6ER7SOq208zow5rraOzwyQexplicithttp*https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/urls/6ER7SOq208zow5rraOzwyQ?ver=15.1.0truefalseGUI2020-08-11T14:00:44Z
*faiefv884qtHRU3Qva2AbQwildcardhttp*https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/urls/faiefv884qtHRU3Qva2AbQ?ver=15.1.0falsefalsetruefalsetrueGUI2020-08-20T15:24:11Z
*N_a3D1S7OKDehYEPb-mgCgwildcardhttps*https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/urls/N_a3D1S7OKDehYEPb-mgCg?ver=15.1.0falsefalsetruefalsetrueGUI2020-08-20T15:24:11Z

f5-asm-policy-cookies-add#


Adds a new cookie to a specific policy.

Base Command#

f5-asm-policy-cookies-add

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
new_cookie_nameThe new cookie name to add.Required
perform_stagingWhether to stage the new cookie. Default is "false".Optional
parameter_typeType of the new parameter. Possible values are: "explicit" and "wildcard". Default is "explicit".Optional
enforcement_typeThe enforcement type. Possible values are: "allow" and "enforce". Default is "allow".Optional
attack_signatures_checkWhether attack signatures should be checked. Default is "true". If the enforcement type is set to "enforce", this field will not get any value.Optional

Context Output#

PathTypeDescription
f5.Cookies.nameStringThe name of the cookie.
f5.Cookies.idStringThe ID of the cookie.
f5.Cookies.selfLinkStringThe self link to the specific cookie.
f5.Cookies.enforcementTypeStringThe enforcement type.
f5.Cookies.performStagingBooleanIndicates whether the cookie should be staged.
f5.Cookies.typeStringThe type of the cookie.
f5.Cookies.isBase64BooleanIndicates if the cookie is encoded in base64.
f5.Cookies.createdByStringIndicates who created the cookie.

Command Example#

!f5-asm-policy-cookies-add policy_md5=kpD2qFaUlGAbw8RhN5IFQA new_cookie_name=new_cookie

Context Example#

{
"f5": {
"Cookies": {
"actAsMethod": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": null,
"createdBy": "GUI",
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": "allow",
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "7t_U2dbYEAQp89Wp0m_QoA",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": false,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:01:17Z",
"mandatory": null,
"metacharElementCheck": null,
"method": null,
"name": "new_cookie",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"postDataLength": null,
"protocol": null,
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/cookies/7t_U2dbYEAQp89Wp0m_QoA?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "explicit",
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for adding policy cookie: new_cookie#

nameidtypeselfLinkenforcementTypeisBase64attackSignaturesCheckcreatedByperformStaginglastUpdateMicros
new_cookie7t_U2dbYEAQp89Wp0m_QoAexplicithttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/cookies/7t_U2dbYEAQp89Wp0m_QoA?ver=15.1.0allowfalsetrueGUIfalse2020-10-06T11:01:17Z

f5-asm-policy-urls-add#


Adds a new URL to a policy.

Base Command#

f5-asm-policy-urls-add

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
protocolThe communication protocol. Possible values are: "http" and "https".Required
nameDisplay name of the new URL.Required
descriptionAn optional description for the URL.Optional
url_typeThe type of URL. Possible values are: "explicit" and "wildcard".Optional
is_allowedWhether the URL is allowed. Default is "true".Optional
methodThe method to use in the URL.Optional
clickjacking_protectionWhether clickjacking protection is enabled in the URL.Optional
perform_stagingWhether to stage the URL.Optional

Context Output#

PathTypeDescription
f5.Url.idStringThe ID of the URL.
f5.Url.nameStringThe name of the URL.
f5.Url.descriptionStringA description of the URL.
f5.Url.protocolStringThe protocol the URL uses.
f5.Url.typeStringWhether the URL is explicit or wildcard.
f5.Url.methodStringThe allowed method (or all) of the URL.
f5.Url.isAllowedBooleanWhether the URL is allowed.
f5.Url.clickjackingProtectionBooleanWhether clickjacking protection is enabled in the URL.
f5.Url.performStagingBooleanIndicates whether the URL should be staged.
f5.Url.mandatoryBodyBooleanWhether a request body is mandatory.
f5.Url.selfLinkStringThe self link to the specific URL in the API.
f5.Url.lastUpdateMicrosStringThe datetime the last update was committed to the URL represented in micro seconds since 1970-01-01 00:00:00 GMT (Unix epoch). For example, 1519382317000000 is Friday, 23 February 2018 10:38:37.

Command Example#

!f5-asm-policy-urls-add policy_md5=kpD2qFaUlGAbw8RhN5IFQA protocol=https name=validation

Context Example#

{
"f5": {
"Url": {
"actAsMethod": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": false,
"createdBy": "GUI",
"dataType": null,
"description": "",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "Q6tL31BrUl-vlY0yKsNSqA",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": true,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:01:46Z",
"mandatory": null,
"metacharElementCheck": null,
"method": "*",
"name": "/validation",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"postDataLength": null,
"protocol": "https",
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/urls/Q6tL31BrUl-vlY0yKsNSqA?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "explicit",
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for adding policy url:#

nameidtypeprotocolmethodselfLinkclickjackingProtectionattackSignaturesCheckcreatedByperformStagingisAllowedlastUpdateMicros
/validationQ6tL31BrUl-vlY0yKsNSqAexplicithttps*https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/urls/Q6tL31BrUl-vlY0yKsNSqA?ver=15.1.0falsetrueGUIfalsetrue2020-10-06T11:01:46Z

f5-asm-policy-urls-update#


Updates an existing policy URL.

Base Command#

f5-asm-policy-urls-update

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
url_idThe ID of the URL. The ID or display name must be filled. Default is "None".Optional
url_nameThe display name of the URL. The ID or display name must be filled. Default is "None".Optional
perform_stagingWhether to stage the URL.Optional
descriptionOptional new description for the URL.Optional
mandatory_bodyWhether a body is mandatory.Optional
url_isreferrerWhether the URL is a referrer.Optional

Context Output#

PathTypeDescription
f5.Url.idStringthe ID of the URL.
f5.Url.nameStringThe name of the URL.
f5.Url.descriptionStringA description of the URL.
f5.Url.protocolStringThe protocol the URL uses.
f5.Url.typeStringWhether the URL is explicit or wildcard.
f5.Url.methodStringThe allowed method (or all) of the URL.
f5.Url.isAllowedBooleanWhether the URL is allowed.
f5.Url.clickjackingProtectionBooleanWhether clickjacking protection is enabled in the URL.
f5.Url.performStagingBooleanIndicates whether the URL should be staged.
f5.Url.mandatoryBodyBooleanWhether a request body is mandatory.
f5.Url.selfLinkStringThe self link to the specific URL in the API.
f5.Url.lastUpdateMicrosStringThe datetime the last update was committed to the URL represented in micro seconds since 1970-01-01 00:00:00 GMT (Unix epoch). For example, 1519382317000000 is Friday, 23 February 2018 10:38:37.

Command Example#

!f5-asm-policy-urls-update policy_md5=kpD2qFaUlGAbw8RhN5IFQA url_name=/validation

Context Example#

{
"f5": {
"Url": {
"actAsMethod": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": false,
"createdBy": "GUI",
"dataType": null,
"description": "",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "Q6tL31BrUl-vlY0yKsNSqA",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": true,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:01:46Z",
"mandatory": null,
"metacharElementCheck": null,
"method": "*",
"name": "/validation",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"postDataLength": null,
"protocol": "https",
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/urls/Q6tL31BrUl-vlY0yKsNSqA?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "explicit",
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for updating url:#

nameidtypeprotocolmethodselfLinkclickjackingProtectionattackSignaturesCheckcreatedByperformStagingisAllowedlastUpdateMicros
/validationQ6tL31BrUl-vlY0yKsNSqAexplicithttps*https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/urls/Q6tL31BrUl-vlY0yKsNSqA?ver=15.1.0falsetrueGUIfalsetrue2020-10-06T11:01:46Z

f5-asm-policy-urls-delete#


Deletes a URL from a policy.

Base Command#

f5-asm-policy-urls-delete

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
url_idThe ID of the URL. The ID or display name must be filled. Default is "None".Optional
url_nameThe display name of the URL. The ID or display name must be filled. Default is "None".Optional

Context Output#

PathTypeDescription
f5.Url.idStringThe ID of the URL.
f5.Url.nameStringThe name of the URL.
f5.Url.descriptionStringA description of the URL.
f5.Url.protocolStringThe protocol the URL uses.
f5.Url.typeStringWhether the URL is explicit or wildcard.
f5.Url.methodStringThe allowed method (or all) of the URL.
f5.Url.isAllowedBooleanWhether the URL is allowed.
f5.Url.clickjackingProtectionBooleanWhether clickjacking protection is enabled in the URL.
f5.Url.performStagingBooleanIndicates whether the URL should be staged.
f5.Url.mandatoryBodyBooleanWhether a request body is mandatory.
f5.Url.selfLinkStringThe self link to the specific URL in the API.
f5.Url.lastUpdateMicrosStringThe datetime the last update was committed to the URL represented in micro seconds since 1970-01-01 00:00:00 GMT (Unix epoch). For example, 1519382317000000 is Friday, 23 February 2018 10:38:37.

Command Example#

!f5-asm-policy-urls-delete policy_md5=kpD2qFaUlGAbw8RhN5IFQA url_name=/validation

Context Example#

{
"f5": {
"Url": {
"actAsMethod": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": false,
"createdBy": "GUI",
"dataType": null,
"description": "",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "Q6tL31BrUl-vlY0yKsNSqA",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": true,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:01:46Z",
"mandatory": null,
"metacharElementCheck": null,
"method": "*",
"name": "/validation",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"postDataLength": null,
"protocol": "https",
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/urls/Q6tL31BrUl-vlY0yKsNSqA?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "explicit",
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for deleting url:#

nameidtypeprotocolmethodselfLinkclickjackingProtectionattackSignaturesCheckcreatedByperformStagingisAllowedlastUpdateMicros
/validationQ6tL31BrUl-vlY0yKsNSqAexplicithttps*https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/urls/Q6tL31BrUl-vlY0yKsNSqA?ver=15.1.0falsetrueGUIfalsetrue2020-10-06T11:01:46Z

f5-asm-policy-cookies-update#


Updates a cookie object.

Base Command#

f5-asm-policy-cookies-update

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
cookie_idThe ID of the cookie. The ID or display name must be filled. Default is "None".Optional
cookie_nameThe display name of the cookie. The ID or display name must be filled. Default is "None".Optional
perform_stagingWhether to stage the updated cookie. Default is "false".Optional
parameter_typeThe type of the new parameter. Possible values are: "wildcard" and "explicit". Default is "wildcard".Optional
enforcement_typeThe enforcement type. Possible values are: "allow" and "enforce".Default is "allow".Optional
attack_signatures_checkWhether attack signatures should be checked. Default is "true". If the enforcement type is set to "enforce", this field will not get any value.Optional

Context Output#

PathTypeDescription
f5.Cookies.nameStringThe name of the cookie.
f5.Cookies.idStringThe ID of the cookie.
f5.Cookies.selfLinkStringThe self link to the specific cookie.
f5.Cookies.enforcementTypeStringThe enforcement type.
f5.Cookies.performStagingBooleanIndicates whether the cookie should be staged.
f5.Cookies.typeStringThe type of the cookie.
f5.Cookies.isBase64BooleanIndicates if the cookie is encoded in base64.
f5.Cookies.createdByStringIndicates who created the cookie.

Command Example#

!f5-asm-policy-cookies-update policy_md5=kpD2qFaUlGAbw8RhN5IFQA cookie_name=new_cookie

Context Example#

{
"f5": {
"Cookies": {
"actAsMethod": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": null,
"createdBy": "GUI",
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": "allow",
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "7t_U2dbYEAQp89Wp0m_QoA",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": false,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:01:18Z",
"mandatory": null,
"metacharElementCheck": null,
"method": null,
"name": "new_cookie",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"postDataLength": null,
"protocol": null,
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/cookies/7t_U2dbYEAQp89Wp0m_QoA?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "wildcard",
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for updating cookie: new_cookie#

nameidtypeselfLinkenforcementTypeisBase64attackSignaturesCheckcreatedByperformStaginglastUpdateMicros
new_cookie7t_U2dbYEAQp89Wp0m_QoAwildcardhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/cookies/7t_U2dbYEAQp89Wp0m_QoA?ver=15.1.0allowfalsetrueGUIfalse2020-10-06T11:01:18Z

f5-asm-policy-cookies-delete#


Deletes a cookie.

Base Command#

f5-asm-policy-cookies-delete

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
cookie_idThe ID of the cookie. The ID or display name must be filled. Default is "None".Optional
cookie_nameThe display name of the cookie. The ID or display name must be filled. Default is "None".Optional

Context Output#

PathTypeDescription
f5.Cookies.nameStringThe name of the cookie.
f5.Cookies.idStringThe ID of the cookie.
f5.Cookies.selfLinkStringThe self link to the specific cookie.
f5.Cookies.enforcementTypeStringThe enforcement type.
f5.Cookies.performStagingBooleanIndicates whether the cookie should be staged.
f5.Cookies.typeStringThe type of the cookie.
f5.Cookies.isBase64BooleanIndicates if the cookie is encoded in base64.
f5.Cookies.createdByStringIndicates who created the cookie.

Command Example#

!f5-asm-policy-cookies-delete policy_md5=kpD2qFaUlGAbw8RhN5IFQA cookie_name=new_cookie

Context Example#

{
"f5": {
"Cookies": {
"actAsMethod": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": null,
"createdBy": "GUI",
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": "allow",
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "7t_U2dbYEAQp89Wp0m_QoA",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": false,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:01:18Z",
"mandatory": null,
"metacharElementCheck": null,
"method": null,
"name": "new_cookie",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"postDataLength": null,
"protocol": null,
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/cookies/7t_U2dbYEAQp89Wp0m_QoA?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "wildcard",
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for deleting cookie:#

nameidtypeselfLinkenforcementTypeisBase64attackSignaturesCheckcreatedByperformStaginglastUpdateMicros
new_cookie7t_U2dbYEAQp89Wp0m_QoAwildcardhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/cookies/7t_U2dbYEAQp89Wp0m_QoA?ver=15.1.0allowfalsetrueGUIfalse2020-10-06T11:01:18Z

f5-asm-policy-whitelist-ips-list#


Lists all IP address on allow list for a policy.

Base Command#

f5-asm-policy-whitelist-ips-list

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required

Context Output#

PathTypeDescription
f5.WhitelistIP.idStringThe ID of the IP address on allow list.
f5.WhitelistIP.ipAddressStringThe IP address on allow list.
f5.WhitelistIP.ipMaskStringThe subnet mask of the IP address on allow list.
f5.WhitelistIP.descriptionStringThe description for the IP address on allow list.
f5.WhitelistIP.blockRequestsStringHow or if the IP blocks requests.
f5.WhitelistIP.ignoreAnomaliesBooleanWhether to ignore anomalies.
f5.WhitelistIP.neverLogRequestsBooleanWhether to never log requests.
f5.WhitelistIP.neverLearnRequestsBooleanWhether to never learn requests.
f5.WhitelistIP.trustedByPolicyBuilderBooleanWhether the IP is trusted by the builder.
f5.WhitelistIP.selfLinkStringThe self link to the specific IP address on allow list.
f5.WhitelistIP.lastUpdateMicrosStringThe datetime of the last update represented in micro seconds since 1970-01-01 00:00:00 GMT (Unix epoch). For example, 1519382317000000 is Friday, 23 February 2018 10:38:37.

Command Example#

!f5-asm-policy-whitelist-ips-list policy_md5=kpD2qFaUlGAbw8RhN5IFQA

Context Example#

{
"f5": {
"WhitelistIP": [
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": "policy-default",
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": "",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "4CuqTmGkqfI01diFbc2PJQ",
"ignoreAnomalies": false,
"includeSubdomains": null,
"ipAddress": "100.100.100.100",
"ipMask": "255.255.255.255",
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-05T21:13:09Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": null,
"neverLearnRequests": false,
"neverLogRequests": false,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/whitelist-ips/4CuqTmGkqfI01diFbc2PJQ?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": false,
"type": null,
"valueType": null
},
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": "policy-default",
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": "",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "lbpOAL2E2f2C7qp7kiV3OA",
"ignoreAnomalies": false,
"includeSubdomains": null,
"ipAddress": "20.20.20.20",
"ipMask": "255.255.255.255",
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-05T21:13:38Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": null,
"neverLearnRequests": false,
"neverLogRequests": false,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/whitelist-ips/lbpOAL2E2f2C7qp7kiV3OA?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": false,
"type": null,
"valueType": null
},
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": "policy-default",
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": "",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "Uey6PzyJhbb6Qm-w0RD__Q",
"ignoreAnomalies": false,
"includeSubdomains": null,
"ipAddress": "30.30.30.30",
"ipMask": "255.255.255.255",
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-05T21:13:48Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": null,
"neverLearnRequests": false,
"neverLogRequests": false,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/whitelist-ips/Uey6PzyJhbb6Qm-w0RD__Q?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": false,
"type": null,
"valueType": null
},
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": "policy-default",
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": "",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "9lSC2hzsLvpsEgSTEpi4yw",
"ignoreAnomalies": false,
"includeSubdomains": null,
"ipAddress": "11.22.33.44",
"ipMask": "255.255.255.255",
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-09T15:15:56Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": null,
"neverLearnRequests": false,
"neverLogRequests": false,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/whitelist-ips/9lSC2hzsLvpsEgSTEpi4yw?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": false,
"type": null,
"valueType": null
},
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": "policy-default",
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": "",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "F2ZRy81hCYIAnYolA0fqzg",
"ignoreAnomalies": false,
"includeSubdomains": null,
"ipAddress": "1.2.3.44",
"ipMask": "255.255.255.255",
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-11T14:32:19Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": null,
"neverLearnRequests": false,
"neverLogRequests": true,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/whitelist-ips/F2ZRy81hCYIAnYolA0fqzg?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": false,
"type": null,
"valueType": null
},
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": "policy-default",
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": "",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "6fatQ08fMtHzcywc4gQDJA",
"ignoreAnomalies": false,
"includeSubdomains": null,
"ipAddress": "1.2.3.144",
"ipMask": "255.255.255.255",
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-11T14:31:24Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": null,
"neverLearnRequests": true,
"neverLogRequests": false,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/whitelist-ips/6fatQ08fMtHzcywc4gQDJA?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": true,
"type": null,
"valueType": null
}
]
}
}

Human Readable Output#

f5 list of all whitelist IPs:#

idselfLinkipAddressipMaskblockRequestsignoreAnomaliesneverLogRequestsneverLearnRequeststrustedByPolicyBuilderlastUpdateMicros
4CuqTmGkqfI01diFbc2PJQhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/whitelist-ips/4CuqTmGkqfI01diFbc2PJQ?ver=15.1.0100.100.100.100255.255.255.255policy-defaultfalsefalsefalsefalse2020-08-05T21:13:09Z
lbpOAL2E2f2C7qp7kiV3OAhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/whitelist-ips/lbpOAL2E2f2C7qp7kiV3OA?ver=15.1.020.20.20.20255.255.255.255policy-defaultfalsefalsefalsefalse2020-08-05T21:13:38Z
Uey6PzyJhbb6Qm-w0RD__Qhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/whitelist-ips/Uey6PzyJhbb6Qm-w0RD__Q?ver=15.1.030.30.30.30255.255.255.255policy-defaultfalsefalsefalsefalse2020-08-05T21:13:48Z
9lSC2hzsLvpsEgSTEpi4ywhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/whitelist-ips/9lSC2hzsLvpsEgSTEpi4yw?ver=15.1.011.22.33.44255.255.255.255policy-defaultfalsefalsefalsefalse2020-08-09T15:15:56Z
F2ZRy81hCYIAnYolA0fqzghttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/whitelist-ips/F2ZRy81hCYIAnYolA0fqzg?ver=15.1.01.2.3.44255.255.255.255policy-defaultfalsetruefalsefalse2020-08-11T14:32:19Z
6fatQ08fMtHzcywc4gQDJAhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/whitelist-ips/6fatQ08fMtHzcywc4gQDJA?ver=15.1.01.2.3.144255.255.255.255policy-defaultfalsefalsetruetrue2020-08-11T14:31:24Z

f5-asm-policy-whitelist-ips-add#


Adds a new IP address on allow list to a policy.

Base Command#

f5-asm-policy-whitelist-ips-add

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
ip_addressThe new IP address.Required
ip_maskSubnet mask for the new IP address.Optional
trusted_by_builderWhether the IP address is trusted by the policy builder.Optional
ignore_brute_detectionWhether to ignore detections of brute force.Optional
descriptionOptional description for the new IP address.Optional
block_requestsThe method of blocking requests. Possible values are: "policy-default", "never", and "always". Default is "policy-default".Optional
ignore_learningWhether to ignore learning suggestions.Optional
never_logWhether to never log from the IP address.Optional
ignore_intelligenceWhether to ignore intelligence gathered on the IP address.Optional

Context Output#

PathTypeDescription
f5.WhitelistIP.idStringID of the IP address on allow list.
f5.WhitelistIP.ipAddressStringThe IP address on allow list.
f5.WhitelistIP.ipMaskStringThe subnet mask of the IP address on allow list.
f5.WhitelistIP.descriptionStringA description for the IP address on allow list.
f5.WhitelistIP.blockRequestsStringHow or if the IP blocks requests.
f5.WhitelistIP.ignoreAnomaliesBooleanWhether to ignore anomalies.
f5.WhitelistIP.neverLogRequestsBooleanWhether to never log requests.
f5.WhitelistIP.neverLearnRequestsBooleanWhether to never learn requests.
f5.WhitelistIP.trustedByPolicyBuilderBooleanWhether the IP address is trusted by the builder.
f5.WhitelistIP.selfLinkStringThe self link to the specific IP address on allow list.
f5.WhitelistIP.lastUpdateMicrosStringThe datetime of the last update represented in micro seconds since 1970-01-01 00:00:00 GMT (Unix epoch). For example, 1519382317000000 is Friday, 23 February 2018 10:38:37.

Command Example#

!f5-asm-policy-whitelist-ips-add policy_md5=kpD2qFaUlGAbw8RhN5IFQA ip_address=1.2.3.4

Context Example#

{
"f5": {
"WhitelistIP": {
"actAsMethod": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": "policy-default",
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": "",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "pwbUREF-1u-BDw9MrdisOA",
"ignoreAnomalies": false,
"includeSubdomains": null,
"ipAddress": "1.2.3.4",
"ipMask": "255.255.255.255",
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:01:54Z",
"mandatory": null,
"metacharElementCheck": null,
"method": null,
"name": null,
"neverLearnRequests": false,
"neverLogRequests": false,
"performStaging": null,
"postDataLength": null,
"protocol": null,
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/whitelist-ips/pwbUREF-1u-BDw9MrdisOA?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": false,
"type": null,
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for listing whitelist IP:#

idselfLinkipAddressipMaskblockRequestsignoreAnomaliesneverLogRequestsneverLearnRequeststrustedByPolicyBuilderlastUpdateMicros
pwbUREF-1u-BDw9MrdisOAhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/whitelist-ips/pwbUREF-1u-BDw9MrdisOA?ver=15.1.01.2.3.4255.255.255.255policy-defaultfalsefalsefalsefalse2020-10-06T11:01:54Z

f5-asm-policy-whitelist-ips-update#


Updates an existing IP address on allow list.

Base Command#

f5-asm-policy-whitelist-ips-update

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
ip_idThe ID of the IP address. The ID or display name must be filled. Default is "None".Optional
ip_addressIP addressRequired
trusted_by_builderWhether the IP address is trusted by the policy builder. The ID or display name must be filled.Optional
ignore_brute_detectionWhether to ignore detections of brute force.Optional
descriptionOptional description for the new IP address.Optional
block_requestsThe method of blocking requests. Possible values are: "policy-default", "never", and "always". Default is "policy-default".Optional
ignore_learningWhether to ignore learning suggestions.Optional
never_logWhether to never log from the IP address.Optional
ignore_intelligenceWhether to ignore intelligence gathered on the IP address.Optional

Context Output#

PathTypeDescription
f5.WhitelistIP.idStringThe ID of the IP address on allow list.
f5.WhitelistIP.ipAddressStringThe IP address on allow list.
f5.WhitelistIP.ipMaskStringThe subnet mask of the IP address on allow list.
f5.WhitelistIP.descriptionStringA description for the IP address on allow list.
f5.WhitelistIP.blockRequestsStringHow or if the IP address blocks requests.
f5.WhitelistIP.ignoreAnomaliesBooleanWhether to ignore anomalies.
f5.WhitelistIP.neverLogRequestsBooleanWhether to never log requests.
f5.WhitelistIP.neverLearnRequestsBooleanWhether to never learn requests.
f5.WhitelistIP.trustedByPolicyBuilderBooleanWhether the IP address is trusted by the builder.
f5.WhitelistIP.selfLinkStringThe self link to the specific IP address on allow list.
f5.WhitelistIP.lastUpdateMicrosStringThe datetime of the last update represented in micro seconds since 1970-01-01 00:00:00 GMT (Unix epoch). For example, 1519382317000000 is Friday, 23 February 2018 10:38:37.

Command Example#

!f5-asm-policy-whitelist-ips-update policy_md5=kpD2qFaUlGAbw8RhN5IFQA ip_address=1.2.3.4

Context Example#

{
"f5": {
"WhitelistIP": {
"actAsMethod": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": "policy-default",
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": "",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "pwbUREF-1u-BDw9MrdisOA",
"ignoreAnomalies": false,
"includeSubdomains": null,
"ipAddress": "1.2.3.4",
"ipMask": "255.255.255.255",
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:01:54Z",
"mandatory": null,
"metacharElementCheck": null,
"method": null,
"name": null,
"neverLearnRequests": false,
"neverLogRequests": false,
"performStaging": null,
"postDataLength": null,
"protocol": null,
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/whitelist-ips/pwbUREF-1u-BDw9MrdisOA?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": false,
"type": null,
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for listing whitelist IP:#

idselfLinkipAddressipMaskblockRequestsignoreAnomaliesneverLogRequestsneverLearnRequeststrustedByPolicyBuilderlastUpdateMicros
pwbUREF-1u-BDw9MrdisOAhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/whitelist-ips/pwbUREF-1u-BDw9MrdisOA?ver=15.1.01.2.3.4255.255.255.255policy-defaultfalsefalsefalsefalse2020-10-06T11:01:54Z

f5-asm-policy-whitelist-ips-delete#


Deletes an existing IP address on allow list from a policy.

Base Command#

f5-asm-policy-whitelist-ips-delete

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
ip_idThe ID of the IP address. The ID or display name must be filled. Default is "None".Optional
ip_addressIP addressRequired

Context Output#

PathTypeDescription
f5.WhitelistIP.idStringThe ID of the IP address on allow list.
f5.WhitelistIP.ipAddressStringThe IP address on allow list.
f5.WhitelistIP.ipMaskStringThe subnet mask of the IP address on allow list.
f5.WhitelistIP.descriptionStringA description for the IP address on allow list.
f5.WhitelistIP.blockRequestsStringHow or if the IP address blocks requests.
f5.WhitelistIP.ignoreAnomaliesBooleanWhether to ignore anomalies.
f5.WhitelistIP.neverLogRequestsBooleanWhether to never log requests.
f5.WhitelistIP.neverLearnRequestsBooleanWhether to never learn requests.
f5.WhitelistIP.trustedByPolicyBuilderBooleanWhether the IP address is trusted by the builder.
f5.WhitelistIP.selfLinkStringThe self link to the specific IP address on allow list.
f5.WhitelistIP.lastUpdateMicrosStringThe datetime of the last update represented in micro seconds since 1970-01-01 00:00:00 GMT (Unix epoch). For example, 1519382317000000 is Friday, 23 February 2018 10:38:37.

Command Example#

!f5-asm-policy-whitelist-ips-delete policy_md5=kpD2qFaUlGAbw8RhN5IFQA ip_address=1.2.3.4

Context Example#

{
"f5": {
"WhitelistIP": {
"actAsMethod": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": "policy-default",
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": "",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "pwbUREF-1u-BDw9MrdisOA",
"ignoreAnomalies": false,
"includeSubdomains": null,
"ipAddress": "1.2.3.4",
"ipMask": "255.255.255.255",
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:01:54Z",
"mandatory": null,
"metacharElementCheck": null,
"method": null,
"name": null,
"neverLearnRequests": false,
"neverLogRequests": false,
"performStaging": null,
"postDataLength": null,
"protocol": null,
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/whitelist-ips/pwbUREF-1u-BDw9MrdisOA?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": false,
"type": null,
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for listing whitelist IP:#

idselfLinkipAddressipMaskblockRequestsignoreAnomaliesneverLogRequestsneverLearnRequeststrustedByPolicyBuilderlastUpdateMicros
pwbUREF-1u-BDw9MrdisOAhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/whitelist-ips/pwbUREF-1u-BDw9MrdisOA?ver=15.1.01.2.3.4255.255.255.255policy-defaultfalsefalsefalsefalse2020-10-06T11:01:54Z

f5-asm-policy-signatures-list#


Lists all signatures for a specified policy.

Base Command#

f5-asm-policy-signatures-list

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required

Context Output#

PathTypeDescription
f5.Signatures.idStringThe ID of the signature.
f5.Signatures.selfLinkStringThe self link to the specific signature.
f5.Signatures.performStagingBooleanIndicates whether the signature should be staged.
f5.Signatures.lastUpdateMicrosStringThe datetime of the last update represented in micro seconds since 1970-01-01 00:00:00 GMT (Unix epoch). For example, 1519382317000000 is Friday, 23 February 2018 10:38:37.

Command Example#

Human Readable Output#

f5-asm-policy-parameters-list#


Lists all policy parameters.

Base Command#

f5-asm-policy-parameters-list

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required

Context Output#

PathTypeDescription
f5.Parameter.idStringThe ID of the parameter.
f5.Parameter.nameStringThe display name of the parameter.
f5.Parameter.typeStringThe type of parameter (explicit / wildcard).
f5.Parameter.selfLinkStringThe self link to the specific parameter.
f5.Parameter.isBase64BooleanIndicates if the parameter is encoded in base64.
f5.Parameter.performStagingBooleanIndicates whether the parameter should be staged.
f5.Parameter.dataTypeStringThe type of data given in the parameter.
f5.Parameter.valueTypeStringThe type of values given in the parameter.
f5.Parameter.mandatoryBooleanWhether the parameter is mandatory.
f5.Parameter.isCookieBooleanWhether the parameter is located in the cookie.
f5.Parameter.isHeaderBooleanWhether the parameter is located in the header.
f5.Parameter.createdByStringIndicates who created the parameter.
f5.Parameter.lastUpdateMicrosStringThe datetime of the last update represented in micro seconds since 1970-01-01 00:00:00 GMT (Unix epoch). For example, 1519382317000000 is Friday, 23 February 2018 10:38:37.

Command Example#

!f5-asm-policy-parameters-list policy_md5=kpD2qFaUlGAbw8RhN5IFQA

Context Example#

{
"f5": {
"Parameter": [
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": "GUI",
"dataType": "alpha-numeric",
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "lyM6dyIqaEw9oARv5V8cKg",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": false,
"isCookie": false,
"isHeader": false,
"lastUpdateMicros": "2020-09-22T14:37:17Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "new_parameter",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/parameters/lyM6dyIqaEw9oARv5V8cKg?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "wildcard",
"valueType": "user-input"
},
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": "GUI",
"dataType": "alpha-numeric",
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "N_a3D1S7OKDehYEPb-mgCg",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": false,
"isCookie": false,
"isHeader": false,
"lastUpdateMicros": "2020-08-23T10:24:11Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "*",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/parameters/N_a3D1S7OKDehYEPb-mgCg?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "wildcard",
"valueType": "user-input"
}
]
}
}

Human Readable Output#

f5 list of all parameters:#

nameidtypeselfLinkattackSignaturesCheckisBase64dataTypevalueTypeisCookieisHeaderperformStagingcreatedBylastUpdateMicros
new_parameterlyM6dyIqaEw9oARv5V8cKgwildcardhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/parameters/lyM6dyIqaEw9oARv5V8cKg?ver=15.1.0truefalsealpha-numericuser-inputfalsefalsefalseGUI2020-09-22T14:37:17Z
*N_a3D1S7OKDehYEPb-mgCgwildcardhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/parameters/N_a3D1S7OKDehYEPb-mgCg?ver=15.1.0truefalsealpha-numericuser-inputfalsefalsefalseGUI2020-08-23T10:24:11Z

f5-asm-policy-parameters-add#


Adds a new parameter to a policy.

Base Command#

f5-asm-policy-parameters-add

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
param_typeThe type of the new parameter. Possible values are: "wildcard" and "explicit".Optional
nameThe display name of the new parameter.Required
value_typeThe type of value passed to the parameter. Possible values are: "user-input", "json", "static-content", "auto-detect", and "xml".Optional
param_locationThe location of the parameter. Possible values are: "any", "query", "form-data", "path", "header", and "cookie".Optional
mandatoryWhether the parameter is mandatory.Optional
perform_stagingWhether to stage the parameter.Optional
sensitiveWhether the parameter is sensitive. (Whether values should be masked in logs.)Optional
allow_emptyWhether the parameter allows empty values.Optional
allow_repeatedWhether the parameter allows repeated values.Optional

Context Output#

PathTypeDescription
f5.Parameter.idStringThe ID of the parameter.
f5.Parameter.nameStringThe display name of the parameter.
f5.Parameter.typeStringThe type of parameter (explicit / wildcard).
f5.Parameter.selfLinkStringThe self link to the specific parameter.
f5.Parameter.isBase64BooleanIndicates if the parameter is encoded in base64.
f5.Parameter.performStagingBooleanIndicates whether the parameter should be staged.
f5.Parameter.dataTypeStringThe type of data given in the parameter.
f5.Parameter.valueTypeStringThe type of values given in the parameter.
f5.Parameter.mandatoryBooleanWhether the parameter is mandatory.
f5.Parameter.isCookieBooleanWhether the parameter is located in the cookie.
f5.Parameter.isHeaderBooleanWhether the parameter is located in the header.
f5.Parameter.createdByStringIndicates who created the parameter.
f5.Parameter.lastUpdateMicrosStringThe datetime of the last update represented in micro seconds since 1970-01-01 00:00:00 GMT (Unix epoch). For example, 1519382317000000 is Friday, 23 February 2018 10:38:37.

Command Example#

!f5-asm-policy-parameters-add policy_md5=kpD2qFaUlGAbw8RhN5IFQA name=test_policy_parameter

Context Example#

{
"f5": {
"Parameter": {
"actAsMethod": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": null,
"createdBy": "GUI",
"dataType": "alpha-numeric",
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "Wm_Vq93ZrYML8FfDJqGSIw",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": false,
"isCookie": false,
"isHeader": false,
"lastUpdateMicros": "2020-10-06T11:02:03Z",
"mandatory": false,
"metacharElementCheck": null,
"method": null,
"name": "test_policy_parameter",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"postDataLength": null,
"protocol": null,
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/parameters/Wm_Vq93ZrYML8FfDJqGSIw?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "explicit",
"urlLength": null,
"valueType": "user-input"
}
}
}

Human Readable Output#

f5 data for adding parameter:#

nameidtypeselfLinkisBase64dataTypeattackSignaturesCheckisBase64valueTypemandatoryisCookieisHeadercreatedByperformStagingcreatedBylastUpdateMicros
test_policy_parameterWm_Vq93ZrYML8FfDJqGSIwexplicithttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/parameters/Wm_Vq93ZrYML8FfDJqGSIw?ver=15.1.0falsealpha-numerictruefalseuser-inputfalsefalsefalseGUIfalseGUI2020-10-06T11:02:03Z

f5-asm-policy-parameters-update#


Updates an existing policy parameter.

Base Command#

f5-asm-policy-parameters-update

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
parameter_idThe ID of the parameter. The ID or display name must be filled. Default is "None".Optional
parameter_nameThe display name of the parameter. The ID or display name must be filled.Required
value_typeThe type of value passed to the parameter. Possible values are: "user-input", "array", "dynamic", "ignore", "json", "static", "auto", and "xml".Optional
param_locationThe location of the parameter. Possible values are: "any", "query", "form-data", "path", "header", and "cookie".Optional
mandatoryWhether the parameter is mandatory.Optional
perform_stagingWhether to stage the parameter.Optional
sensitiveWhether the parameter is sensitive. (Whether values should be masked in logs.)Optional
allow_emptyWhether the parameter allows empty values.Optional
allow_repeatedWhether the parameter allows repeated values.Optional

Context Output#

PathTypeDescription
f5.Parameter.idStringThe ID of the parameter.
f5.Parameter.nameStringThe display name of the parameter.
f5.Parameter.typeStringThe type of parameter (explicit / wildcard).
f5.Parameter.selfLinkStringThe self link to the specific parameter.
f5.Parameter.isBase64BooleanIndicates if the parameter is encoded in base64.
f5.Parameter.performStagingBooleanIndicates whether the parameter should be staged.
f5.Parameter.dataTypeStringThe type of data given in the parameter.
f5.Parameter.valueTypeStringThe type of values given in the parameter.
f5.Parameter.mandatoryBooleanWhether the parameter is mandatory.
f5.Parameter.isCookieBooleanWhether the parameter is located in the cookie.
f5.Parameter.isHeaderBooleanWhether the parameter is located in the header.
f5.Parameter.createdByStringIndicates who created the parameter.
f5.Parameter.lastUpdateMicrosStringThe datetime of the last update represented in micro seconds since 1970-01-01 00:00:00 GMT (Unix epoch). For example, 1519382317000000 is Friday, 23 February 2018 10:38:37.

Command Example#

!f5-asm-policy-parameters-update policy_md5=kpD2qFaUlGAbw8RhN5IFQA parameter_name=test_policy_parameter

Context Example#

{
"f5": {
"Parameter": {
"actAsMethod": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": null,
"createdBy": "GUI",
"dataType": "alpha-numeric",
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "Wm_Vq93ZrYML8FfDJqGSIw",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": false,
"isCookie": false,
"isHeader": false,
"lastUpdateMicros": "2020-10-06T11:02:03Z",
"mandatory": false,
"metacharElementCheck": null,
"method": null,
"name": "test_policy_parameter",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"postDataLength": null,
"protocol": null,
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/parameters/Wm_Vq93ZrYML8FfDJqGSIw?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "explicit",
"urlLength": null,
"valueType": "user-input"
}
}
}

Human Readable Output#

f5 data for updating parameter:#

nameidtypeselfLinkisBase64dataTypeattackSignaturesCheckisBase64valueTypemandatoryisCookieisHeadercreatedByperformStagingcreatedBylastUpdateMicros
test_policy_parameterWm_Vq93ZrYML8FfDJqGSIwexplicithttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/parameters/Wm_Vq93ZrYML8FfDJqGSIw?ver=15.1.0falsealpha-numerictruefalseuser-inputfalsefalsefalseGUIfalseGUI2020-10-06T11:02:03Z

f5-asm-policy-parameters-delete#


Deletes an existing policy parameter.

Base Command#

f5-asm-policy-parameters-delete

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
parameter_idThe ID of the parameter. The ID or display name must be filled. Default is "None".Optional
parameter_nameThe display name of the parameter. ID or display name must be filled.Required

Context Output#

PathTypeDescription
f5.Parameter.idStringThe ID of the parameter.
f5.Parameter.nameStringThe display name of the parameter.
f5.Parameter.typeStringThe type of parameter (explicit / wildcard).
f5.Parameter.selfLinkStringThe self link to the specific parameter.
f5.Parameter.isBase64BooleanIndicates if the parameter is encoded in base64.
f5.Parameter.performStagingBooleanIndicates whether the parameter should be staged.
f5.Parameter.dataTypeStringThe type of data given in the parameter.
f5.Parameter.valueTypeStringThe type of values given in the parameter.
f5.Parameter.mandatoryBooleanWhether the parameter is mandatory.
f5.Parameter.isCookieBooleanWhether the parameter is located in the cookie.
f5.Parameter.isHeaderBooleanWhether the parameter is located in the header.
f5.Parameter.createdByStringIndicates who created the parameter.
f5.Parameter.lastUpdateMicrosStringThe datetime of the last update represented in micro seconds since 1970-01-01 00:00:00 GMT (Unix epoch). For example, 1519382317000000 is Friday, 23 February 2018 10:38:37.

Command Example#

!f5-asm-policy-parameters-delete policy_md5=kpD2qFaUlGAbw8RhN5IFQA parameter_name=test_policy_parameter

Context Example#

{
"f5": {
"Parameter": {
"actAsMethod": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": null,
"createdBy": "GUI",
"dataType": "alpha-numeric",
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "Wm_Vq93ZrYML8FfDJqGSIw",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": false,
"isCookie": false,
"isHeader": false,
"lastUpdateMicros": "2020-10-06T11:02:03Z",
"mandatory": false,
"metacharElementCheck": null,
"method": null,
"name": "test_policy_parameter",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": false,
"postDataLength": null,
"protocol": null,
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/parameters/Wm_Vq93ZrYML8FfDJqGSIw?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": "explicit",
"urlLength": null,
"valueType": "user-input"
}
}
}

Human Readable Output#

f5 data for deleting parameter:#

nameidtypeselfLinkisBase64dataTypeattackSignaturesCheckisBase64valueTypemandatoryisCookieisHeadercreatedByperformStagingcreatedBylastUpdateMicros
test_policy_parameterWm_Vq93ZrYML8FfDJqGSIwexplicithttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/parameters/Wm_Vq93ZrYML8FfDJqGSIw?ver=15.1.0falsealpha-numerictruefalseuser-inputfalsefalsefalseGUIfalseGUI2020-10-06T11:02:03Z

f5-asm-policy-gwt-profiles-list#


Lists all GWT profiles in a policy.

Base Command#

f5-asm-policy-gwt-profiles-list

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required

Context Output#

PathTypeDescription
f5.GWTProfile.idStringThe ID of the GWT profile.
f5.GWTProfile.nameStringThe display name of the GWT profile.
f5.GWTProfile.descriptionStringA description of the GWT profile.
f5.GWTProfile.isDefaultBooleanWhether the GWT profile is the default profile.
f5.GWTProfile.attackSignaturesCheckBooleanWhether the GWT profile should check for attack signatures.
f5.GWTProfile.isReferencedBooleanWhether the GWT profile is referenced.
f5.GWTProfile.metacharElementCheckBooleanWhether the GWT profile should check for metachar elements.

Command Example#

!f5-asm-policy-gwt-profiles-list policy_md5=kpD2qFaUlGAbw8RhN5IFQA

Context Example#

{
"f5": {
"GWTProfile": {
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": "Default GWT Profile",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "pKOP2_h7ezXmyZ-mE3cPnw",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-05T20:58:49Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": true,
"method": null,
"name": "Default",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/gwt-profiles/pKOP2_h7ezXmyZ-mE3cPnw?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"valueType": null
}
}
}

Human Readable Output#

f5 list of all GWT Profiles:#

nameidselfLinkdescriptionattackSignaturesCheckmetacharElementChecklastUpdateMicros
DefaultpKOP2_h7ezXmyZ-mE3cPnwhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/gwt-profiles/pKOP2_h7ezXmyZ-mE3cPnw?ver=15.1.0Default GWT Profiletruetrue2020-08-05T20:58:49Z

f5-asm-policy-gwt-profiles-add#


Adds a new GWT profile to a policy.

Base Command#

f5-asm-policy-gwt-profiles-add

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
nameThe display name of the profile.Required
descriptionOptional description for the profile.Optional
maximum_value_lenThe maximum length for a value in the profile. Default is "any".Optional
maximum_total_lenThe maximum length of all GWT data. Default is "any".Optional
tolerate_parsing_warningsWhether the profile should tolerate parsing warnings.Optional
check_signaturesWhether the profile should check for attack signatures.Optional
check_metacharsWhether the profile should check for metachar elements.Optional

Context Output#

PathTypeDescription
f5.GWTProfile.idStringThe ID of the GWT profile.
f5.GWTProfile.nameStringThe display name of the GWT profile.
f5.GWTProfile.descriptionStringA description of the GWT profile.
f5.GWTProfile.isDefaultBooleanWhether the GWT profile is the default profile.
f5.GWTProfile.attackSignaturesCheckBooleanWhether the GWT profile should check for attack signatures.
f5.GWTProfile.isReferencedBooleanWhether the GWT profile is referenced.
f5.GWTProfile.metacharElementCheckBooleanWhether the GWT profile should check for metachar elements.

Command Example#

!f5-asm-policy-gwt-profiles-add policy_md5=kpD2qFaUlGAbw8RhN5IFQA name=test_gwt_profile

Context Example#

{
"f5": {
"GWTProfile": {
"actAsMethod": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": "",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "R8SpevWA8hLFJ7dH2u6NqQ",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:02:12Z",
"mandatory": null,
"metacharElementCheck": false,
"method": null,
"name": "test_gwt_profile",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"postDataLength": null,
"protocol": null,
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/gwt-profiles/R8SpevWA8hLFJ7dH2u6NqQ?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for adding GWT profile:#

nameidselfLinkattackSignaturesCheckmetacharElementChecklastUpdateMicros
test_gwt_profileR8SpevWA8hLFJ7dH2u6NqQhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/gwt-profiles/R8SpevWA8hLFJ7dH2u6NqQ?ver=15.1.0truefalse2020-10-06T11:02:12Z

f5-asm-policy-gwt-profiles-update#


Updates an existing GWT profile

Base Command#

f5-asm-policy-gwt-profiles-update

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
gwt_profile_idThe ID of the GWT profile. The ID or display name must be filled. Default is "None".Optional
gwt_profile_nameThe display name of the GWT profile. The ID or display name must be filled.Required
descriptionOptional description for the profile.Optional
maximum_value_lenThe maximum length for a value in the profile. Default is "any".Optional
maximum_total_lenThe maximum length of all GWT data. Default is "any".Optional
tolerate_parsing_warningsWhether to tolerate parsing warnings.Optional
check_signaturesWhether the profile should check for attack signatures.Optional
check_metacharsWhether the profile should check for metachar elements.Optional

Context Output#

PathTypeDescription
f5.GWTProfile.idStringThe ID of the GWT profile.
f5.GWTProfile.nameStringThe display name of the GWT profile.
f5.GWTProfile.descriptionStringA description of the GWT profile.
f5.GWTProfile.isDefaultBooleanWhether the GWT profile is the default profile.
f5.GWTProfile.attackSignaturesCheckBooleanWhether the GWT profile should check for attack signatures.
f5.GWTProfile.isReferencedBooleanWhether the GWT profile is referenced.
f5.GWTProfile.metacharElementCheckBooleanWhether the GWT profile should check for metachar elements.

Command Example#

!f5-asm-policy-gwt-profiles-update policy_md5=kpD2qFaUlGAbw8RhN5IFQA gwt_profile_name=test_gwt_profile

Context Example#

{
"f5": {
"GWTProfile": {
"actAsMethod": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": "",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "R8SpevWA8hLFJ7dH2u6NqQ",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:02:12Z",
"mandatory": null,
"metacharElementCheck": false,
"method": null,
"name": "test_gwt_profile",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"postDataLength": null,
"protocol": null,
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/gwt-profiles/R8SpevWA8hLFJ7dH2u6NqQ?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for updating GWT profile:#

nameidselfLinkattackSignaturesCheckmetacharElementChecklastUpdateMicros
test_gwt_profileR8SpevWA8hLFJ7dH2u6NqQhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/gwt-profiles/R8SpevWA8hLFJ7dH2u6NqQ?ver=15.1.0truefalse2020-10-06T11:02:12Z

f5-asm-policy-gwt-profiles-delete#


Deletes an existing GWT profile.

Base Command#

f5-asm-policy-gwt-profiles-delete

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
gwt_profile_idThe ID of the GWT profile. The ID or display name must be filled. Default is "None".Optional
gwt_profile_nameThe display name of the GWT profile. The ID or display name must be filled.Required

Context Output#

PathTypeDescription
f5.GWTProfile.idStringThe ID of the GWT profile.
f5.GWTProfile.nameStringThe display name of the GWT profile.
f5.GWTProfile.descriptionStringA description of the GWT profile.
f5.GWTProfile.isDefaultBooleanWhether the GWT profile is the default profile.
f5.GWTProfile.attackSignaturesCheckBooleanWhether the GWT profile should check for attack signatures.
f5.GWTProfile.isReferencedBooleanWhether the GWT profile is referenced.
f5.GWTProfile.metacharElementCheckBooleanWhether the GWT profile should check for metachar elements.

Command Example#

!f5-asm-policy-gwt-profiles-delete policy_md5=kpD2qFaUlGAbw8RhN5IFQA gwt_profile_name=test_gwt_profile

Context Example#

{
"f5": {
"GWTProfile": {
"actAsMethod": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": "",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "R8SpevWA8hLFJ7dH2u6NqQ",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:02:12Z",
"mandatory": null,
"metacharElementCheck": false,
"method": null,
"name": "test_gwt_profile",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"postDataLength": null,
"protocol": null,
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/gwt-profiles/R8SpevWA8hLFJ7dH2u6NqQ?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for deleting GWT profile:#

nameidselfLinkattackSignaturesCheckmetacharElementChecklastUpdateMicros
test_gwt_profileR8SpevWA8hLFJ7dH2u6NqQhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/gwt-profiles/R8SpevWA8hLFJ7dH2u6NqQ?ver=15.1.0truefalse2020-10-06T11:02:12Z

f5-asm-policy-json-profiles-list#


Lists all JSON profiles in a policy.

Base Command#

f5-asm-policy-json-profiles-list

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required

Context Output#

PathTypeDescription
f5.JSONProfile.idStringThe ID of JSON profile.
f5.JSONProfile.nameStringThe display name of the JSON profile.
f5.JSONProfile.descriptionStringA description of he JSON profile.
f5.JSONProfile.isDefaultBooleanWhether the JSON profile is the default profile.
f5.JSONProfile.attackSignaturesCheckBooleanWhether the JSON profile should check for attack signatures.
f5.JSONProfile.isReferencedBooleanWhether the JSON profile is referenced.
f5.JSONProfile.metacharElementCheckBooleanWhether the JSON profile should check for metachar elements.
f5.JSONProfile.hasValidationFilesBooleanWhether the JSON profile has validation files.
f5.JSONProfile.selfLinkStringThe self link to the specific profile.
f5.JSONProfile.lastUpdateStringThe time the last update was made to the profile.

Command Example#

!f5-asm-policy-json-profiles-list policy_md5=kpD2qFaUlGAbw8RhN5IFQA

Context Example#

{
"f5": {
"JSONProfile": {
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": "Default JSON Profile",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": false,
"id": "X8FbXF48VWJ5Tecp5ATd4A",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-05T20:58:49Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": "Default",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/json-profiles/X8FbXF48VWJ5Tecp5ATd4A?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"valueType": null
}
}
}

Human Readable Output#

f5 list of all JSON Profiles:#

nameidselfLinkdescriptionhasValidationFileslastUpdateMicros
DefaultX8FbXF48VWJ5Tecp5ATd4Ahttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/json-profiles/X8FbXF48VWJ5Tecp5ATd4A?ver=15.1.0Default JSON Profilefalse2020-08-05T20:58:49Z

f5-asm-policy-json-profiles-add#


Adds a new JSON profile to a policy.

Base Command#

f5-asm-policy-json-profiles-add

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
nameThe display name of the new profile.Required
descriptionOptional description for the JSON profile.Optional
maximum_total_lenThe maximum total length of the JSON data. Default is "any".Optional
maximum_value_lenThe maximum length for a single value. Default is "any".Optional
max_structure_depthThe maximum structure depth. Default is "any".Optional
max_array_lenThe maximum JSON array length. Default is "any".Optional
tolerate_parsing_warningsWhether the profile should tolerate JSON parsing warnings.Optional
parse_parametersWhether the profile should handle JSON values as parameters.Optional
check_signaturesWhether the profile should check for attack signatures.Optional
check_metacharsWhether the profile should check for metachar elements.Optional

Context Output#

PathTypeDescription
f5.JSONProfile.idStringThe ID of the JSON profile.
f5.JSONProfile.nameStringThe display name of the JSON profile.
f5.JSONProfile.descriptionStringA description of the JSON profile.
f5.JSONProfile.isDefaultBooleanWhether the JSON profile is the default profile.
f5.JSONProfile.attackSignaturesCheckBooleanWhether the JSON profile should check for attack signatures.
f5.JSONProfile.isReferencedBooleanWhether the JSON profile is referenced.
f5.JSONProfile.metacharElementCheckBooleanWhether the JSON profile should check for metachar elements.
f5.JSONProfile.hasValidationFilesBooleanWhether the JSON profile has validation files.
f5.JSONProfile.selfLinkStringThe self link to the specific profile.
f5.JSONProfile.lastUpdateStringThe time the last update was made to the profile.

Command Example#

!f5-asm-policy-json-profiles-add policy_md5=kpD2qFaUlGAbw8RhN5IFQA name=test_json_profile

Context Example#

{
"f5": {
"JSONProfile": {
"actAsMethod": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": "",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": false,
"id": "Mv3RpN8obPoe5IW-wdcdzA",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:02:22Z",
"mandatory": null,
"metacharElementCheck": null,
"method": null,
"name": "test_json_profile",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"postDataLength": null,
"protocol": null,
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/json-profiles/Mv3RpN8obPoe5IW-wdcdzA?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for adding JSON profile:#

nameidselfLinkhasValidationFileslastUpdateMicros
test_json_profileMv3RpN8obPoe5IW-wdcdzAhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/json-profiles/Mv3RpN8obPoe5IW-wdcdzA?ver=15.1.0false2020-10-06T11:02:22Z

f5-asm-policy-json-profiles-update#


Updates an existing JSON profile.

Base Command#

f5-asm-policy-json-profiles-update

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
json_idThe ID of the JSON profile. The ID or display name must be filled. Default is "None".Optional
json_nameThe display name of the JSON profile. The ID or display name must be filled.Required
descriptionOptional description for the JSON profileOptional
maximum_total_lenThe maximum total length of JSON data. Default is "any".Optional
maximum_value_lenThe maximum length for a single value. Default is "any".Optional
max_structure_depthThe maximum structure depth. Default is "any".Optional
max_array_lenThe maximum JSON array length. Default is "any".Optional
tolerate_parsing_warningsWhether the profile should tolerate JSON parsing warnings.Optional
parse_parametersWhether the profile should handle JSON values as parameters.Optional
check_signaturesWhether the profile should check for attack signatures.Optional
check_metacharsWhether the profile should check for metachar elements.Optional

Context Output#

PathTypeDescription
f5.JSONProfile.idStringThe ID of the JSON profile.
f5.JSONProfile.nameStringThe display name of the JSON profile.
f5.JSONProfile.descriptionStringA description of the JSON profile.
f5.JSONProfile.isDefaultBooleanWhether the JSON profile is the default profile.
f5.JSONProfile.attackSignaturesCheckBooleanWhether the JSON profile should check for attack signatures.
f5.JSONProfile.isReferencedBooleanWhether the JSON profile is referenced.
f5.JSONProfile.metacharElementCheckBooleanWhether the JSON profile should check for metachar elements.
f5.JSONProfile.hasValidationFilesBooleanWhether the JSON profile has validation files.
f5.JSONProfile.selfLinkStringThe self link to the specific profile.
f5.JSONProfile.lastUpdateStringThe time the last update was made to the profile.

Command Example#

!f5-asm-policy-json-profiles-update policy_md5=kpD2qFaUlGAbw8RhN5IFQA json_name=test_json_profile

Context Example#

{
"f5": {
"JSONProfile": {
"actAsMethod": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": "any",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": false,
"id": "Mv3RpN8obPoe5IW-wdcdzA",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:02:24Z",
"mandatory": null,
"metacharElementCheck": null,
"method": null,
"name": "test_json_profile",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"postDataLength": null,
"protocol": null,
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/json-profiles/Mv3RpN8obPoe5IW-wdcdzA?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for updating JSON profile:#

nameidselfLinkdescriptionhasValidationFileslastUpdateMicros
test_json_profileMv3RpN8obPoe5IW-wdcdzAhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/json-profiles/Mv3RpN8obPoe5IW-wdcdzA?ver=15.1.0anyfalse2020-10-06T11:02:24Z

f5-asm-policy-json-profiles-delete#


Deletes an existing JSON profile from a policy

Base Command#

f5-asm-policy-json-profiles-delete

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
json_idThe ID of the JSON profile. The ID or display name must be filled. Default is "None".Optional
json_nameThe display name of the JSON profile. The ID or display name must be filled.Required

Context Output#

PathTypeDescription
f5.JSONProfile.idStringThe ID of the JSON profile.
f5.JSONProfile.nameStringThe display name of the JSON profile.
f5.JSONProfile.descriptionStringA description of the JSON profile.
f5.JSONProfile.isDefaultBooleanWhether the JSON profile is the default profile.
f5.JSONProfile.attackSignaturesCheckBooleanWhether the JSON profile should check for attack signatures.
f5.JSONProfile.isReferencedBooleanWhether the JSON profile is referenced.
f5.JSONProfile.metacharElementCheckBooleanWhether the JSON profile should check for metachar elements.
f5.JSONProfile.hasValidationFilesBooleanWhether the JSON profile has validation files.
f5.JSONProfile.selfLinkStringThe self link to the specific profile.
f5.JSONProfile.lastUpdateStringThe time the last update was made to the profile.

Command Example#

!f5-asm-policy-json-profiles-delete policy_md5=kpD2qFaUlGAbw8RhN5IFQA json_name=test_json_profile

Context Example#

{
"f5": {
"JSONProfile": {
"actAsMethod": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": "any",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": false,
"id": "Mv3RpN8obPoe5IW-wdcdzA",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:02:24Z",
"mandatory": null,
"metacharElementCheck": null,
"method": null,
"name": "test_json_profile",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"postDataLength": null,
"protocol": null,
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/json-profiles/Mv3RpN8obPoe5IW-wdcdzA?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for deleting JSON profile:#

nameidselfLinkdescriptionhasValidationFileslastUpdateMicros
test_json_profileMv3RpN8obPoe5IW-wdcdzAhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/json-profiles/Mv3RpN8obPoe5IW-wdcdzA?ver=15.1.0anyfalse2020-10-06T11:02:24Z

f5-asm-policy-xml-profiles-list#


Lists all XML profiles in a policy.

Base Command#

f5-asm-policy-xml-profiles-list

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required

Context Output#

PathTypeDescription
f5.XMLProfile.idStringThe ID of the XML profile
f5.XMLProfile.nameStringThe display name of the XML profile.
f5.XMLProfile.descriptionStringA description of the XML profile.
f5.XMLProfile.isDefaultBooleanWhether the XML profile is the default profile.
f5.XMLProfile.attackSignaturesCheckBooleanWhether the XML profile should check for attack signatures.
f5.XMLProfile.followSchemaLinksBooleanWhether the profile should follow schema links.
f5.XMLProfile.metacharElementCheckBooleanWhether the XML profile should check for metachar elements.
f5.XMLProfile.metacharAttributeCheckBooleanWhether the profile should check for metachar attributes.
f5.XMLProfile.isReferencedBooleanWhether the XML profile is referenced.
f5.XMLProfile.enableWSSBooleanWhether the web service security should be enabled.
f5.XMLProfile.hasValidationFilesBooleanWhether the XML profile has validation files.
f5.XMLProfile.selfLinkStringThe self link to the specific profile.
f5.XMLProfile.lastUpdateStringThe time the last update was made to the profile.

Command Example#

!f5-asm-policy-xml-profiles-list policy_md5=kpD2qFaUlGAbw8RhN5IFQA

Context Example#

{
"f5": {
"XMLProfile": [
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": "",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": true,
"hasValidationFiles": null,
"id": "8pDEkwo33PlYf2EbTpt-3g",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-09-08T17:36:48Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": false,
"method": null,
"name": "new_xml_profile",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/xml-profiles/8pDEkwo33PlYf2EbTpt-3g?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"valueType": null
},
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": "Default XML Profile",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": false,
"hasValidationFiles": null,
"id": "jwQd_XYZPfNGYnc3l7P4Pg",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-05T20:58:51Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": false,
"method": null,
"name": "Default",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/xml-profiles/jwQd_XYZPfNGYnc3l7P4Pg?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"valueType": null
}
]
}
}

Human Readable Output#

f5 list of all XML Profiles:#

nameidselfLinkdescriptionattackSignaturesCheckmetacharElementCheckfollowSchemaLinkslastUpdateMicros
new_xml_profile8pDEkwo33PlYf2EbTpt-3ghttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/xml-profiles/8pDEkwo33PlYf2EbTpt-3g?ver=15.1.0truefalsetrue2020-09-08T17:36:48Z
DefaultjwQd_XYZPfNGYnc3l7P4Pghttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/xml-profiles/jwQd_XYZPfNGYnc3l7P4Pg?ver=15.1.0Default XML Profiletruefalsefalse2020-08-05T20:58:51Z

f5-asm-policy-xml-profiles-add#


Adds a new XML profile to a policy.

Base Command#

f5-asm-policy-xml-profiles-add

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
nameThe display name of the profile to add.Required
descriptionOptional description for the profile.Optional
check_signaturesWhether the profile should check for attack signatures.Optional
check_metachar_elementsWhether to check for metachar elements.Optional
check_metachar_attributesWhether to check for metachar attributes.Optional
enable_wssWhether to enable web services securities.Optional
inspect_soapWhether to inspect SOAP attachments.Optional
follow_linksWhether to follow schema links.Optional
use_xml_responseWhether to use the XML response page.Optional
allow_cdataWhether to allow CDATA.Optional
allow_dtdsWhether to allow DTDs.Optional
allow_external_refWhether to allow external references.Optional
allow_processing_instructionsWhether to allow processing instructions.Optional

Context Output#

PathTypeDescription
f5.XMLProfile.idStringThe ID of the XML profile.
f5.XMLProfile.nameStringThe display name of the XML profile.
f5.XMLProfile.descriptionStringA description of the XML profile.
f5.XMLProfile.isDefaultBooleanWhether the XML profile is the default profile.
f5.XMLProfile.attackSignaturesCheckBooleanWhether the XML profile should check for attack signatures.
f5.XMLProfile.followSchemaLinksBooleanWhether the profile should follow schema links.
f5.XMLProfile.metacharElementCheckBooleanWhether the XML profile should check for metachar elements.
f5.XMLProfile.metacharAttributeCheckBooleanWhether the profile should check for metachar attributes.
f5.XMLProfile.isReferencedBooleanWhether the XML profile is referenced.
f5.XMLProfile.enableWSSBooleanWhether the web service security should be enabled.
f5.XMLProfile.hasValidationFilesBooleanWhether the XML profile has validation files.
f5.XMLProfile.selfLinkStringThe self link to the specific profile.
f5.XMLProfile.lastUpdateStringThe time the last update was made to the profile.

Command Example#

!f5-asm-policy-xml-profiles-add policy_md5=kpD2qFaUlGAbw8RhN5IFQA name=test_xml_profile

Context Example#

{
"f5": {
"XMLProfile": {
"actAsMethod": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": "",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": true,
"hasValidationFiles": null,
"id": "zfebD7S9AIziPBRYkAkDww",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:02:36Z",
"mandatory": null,
"metacharElementCheck": false,
"method": null,
"name": "test_xml_profile",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"postDataLength": null,
"protocol": null,
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/xml-profiles/zfebD7S9AIziPBRYkAkDww?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for adding XML profile:#

nameidselfLinkattackSignaturesCheckmetacharElementCheckfollowSchemaLinkslastUpdateMicros
test_xml_profilezfebD7S9AIziPBRYkAkDwwhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/xml-profiles/zfebD7S9AIziPBRYkAkDww?ver=15.1.0truefalsetrue2020-10-06T11:02:36Z

f5-asm-policy-xml-profiles-update#


Updates an XML profile in a policy

Base Command#

f5-asm-policy-xml-profiles-update

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
xml_idThe ID of the XML profile. The ID or display name must be filled. Default is "None".Optional
xml_nameThe display name of the XML profile. The ID or display name must be filled.Required
descriptionOptional description for the profile.Optional
check_signaturesWhether the profile should check for attack signatures.Optional
check_metachar_elementsWhether to check for metachar elements.Optional
check_metachar_attributesWhether to check for metachar attributes.Optional
enable_wssWhether to enable web services securities.Optional
inspect_soapWhether to inspect SOAP attachments.Optional
follow_linksWhether to follow schema links.Optional
use_xml_responseWhether to use the XML response page.Optional
allow_cdataWhether to allow CDATA.Optional
allow_dtdsWhether to allow DTDs.Optional
allow_external_refWhether to allow external references.Optional
allow_processing_instructionsWhether to allow processing instructions.Optional

Context Output#

PathTypeDescription
f5.XMLProfile.idStringThe ID of the XML profile.
f5.XMLProfile.nameStringThe display name of the XML profile.
f5.XMLProfile.descriptionStringA description of the XML profile.
f5.XMLProfile.isDefaultBooleanWhether the XML profile is the default profile.
f5.XMLProfile.attackSignaturesCheckBooleanWhether the XML profile should check for attack signatures.
f5.XMLProfile.followSchemaLinksBooleanWhether the profile should follow schema links.
f5.XMLProfile.metacharElementCheckBooleanWhether the XML profile should check for metachar elements.
f5.XMLProfile.metacharAttributeCheckBooleanWhether the profile should check for metachar attributes.
f5.XMLProfile.isReferencedBooleanWhether the XML profile is referenced.
f5.XMLProfile.enableWSSBooleanWhether the web service security should be enabled.
f5.XMLProfile.hasValidationFilesBooleanWhether the XML profile has validation files.
f5.XMLProfile.selfLinkStringThe self link to the specific profile.
f5.XMLProfile.lastUpdateStringThe time the last update was made to the profile.

Command Example#

!f5-asm-policy-xml-profiles-update policy_md5=kpD2qFaUlGAbw8RhN5IFQA xml_name=test_xml_profile

Context Example#

{
"f5": {
"XMLProfile": {
"actAsMethod": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": "",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": true,
"hasValidationFiles": null,
"id": "zfebD7S9AIziPBRYkAkDww",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:02:36Z",
"mandatory": null,
"metacharElementCheck": false,
"method": null,
"name": "test_xml_profile",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"postDataLength": null,
"protocol": null,
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/xml-profiles/zfebD7S9AIziPBRYkAkDww?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for updating XML profile:#

nameidselfLinkattackSignaturesCheckmetacharElementCheckfollowSchemaLinkslastUpdateMicros
test_xml_profilezfebD7S9AIziPBRYkAkDwwhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/xml-profiles/zfebD7S9AIziPBRYkAkDww?ver=15.1.0truefalsetrue2020-10-06T11:02:36Z

f5-asm-policy-xml-profiles-delete#


Deletes an existing XML profile from a policy

Base Command#

f5-asm-policy-xml-profiles-delete

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
xml_idThe ID of the XML profile. The ID or display name must be filled. Default is "None".Optional
xml_nameThe display name of the XML profile. The ID or display name must be filled.Required

Context Output#

PathTypeDescription
f5.XMLProfile.idStringThe ID of the XML profile.
f5.XMLProfile.nameStringThe display name of the XML profile.
f5.XMLProfile.descriptionStringA description of the XML profile.
f5.XMLProfile.isDefaultBooleanWhether the XML profile is the default profile.
f5.XMLProfile.attackSignaturesCheckBooleanWhether the XML profile should check for attack signatures.
f5.XMLProfile.followSchemaLinksBooleanWhether the profile should follow schema links.
f5.XMLProfile.metacharElementCheckBooleanWhether the XML profile should check for metachar elements.
f5.XMLProfile.metacharAttributeCheckBooleanWhether the profile should check for metachar attributes.
f5.XMLProfile.isReferencedBooleanWhether the XML profile is referenced.
f5.XMLProfile.enableWSSBooleanWhether the web service security should be enabled.
f5.XMLProfile.hasValidationFilesBooleanWhether the XML profile has validation files.
f5.XMLProfile.selfLinkStringThe self link to the specific profile.
f5.XMLProfile.lastUpdateStringThe time the last update was made to the profile.

Command Example#

!f5-asm-policy-xml-profiles-delete policy_md5=kpD2qFaUlGAbw8RhN5IFQA xml_name=test_xml_profile

Context Example#

{
"f5": {
"XMLProfile": {
"actAsMethod": null,
"allowed": null,
"attackSignaturesCheck": true,
"blockRequests": null,
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": "",
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": true,
"hasValidationFiles": null,
"id": "zfebD7S9AIziPBRYkAkDww",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:02:36Z",
"mandatory": null,
"metacharElementCheck": false,
"method": null,
"name": "test_xml_profile",
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"postDataLength": null,
"protocol": null,
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/xml-profiles/zfebD7S9AIziPBRYkAkDww?ver=15.1.0",
"serverTechnologyName": null,
"trustedByPolicyBuilder": null,
"type": null,
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for deleting XML profile:#

nameidselfLinkattackSignaturesCheckmetacharElementCheckfollowSchemaLinkslastUpdateMicros
test_xml_profilezfebD7S9AIziPBRYkAkDwwhttps://localhost/mgmt/tm/asm/policies/kpD2qFaUlGAbw8RhN5IFQA/xml-profiles/zfebD7S9AIziPBRYkAkDww?ver=15.1.0truefalsetrue2020-10-06T11:02:36Z

f5-asm-policy-server-technologies-list#


Lists all server technologies in a policy.

Base Command#

f5-asm-policy-server-technologies-list

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required

Context Output#

PathTypeDescription
f5.ServerTechnology.idStringThe ID of the server technology.
f5.ServerTechnology.selfLinkStringThe self link to the specific server technology.
f5.ServerTechnology.serverTechnologyNameStringThe display name of the server technology.
f5.ServerTechnology.lastUpdateMicrosStringThe datetime of the last update represented in micro seconds since 1970-01-01 00:00:00 GMT (Unix epoch). For example, 1519382317000000 is Friday, 23 February 2018 10:38:37.

Command Example#

!f5-asm-policy-server-technologies-list policy_md5=7FWxqE2a-3bbpJimP4amtA

Context Example#

{
"f5": {
"ServerTechnology": [
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "9v-Sp7QveE-BE2EimSjVew",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-16T11:01:18Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": null,
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/7FWxqE2a-3bbpJimP4amtA/server-technologies/9v-Sp7QveE-BE2EimSjVew?ver=15.1.0",
"serverTechnologyName": "Microsoft Windows",
"trustedByPolicyBuilder": null,
"type": null,
"valueType": null
},
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "5cSssMYANPqrl6gRBMfvMQ",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-16T11:01:18Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": null,
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/7FWxqE2a-3bbpJimP4amtA/server-technologies/5cSssMYANPqrl6gRBMfvMQ?ver=15.1.0",
"serverTechnologyName": "ASP.NET",
"trustedByPolicyBuilder": null,
"type": null,
"valueType": null
},
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "89yK8lM69m7Z8zoJ1Y-c_g",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-16T11:01:18Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": null,
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/7FWxqE2a-3bbpJimP4amtA/server-technologies/89yK8lM69m7Z8zoJ1Y-c_g?ver=15.1.0",
"serverTechnologyName": "Front Page Server Extensions (FPSE)",
"trustedByPolicyBuilder": null,
"type": null,
"valueType": null
},
{
"actAsMethod": null,
"active": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "V3PzMrvIWi_9ZM0m0y-92w",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-08-16T11:01:18Z",
"mandatory": null,
"mandatoryBody": null,
"metacharElementCheck": null,
"method": null,
"name": null,
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"protocol": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/7FWxqE2a-3bbpJimP4amtA/server-technologies/V3PzMrvIWi_9ZM0m0y-92w?ver=15.1.0",
"serverTechnologyName": "IIS",
"trustedByPolicyBuilder": null,
"type": null,
"valueType": null
}
]
}
}

Human Readable Output#

f5 list of all server technologies:#

serverTechnologyNameidselfLinklastUpdateMicros
Microsoft Windows9v-Sp7QveE-BE2EimSjVewhttps://localhost/mgmt/tm/asm/policies/7FWxqE2a-3bbpJimP4amtA/server-technologies/9v-Sp7QveE-BE2EimSjVew?ver=15.1.02020-08-16T11:01:18Z
ASP.NET5cSssMYANPqrl6gRBMfvMQhttps://localhost/mgmt/tm/asm/policies/7FWxqE2a-3bbpJimP4amtA/server-technologies/5cSssMYANPqrl6gRBMfvMQ?ver=15.1.02020-08-16T11:01:18Z
Front Page Server Extensions (FPSE)89yK8lM69m7Z8zoJ1Y-c_ghttps://localhost/mgmt/tm/asm/policies/7FWxqE2a-3bbpJimP4amtA/server-technologies/89yK8lM69m7Z8zoJ1Y-c_g?ver=15.1.02020-08-16T11:01:18Z
IISV3PzMrvIWi_9ZM0m0y-92whttps://localhost/mgmt/tm/asm/policies/7FWxqE2a-3bbpJimP4amtA/server-technologies/V3PzMrvIWi_9ZM0m0y-92w?ver=15.1.02020-08-16T11:01:18Z

f5-asm-policy-server-technologies-add#


Add a server technology to a policy

Base Command#

f5-asm-policy-server-technologies-add

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
technology_idThe ID of the server technology. The ID or display name must be filled. Default is "None".Optional
technology_nameThe display name of the server technology. The ID or display name must be filled.Optional

Context Output#

PathTypeDescription
f5.ServerTechnology.idStringThe ID of the server technology.
f5.ServerTechnology.selfLinkStringThe self link to the specific server technology.
f5.ServerTechnology.serverTechnologyNameStringThe display name of the server technology.
f5.ServerTechnology.lastUpdateMicrosStringThe datetime of the last update represented in micro seconds since 1970-01-01 00:00:00 GMT (Unix epoch). For example, 1519382317000000 is Friday, 23 February 2018 10:38:37.

Command Example#

!f5-asm-policy-server-technologies-add policy_md5=7FWxqE2a-3bbpJimP4amtA technology_name=ASP

Context Example#

{
"f5": {
"ServerTechnology": {
"actAsMethod": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "741BtgAqkVgEMykKfRxIIg",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:02:46Z",
"mandatory": null,
"metacharElementCheck": null,
"method": null,
"name": null,
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"postDataLength": null,
"protocol": null,
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/7FWxqE2a-3bbpJimP4amtA/server-technologies/741BtgAqkVgEMykKfRxIIg?ver=15.1.0",
"serverTechnologyName": "ASP",
"trustedByPolicyBuilder": null,
"type": null,
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for adding server technology:#

serverTechnologyNameidserverTechnologyNameselfLinklastUpdateMicros
ASP741BtgAqkVgEMykKfRxIIgASPhttps://localhost/mgmt/tm/asm/policies/7FWxqE2a-3bbpJimP4amtA/server-technologies/741BtgAqkVgEMykKfRxIIg?ver=15.1.02020-10-06T11:02:46Z

f5-asm-policy-server-technologies-delete#


Deletes a server technology from a policy.

Base Command#

f5-asm-policy-server-technologies-delete

Input#

Argument NameDescriptionRequired
policy_md5The MD5 hash of the policy. You can get the policy md5 using the f5-asm-get-policy-md5 command.Required
technology_idThe ID of the server technology. The ID or display name must be filled. Default is "None".Optional
technology_nameThe display name of the server technology. The ID or display name must be filled. Default is "None".Optional

Context Output#

PathTypeDescription
f5.ServerTechnology.idStringThe ID of the server technology.
f5.ServerTechnology.selfLinkStringThe self link to the specific server technology.
f5.ServerTechnology.serverTechnologyNameStringThe display name of the server technology.
f5.ServerTechnology.lastUpdateMicrosStringThe datetime of the last update represented in micro seconds since 1970-01-01 00:00:00 GMT (Unix epoch). For example, 1519382317000000 is Friday, 23 February 2018 10:38:37.

Command Example#

!f5-asm-policy-server-technologies-delete policy_md5=7FWxqE2a-3bbpJimP4amtA technology_name=ASP

Context Example#

{
"f5": {
"ServerTechnology": {
"actAsMethod": null,
"allowed": null,
"attackSignaturesCheck": null,
"blockRequests": null,
"checkRequestLength": null,
"checkUrlLength": null,
"clickjackingProtection": null,
"createdBy": null,
"dataType": null,
"description": null,
"enableWSS": null,
"enforcementType": null,
"followSchemaLinks": null,
"hasValidationFiles": null,
"id": "741BtgAqkVgEMykKfRxIIg",
"ignoreAnomalies": null,
"includeSubdomains": null,
"ipAddress": null,
"ipMask": null,
"isAllowed": null,
"isBase64": null,
"isCookie": null,
"isHeader": null,
"lastUpdateMicros": "2020-10-06T11:02:46Z",
"mandatory": null,
"metacharElementCheck": null,
"method": null,
"name": null,
"neverLearnRequests": null,
"neverLogRequests": null,
"performStaging": null,
"postDataLength": null,
"protocol": null,
"queryStringLength": null,
"responseCheck": null,
"selfLink": "https://localhost/mgmt/tm/asm/policies/7FWxqE2a-3bbpJimP4amtA/server-technologies/741BtgAqkVgEMykKfRxIIg?ver=15.1.0",
"serverTechnologyName": "ASP",
"trustedByPolicyBuilder": null,
"type": null,
"urlLength": null,
"valueType": null
}
}
}

Human Readable Output#

f5 data for listing server technology:#

serverTechnologyNameidserverTechnologyNameselfLinklastUpdateMicros
ASP741BtgAqkVgEMykKfRxIIgASPhttps://localhost/mgmt/tm/asm/policies/7FWxqE2a-3bbpJimP4amtA/server-technologies/741BtgAqkVgEMykKfRxIIg?ver=15.1.02020-10-06T11:02:46Z

f5-asm-get-policy-md5#


Gets the MD5 hash of a policy that can be accessed in the API.

Base Command#

f5-asm-get-policy-md5

Input#

Argument NameDescriptionRequired
policy_nameThe display name of the policy to get a hash for.Required

Context Output#

PathTypeDescription
f5.Policy.md5StringThe MD5 hash of the policy.

Command Example#

!f5-asm-get-policy-md5 policy_name=Test_Policy

Context Example#

{
"f5": {
"Policy": {
"md5": "kpD2qFaUlGAbw8RhN5IFQA"
}
}
}

Human Readable Output#

Results#

md5
kpD2qFaUlGAbw8RhN5IFQA