Invoke ADCAddRewritepolicylabel - j81blog/J81.ADCToolkit GitHub Wiki

Invoke-ADCAddRewritepolicylabel

SYNOPSIS

Add Rewrite configuration Object.

SYNTAX

Invoke-ADCAddRewritepolicylabel [-Labelname] <String> [-Transform] <String> [[-Comment] <String>] [-PassThru]
 [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Configuration for rewrite policy label resource.

EXAMPLES

EXAMPLE 1

Invoke-ADCAddRewritepolicylabel -labelname <string> -transform <string>

An example how to add rewritepolicylabel configuration Object(s).

PARAMETERS

-Labelname

Name for the rewrite policy label. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after the rewrite policy label is added.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Transform

Types of transformations allowed by the policies bound to the label. For Rewrite, the following types are supported:

  • http_req - HTTP requests
  • http_res - HTTP responses
  • othertcp_req - Non-HTTP TCP requests
  • othertcp_res - Non-HTTP TCP responses
  • url - URLs
  • text - Text strings
  • clientless_vpn_req - Citrix ADC clientless VPN requests
  • clientless_vpn_res - Citrix ADC clientless VPN responses
  • sipudp_req - SIP requests
  • sipudp_res - SIP responses
  • diameter_req - DIAMETER requests
  • diameter_res - DIAMETER responses
  • radius_req - RADIUS requests
  • radius_res - RADIUS responses
  • dns_req - DNS requests
  • dns_res - DNS responses. Possible values = http_req, http_res, othertcp_req, othertcp_res, url, text, clientless_vpn_req, clientless_vpn_res, sipudp_req, sipudp_res, siptcp_req, siptcp_res, diameter_req, diameter_res, radius_req, radius_res, dns_req, dns_res, httpquic_req, httpquic_res
Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Comment

Any comments to preserve information about this rewrite policy label.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PassThru

Return details about the created rewritepolicylabel item.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

File Name : Invoke-ADCAddRewritepolicylabel Version : v2111.2521 Author : John Billekens Reference : https://developer-docs.citrix.com/projects/citrix-adc-nitro-api-reference/en/latest/configuration/rewrite/rewritepolicylabel/ Requires : PowerShell v5.1 and up ADC 13.x and up. ADC 12 and lower may work, not guaranteed.

RELATED LINKS

https://blog.j81.nl

⚠️ **GitHub.com Fallback** ⚠️