1. Packages
  2. Vcd Provider
  3. API Docs
  4. NsxtAlbVirtualServiceHttpReqRules
vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware

vcd.NsxtAlbVirtualServiceHttpReqRules

Explore with Pulumi AI

vcd logo
vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware

    Create NsxtAlbVirtualServiceHttpReqRules Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new NsxtAlbVirtualServiceHttpReqRules(name: string, args: NsxtAlbVirtualServiceHttpReqRulesArgs, opts?: CustomResourceOptions);
    @overload
    def NsxtAlbVirtualServiceHttpReqRules(resource_name: str,
                                          args: NsxtAlbVirtualServiceHttpReqRulesArgs,
                                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def NsxtAlbVirtualServiceHttpReqRules(resource_name: str,
                                          opts: Optional[ResourceOptions] = None,
                                          rules: Optional[Sequence[NsxtAlbVirtualServiceHttpReqRulesRuleArgs]] = None,
                                          virtual_service_id: Optional[str] = None,
                                          nsxt_alb_virtual_service_http_req_rules_id: Optional[str] = None)
    func NewNsxtAlbVirtualServiceHttpReqRules(ctx *Context, name string, args NsxtAlbVirtualServiceHttpReqRulesArgs, opts ...ResourceOption) (*NsxtAlbVirtualServiceHttpReqRules, error)
    public NsxtAlbVirtualServiceHttpReqRules(string name, NsxtAlbVirtualServiceHttpReqRulesArgs args, CustomResourceOptions? opts = null)
    public NsxtAlbVirtualServiceHttpReqRules(String name, NsxtAlbVirtualServiceHttpReqRulesArgs args)
    public NsxtAlbVirtualServiceHttpReqRules(String name, NsxtAlbVirtualServiceHttpReqRulesArgs args, CustomResourceOptions options)
    
    type: vcd:NsxtAlbVirtualServiceHttpReqRules
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args NsxtAlbVirtualServiceHttpReqRulesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args NsxtAlbVirtualServiceHttpReqRulesArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args NsxtAlbVirtualServiceHttpReqRulesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NsxtAlbVirtualServiceHttpReqRulesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NsxtAlbVirtualServiceHttpReqRulesArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var nsxtAlbVirtualServiceHttpReqRulesResource = new Vcd.NsxtAlbVirtualServiceHttpReqRules("nsxtAlbVirtualServiceHttpReqRulesResource", new()
    {
        Rules = new[]
        {
            new Vcd.Inputs.NsxtAlbVirtualServiceHttpReqRulesRuleArgs
            {
                Actions = new Vcd.Inputs.NsxtAlbVirtualServiceHttpReqRulesRuleActionsArgs
                {
                    ModifyHeaders = new[]
                    {
                        new Vcd.Inputs.NsxtAlbVirtualServiceHttpReqRulesRuleActionsModifyHeaderArgs
                        {
                            Action = "string",
                            Name = "string",
                            Value = "string",
                        },
                    },
                    Redirect = new Vcd.Inputs.NsxtAlbVirtualServiceHttpReqRulesRuleActionsRedirectArgs
                    {
                        Protocol = "string",
                        StatusCode = 0,
                        Host = "string",
                        KeepQuery = false,
                        Path = "string",
                        Port = "string",
                    },
                    RewriteUrl = new Vcd.Inputs.NsxtAlbVirtualServiceHttpReqRulesRuleActionsRewriteUrlArgs
                    {
                        ExistingPath = "string",
                        HostHeader = "string",
                        KeepQuery = false,
                        Query = "string",
                    },
                },
                MatchCriteria = new Vcd.Inputs.NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaArgs
                {
                    ClientIpAddress = new Vcd.Inputs.NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaClientIpAddressArgs
                    {
                        Criteria = "string",
                        IpAddresses = new[]
                        {
                            "string",
                        },
                    },
                    Cookie = new Vcd.Inputs.NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaCookieArgs
                    {
                        Criteria = "string",
                        Name = "string",
                        Value = "string",
                    },
                    HttpMethods = new Vcd.Inputs.NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaHttpMethodsArgs
                    {
                        Criteria = "string",
                        Methods = new[]
                        {
                            "string",
                        },
                    },
                    Path = new Vcd.Inputs.NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaPathArgs
                    {
                        Criteria = "string",
                        Paths = new[]
                        {
                            "string",
                        },
                    },
                    ProtocolType = "string",
                    Queries = new[]
                    {
                        "string",
                    },
                    RequestHeaders = new[]
                    {
                        new Vcd.Inputs.NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaRequestHeaderArgs
                        {
                            Criteria = "string",
                            Name = "string",
                            Values = new[]
                            {
                                "string",
                            },
                        },
                    },
                    ServicePorts = new Vcd.Inputs.NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaServicePortsArgs
                    {
                        Criteria = "string",
                        Ports = new[]
                        {
                            0,
                        },
                    },
                },
                Name = "string",
                Active = false,
                Logging = false,
            },
        },
        VirtualServiceId = "string",
        NsxtAlbVirtualServiceHttpReqRulesId = "string",
    });
    
    example, err := vcd.NewNsxtAlbVirtualServiceHttpReqRules(ctx, "nsxtAlbVirtualServiceHttpReqRulesResource", &vcd.NsxtAlbVirtualServiceHttpReqRulesArgs{
    	Rules: vcd.NsxtAlbVirtualServiceHttpReqRulesRuleArray{
    		&vcd.NsxtAlbVirtualServiceHttpReqRulesRuleArgs{
    			Actions: &vcd.NsxtAlbVirtualServiceHttpReqRulesRuleActionsArgs{
    				ModifyHeaders: vcd.NsxtAlbVirtualServiceHttpReqRulesRuleActionsModifyHeaderArray{
    					&vcd.NsxtAlbVirtualServiceHttpReqRulesRuleActionsModifyHeaderArgs{
    						Action: pulumi.String("string"),
    						Name:   pulumi.String("string"),
    						Value:  pulumi.String("string"),
    					},
    				},
    				Redirect: &vcd.NsxtAlbVirtualServiceHttpReqRulesRuleActionsRedirectArgs{
    					Protocol:   pulumi.String("string"),
    					StatusCode: pulumi.Float64(0),
    					Host:       pulumi.String("string"),
    					KeepQuery:  pulumi.Bool(false),
    					Path:       pulumi.String("string"),
    					Port:       pulumi.String("string"),
    				},
    				RewriteUrl: &vcd.NsxtAlbVirtualServiceHttpReqRulesRuleActionsRewriteUrlArgs{
    					ExistingPath: pulumi.String("string"),
    					HostHeader:   pulumi.String("string"),
    					KeepQuery:    pulumi.Bool(false),
    					Query:        pulumi.String("string"),
    				},
    			},
    			MatchCriteria: &vcd.NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaArgs{
    				ClientIpAddress: &vcd.NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaClientIpAddressArgs{
    					Criteria: pulumi.String("string"),
    					IpAddresses: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    				},
    				Cookie: &vcd.NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaCookieArgs{
    					Criteria: pulumi.String("string"),
    					Name:     pulumi.String("string"),
    					Value:    pulumi.String("string"),
    				},
    				HttpMethods: &vcd.NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaHttpMethodsArgs{
    					Criteria: pulumi.String("string"),
    					Methods: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    				},
    				Path: &vcd.NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaPathArgs{
    					Criteria: pulumi.String("string"),
    					Paths: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    				},
    				ProtocolType: pulumi.String("string"),
    				Queries: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				RequestHeaders: vcd.NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaRequestHeaderArray{
    					&vcd.NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaRequestHeaderArgs{
    						Criteria: pulumi.String("string"),
    						Name:     pulumi.String("string"),
    						Values: pulumi.StringArray{
    							pulumi.String("string"),
    						},
    					},
    				},
    				ServicePorts: &vcd.NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaServicePortsArgs{
    					Criteria: pulumi.String("string"),
    					Ports: pulumi.Float64Array{
    						pulumi.Float64(0),
    					},
    				},
    			},
    			Name:    pulumi.String("string"),
    			Active:  pulumi.Bool(false),
    			Logging: pulumi.Bool(false),
    		},
    	},
    	VirtualServiceId:                    pulumi.String("string"),
    	NsxtAlbVirtualServiceHttpReqRulesId: pulumi.String("string"),
    })
    
    var nsxtAlbVirtualServiceHttpReqRulesResource = new NsxtAlbVirtualServiceHttpReqRules("nsxtAlbVirtualServiceHttpReqRulesResource", NsxtAlbVirtualServiceHttpReqRulesArgs.builder()
        .rules(NsxtAlbVirtualServiceHttpReqRulesRuleArgs.builder()
            .actions(NsxtAlbVirtualServiceHttpReqRulesRuleActionsArgs.builder()
                .modifyHeaders(NsxtAlbVirtualServiceHttpReqRulesRuleActionsModifyHeaderArgs.builder()
                    .action("string")
                    .name("string")
                    .value("string")
                    .build())
                .redirect(NsxtAlbVirtualServiceHttpReqRulesRuleActionsRedirectArgs.builder()
                    .protocol("string")
                    .statusCode(0)
                    .host("string")
                    .keepQuery(false)
                    .path("string")
                    .port("string")
                    .build())
                .rewriteUrl(NsxtAlbVirtualServiceHttpReqRulesRuleActionsRewriteUrlArgs.builder()
                    .existingPath("string")
                    .hostHeader("string")
                    .keepQuery(false)
                    .query("string")
                    .build())
                .build())
            .matchCriteria(NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaArgs.builder()
                .clientIpAddress(NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaClientIpAddressArgs.builder()
                    .criteria("string")
                    .ipAddresses("string")
                    .build())
                .cookie(NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaCookieArgs.builder()
                    .criteria("string")
                    .name("string")
                    .value("string")
                    .build())
                .httpMethods(NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaHttpMethodsArgs.builder()
                    .criteria("string")
                    .methods("string")
                    .build())
                .path(NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaPathArgs.builder()
                    .criteria("string")
                    .paths("string")
                    .build())
                .protocolType("string")
                .queries("string")
                .requestHeaders(NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaRequestHeaderArgs.builder()
                    .criteria("string")
                    .name("string")
                    .values("string")
                    .build())
                .servicePorts(NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaServicePortsArgs.builder()
                    .criteria("string")
                    .ports(0)
                    .build())
                .build())
            .name("string")
            .active(false)
            .logging(false)
            .build())
        .virtualServiceId("string")
        .nsxtAlbVirtualServiceHttpReqRulesId("string")
        .build());
    
    nsxt_alb_virtual_service_http_req_rules_resource = vcd.NsxtAlbVirtualServiceHttpReqRules("nsxtAlbVirtualServiceHttpReqRulesResource",
        rules=[{
            "actions": {
                "modify_headers": [{
                    "action": "string",
                    "name": "string",
                    "value": "string",
                }],
                "redirect": {
                    "protocol": "string",
                    "status_code": 0,
                    "host": "string",
                    "keep_query": False,
                    "path": "string",
                    "port": "string",
                },
                "rewrite_url": {
                    "existing_path": "string",
                    "host_header": "string",
                    "keep_query": False,
                    "query": "string",
                },
            },
            "match_criteria": {
                "client_ip_address": {
                    "criteria": "string",
                    "ip_addresses": ["string"],
                },
                "cookie": {
                    "criteria": "string",
                    "name": "string",
                    "value": "string",
                },
                "http_methods": {
                    "criteria": "string",
                    "methods": ["string"],
                },
                "path": {
                    "criteria": "string",
                    "paths": ["string"],
                },
                "protocol_type": "string",
                "queries": ["string"],
                "request_headers": [{
                    "criteria": "string",
                    "name": "string",
                    "values": ["string"],
                }],
                "service_ports": {
                    "criteria": "string",
                    "ports": [0],
                },
            },
            "name": "string",
            "active": False,
            "logging": False,
        }],
        virtual_service_id="string",
        nsxt_alb_virtual_service_http_req_rules_id="string")
    
    const nsxtAlbVirtualServiceHttpReqRulesResource = new vcd.NsxtAlbVirtualServiceHttpReqRules("nsxtAlbVirtualServiceHttpReqRulesResource", {
        rules: [{
            actions: {
                modifyHeaders: [{
                    action: "string",
                    name: "string",
                    value: "string",
                }],
                redirect: {
                    protocol: "string",
                    statusCode: 0,
                    host: "string",
                    keepQuery: false,
                    path: "string",
                    port: "string",
                },
                rewriteUrl: {
                    existingPath: "string",
                    hostHeader: "string",
                    keepQuery: false,
                    query: "string",
                },
            },
            matchCriteria: {
                clientIpAddress: {
                    criteria: "string",
                    ipAddresses: ["string"],
                },
                cookie: {
                    criteria: "string",
                    name: "string",
                    value: "string",
                },
                httpMethods: {
                    criteria: "string",
                    methods: ["string"],
                },
                path: {
                    criteria: "string",
                    paths: ["string"],
                },
                protocolType: "string",
                queries: ["string"],
                requestHeaders: [{
                    criteria: "string",
                    name: "string",
                    values: ["string"],
                }],
                servicePorts: {
                    criteria: "string",
                    ports: [0],
                },
            },
            name: "string",
            active: false,
            logging: false,
        }],
        virtualServiceId: "string",
        nsxtAlbVirtualServiceHttpReqRulesId: "string",
    });
    
    type: vcd:NsxtAlbVirtualServiceHttpReqRules
    properties:
        nsxtAlbVirtualServiceHttpReqRulesId: string
        rules:
            - actions:
                modifyHeaders:
                    - action: string
                      name: string
                      value: string
                redirect:
                    host: string
                    keepQuery: false
                    path: string
                    port: string
                    protocol: string
                    statusCode: 0
                rewriteUrl:
                    existingPath: string
                    hostHeader: string
                    keepQuery: false
                    query: string
              active: false
              logging: false
              matchCriteria:
                clientIpAddress:
                    criteria: string
                    ipAddresses:
                        - string
                cookie:
                    criteria: string
                    name: string
                    value: string
                httpMethods:
                    criteria: string
                    methods:
                        - string
                path:
                    criteria: string
                    paths:
                        - string
                protocolType: string
                queries:
                    - string
                requestHeaders:
                    - criteria: string
                      name: string
                      values:
                        - string
                servicePorts:
                    criteria: string
                    ports:
                        - 0
              name: string
        virtualServiceId: string
    

    NsxtAlbVirtualServiceHttpReqRules Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The NsxtAlbVirtualServiceHttpReqRules resource accepts the following input properties:

    Rules List<NsxtAlbVirtualServiceHttpReqRulesRule>

    One or more rule blocks with matching criteria and actions.

    VirtualServiceId string
    An ID of existing ALB Virtual Service.
    NsxtAlbVirtualServiceHttpReqRulesId string
    Rules []NsxtAlbVirtualServiceHttpReqRulesRuleArgs

    One or more rule blocks with matching criteria and actions.

    VirtualServiceId string
    An ID of existing ALB Virtual Service.
    NsxtAlbVirtualServiceHttpReqRulesId string
    rules List<NsxtAlbVirtualServiceHttpReqRulesRule>

    One or more rule blocks with matching criteria and actions.

    virtualServiceId String
    An ID of existing ALB Virtual Service.
    nsxtAlbVirtualServiceHttpReqRulesId String
    rules NsxtAlbVirtualServiceHttpReqRulesRule[]

    One or more rule blocks with matching criteria and actions.

    virtualServiceId string
    An ID of existing ALB Virtual Service.
    nsxtAlbVirtualServiceHttpReqRulesId string
    rules Sequence[NsxtAlbVirtualServiceHttpReqRulesRuleArgs]

    One or more rule blocks with matching criteria and actions.

    virtual_service_id str
    An ID of existing ALB Virtual Service.
    nsxt_alb_virtual_service_http_req_rules_id str
    rules List<Property Map>

    One or more rule blocks with matching criteria and actions.

    virtualServiceId String
    An ID of existing ALB Virtual Service.
    nsxtAlbVirtualServiceHttpReqRulesId String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NsxtAlbVirtualServiceHttpReqRules resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing NsxtAlbVirtualServiceHttpReqRules Resource

    Get an existing NsxtAlbVirtualServiceHttpReqRules resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: NsxtAlbVirtualServiceHttpReqRulesState, opts?: CustomResourceOptions): NsxtAlbVirtualServiceHttpReqRules
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            nsxt_alb_virtual_service_http_req_rules_id: Optional[str] = None,
            rules: Optional[Sequence[NsxtAlbVirtualServiceHttpReqRulesRuleArgs]] = None,
            virtual_service_id: Optional[str] = None) -> NsxtAlbVirtualServiceHttpReqRules
    func GetNsxtAlbVirtualServiceHttpReqRules(ctx *Context, name string, id IDInput, state *NsxtAlbVirtualServiceHttpReqRulesState, opts ...ResourceOption) (*NsxtAlbVirtualServiceHttpReqRules, error)
    public static NsxtAlbVirtualServiceHttpReqRules Get(string name, Input<string> id, NsxtAlbVirtualServiceHttpReqRulesState? state, CustomResourceOptions? opts = null)
    public static NsxtAlbVirtualServiceHttpReqRules get(String name, Output<String> id, NsxtAlbVirtualServiceHttpReqRulesState state, CustomResourceOptions options)
    resources:  _:    type: vcd:NsxtAlbVirtualServiceHttpReqRules    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    NsxtAlbVirtualServiceHttpReqRulesId string
    Rules List<NsxtAlbVirtualServiceHttpReqRulesRule>

    One or more rule blocks with matching criteria and actions.

    VirtualServiceId string
    An ID of existing ALB Virtual Service.
    NsxtAlbVirtualServiceHttpReqRulesId string
    Rules []NsxtAlbVirtualServiceHttpReqRulesRuleArgs

    One or more rule blocks with matching criteria and actions.

    VirtualServiceId string
    An ID of existing ALB Virtual Service.
    nsxtAlbVirtualServiceHttpReqRulesId String
    rules List<NsxtAlbVirtualServiceHttpReqRulesRule>

    One or more rule blocks with matching criteria and actions.

    virtualServiceId String
    An ID of existing ALB Virtual Service.
    nsxtAlbVirtualServiceHttpReqRulesId string
    rules NsxtAlbVirtualServiceHttpReqRulesRule[]

    One or more rule blocks with matching criteria and actions.

    virtualServiceId string
    An ID of existing ALB Virtual Service.
    nsxt_alb_virtual_service_http_req_rules_id str
    rules Sequence[NsxtAlbVirtualServiceHttpReqRulesRuleArgs]

    One or more rule blocks with matching criteria and actions.

    virtual_service_id str
    An ID of existing ALB Virtual Service.
    nsxtAlbVirtualServiceHttpReqRulesId String
    rules List<Property Map>

    One or more rule blocks with matching criteria and actions.

    virtualServiceId String
    An ID of existing ALB Virtual Service.

    Supporting Types

    NsxtAlbVirtualServiceHttpReqRulesRule, NsxtAlbVirtualServiceHttpReqRulesRuleArgs

    Actions NsxtAlbVirtualServiceHttpReqRulesRuleActions
    Actions to perform with the rule that matches
    MatchCriteria NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteria
    Rule matching Criteria
    Name string
    Name of the rule
    Active bool
    Defines if the rule is active or not
    Logging bool
    Defines whether to enable logging with headers on rule match or not
    Actions NsxtAlbVirtualServiceHttpReqRulesRuleActions
    Actions to perform with the rule that matches
    MatchCriteria NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteria
    Rule matching Criteria
    Name string
    Name of the rule
    Active bool
    Defines if the rule is active or not
    Logging bool
    Defines whether to enable logging with headers on rule match or not
    actions NsxtAlbVirtualServiceHttpReqRulesRuleActions
    Actions to perform with the rule that matches
    matchCriteria NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteria
    Rule matching Criteria
    name String
    Name of the rule
    active Boolean
    Defines if the rule is active or not
    logging Boolean
    Defines whether to enable logging with headers on rule match or not
    actions NsxtAlbVirtualServiceHttpReqRulesRuleActions
    Actions to perform with the rule that matches
    matchCriteria NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteria
    Rule matching Criteria
    name string
    Name of the rule
    active boolean
    Defines if the rule is active or not
    logging boolean
    Defines whether to enable logging with headers on rule match or not
    actions NsxtAlbVirtualServiceHttpReqRulesRuleActions
    Actions to perform with the rule that matches
    match_criteria NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteria
    Rule matching Criteria
    name str
    Name of the rule
    active bool
    Defines if the rule is active or not
    logging bool
    Defines whether to enable logging with headers on rule match or not
    actions Property Map
    Actions to perform with the rule that matches
    matchCriteria Property Map
    Rule matching Criteria
    name String
    Name of the rule
    active Boolean
    Defines if the rule is active or not
    logging Boolean
    Defines whether to enable logging with headers on rule match or not

    NsxtAlbVirtualServiceHttpReqRulesRuleActions, NsxtAlbVirtualServiceHttpReqRulesRuleActionsArgs

    modifyHeaders List<Property Map>
    A set of header modification rules
    redirect Property Map
    Redirect request
    rewriteUrl Property Map
    URL rewrite rules

    NsxtAlbVirtualServiceHttpReqRulesRuleActionsModifyHeader, NsxtAlbVirtualServiceHttpReqRulesRuleActionsModifyHeaderArgs

    Action string
    One of the following HTTP header actions. Options - ADD, REMOVE, REPLACE
    Name string
    HTTP header name
    Value string
    HTTP header value
    Action string
    One of the following HTTP header actions. Options - ADD, REMOVE, REPLACE
    Name string
    HTTP header name
    Value string
    HTTP header value
    action String
    One of the following HTTP header actions. Options - ADD, REMOVE, REPLACE
    name String
    HTTP header name
    value String
    HTTP header value
    action string
    One of the following HTTP header actions. Options - ADD, REMOVE, REPLACE
    name string
    HTTP header name
    value string
    HTTP header value
    action str
    One of the following HTTP header actions. Options - ADD, REMOVE, REPLACE
    name str
    HTTP header name
    value str
    HTTP header value
    action String
    One of the following HTTP header actions. Options - ADD, REMOVE, REPLACE
    name String
    HTTP header name
    value String
    HTTP header value

    NsxtAlbVirtualServiceHttpReqRulesRuleActionsRedirect, NsxtAlbVirtualServiceHttpReqRulesRuleActionsRedirectArgs

    Protocol string
    HTTP or HTTPS protocol
    StatusCode double
    One of the redirect status codes - 301, 302, 307
    Host string
    Host to which redirect the request
    KeepQuery bool
    Should the query part be preserved
    Path string
    Path to which redirect the request
    Port string
    Port to which redirect the request. Default is 80 for HTTP and 443 for HTTPS protocol
    Protocol string
    HTTP or HTTPS protocol
    StatusCode float64
    One of the redirect status codes - 301, 302, 307
    Host string
    Host to which redirect the request
    KeepQuery bool
    Should the query part be preserved
    Path string
    Path to which redirect the request
    Port string
    Port to which redirect the request. Default is 80 for HTTP and 443 for HTTPS protocol
    protocol String
    HTTP or HTTPS protocol
    statusCode Double
    One of the redirect status codes - 301, 302, 307
    host String
    Host to which redirect the request
    keepQuery Boolean
    Should the query part be preserved
    path String
    Path to which redirect the request
    port String
    Port to which redirect the request. Default is 80 for HTTP and 443 for HTTPS protocol
    protocol string
    HTTP or HTTPS protocol
    statusCode number
    One of the redirect status codes - 301, 302, 307
    host string
    Host to which redirect the request
    keepQuery boolean
    Should the query part be preserved
    path string
    Path to which redirect the request
    port string
    Port to which redirect the request. Default is 80 for HTTP and 443 for HTTPS protocol
    protocol str
    HTTP or HTTPS protocol
    status_code float
    One of the redirect status codes - 301, 302, 307
    host str
    Host to which redirect the request
    keep_query bool
    Should the query part be preserved
    path str
    Path to which redirect the request
    port str
    Port to which redirect the request. Default is 80 for HTTP and 443 for HTTPS protocol
    protocol String
    HTTP or HTTPS protocol
    statusCode Number
    One of the redirect status codes - 301, 302, 307
    host String
    Host to which redirect the request
    keepQuery Boolean
    Should the query part be preserved
    path String
    Path to which redirect the request
    port String
    Port to which redirect the request. Default is 80 for HTTP and 443 for HTTPS protocol

    NsxtAlbVirtualServiceHttpReqRulesRuleActionsRewriteUrl, NsxtAlbVirtualServiceHttpReqRulesRuleActionsRewriteUrlArgs

    ExistingPath string
    Path to use for the rewritten URL
    HostHeader string
    Host to use for the rewritten URL
    KeepQuery bool
    Whether or not to keep the existing query string when rewriting the URL
    Query string
    Query string to use or append to the existing query string in the rewritten URL
    ExistingPath string
    Path to use for the rewritten URL
    HostHeader string
    Host to use for the rewritten URL
    KeepQuery bool
    Whether or not to keep the existing query string when rewriting the URL
    Query string
    Query string to use or append to the existing query string in the rewritten URL
    existingPath String
    Path to use for the rewritten URL
    hostHeader String
    Host to use for the rewritten URL
    keepQuery Boolean
    Whether or not to keep the existing query string when rewriting the URL
    query String
    Query string to use or append to the existing query string in the rewritten URL
    existingPath string
    Path to use for the rewritten URL
    hostHeader string
    Host to use for the rewritten URL
    keepQuery boolean
    Whether or not to keep the existing query string when rewriting the URL
    query string
    Query string to use or append to the existing query string in the rewritten URL
    existing_path str
    Path to use for the rewritten URL
    host_header str
    Host to use for the rewritten URL
    keep_query bool
    Whether or not to keep the existing query string when rewriting the URL
    query str
    Query string to use or append to the existing query string in the rewritten URL
    existingPath String
    Path to use for the rewritten URL
    hostHeader String
    Host to use for the rewritten URL
    keepQuery Boolean
    Whether or not to keep the existing query string when rewriting the URL
    query String
    Query string to use or append to the existing query string in the rewritten URL

    NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteria, NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaArgs

    clientIpAddress Property Map
    Client IP Address criteria
    cookie Property Map
    Criteria for matching cookie
    httpMethods Property Map
    HTTP methods that should be matched
    path Property Map
    Request path criteria
    protocolType String
    Protocol to match - 'HTTP' or 'HTTPS'
    queries List<String>
    HTTP request query strings to match
    requestHeaders List<Property Map>
    A set of rules for matching request headers
    servicePorts Property Map
    Service Port criteria

    NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaClientIpAddress, NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaClientIpAddressArgs

    Criteria string
    Criteria to use for IP address matching the HTTP request. Options - IS_IN, IS_NOT_IN.
    IpAddresses List<string>
    A set of IP addresses
    Criteria string
    Criteria to use for IP address matching the HTTP request. Options - IS_IN, IS_NOT_IN.
    IpAddresses []string
    A set of IP addresses
    criteria String
    Criteria to use for IP address matching the HTTP request. Options - IS_IN, IS_NOT_IN.
    ipAddresses List<String>
    A set of IP addresses
    criteria string
    Criteria to use for IP address matching the HTTP request. Options - IS_IN, IS_NOT_IN.
    ipAddresses string[]
    A set of IP addresses
    criteria str
    Criteria to use for IP address matching the HTTP request. Options - IS_IN, IS_NOT_IN.
    ip_addresses Sequence[str]
    A set of IP addresses
    criteria String
    Criteria to use for IP address matching the HTTP request. Options - IS_IN, IS_NOT_IN.
    ipAddresses List<String>
    A set of IP addresses

    NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaCookie, NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaCookieArgs

    Criteria string
    Criteria to use for matching cookies in the HTTP request. Options - EXISTS, DOES_NOT_EXIST, BEGINS_WITH, DOES_NOT_BEGIN_WITH, CONTAINS, DOES_NOT_CONTAIN, ENDS_WITH, DOES_NOT_END_WITH, EQUALS, DOES_NOT_EQUAL
    Name string
    Name of the HTTP cookie whose value is to be matched
    Value string
    String values to match for an HTTP cookie
    Criteria string
    Criteria to use for matching cookies in the HTTP request. Options - EXISTS, DOES_NOT_EXIST, BEGINS_WITH, DOES_NOT_BEGIN_WITH, CONTAINS, DOES_NOT_CONTAIN, ENDS_WITH, DOES_NOT_END_WITH, EQUALS, DOES_NOT_EQUAL
    Name string
    Name of the HTTP cookie whose value is to be matched
    Value string
    String values to match for an HTTP cookie
    criteria String
    Criteria to use for matching cookies in the HTTP request. Options - EXISTS, DOES_NOT_EXIST, BEGINS_WITH, DOES_NOT_BEGIN_WITH, CONTAINS, DOES_NOT_CONTAIN, ENDS_WITH, DOES_NOT_END_WITH, EQUALS, DOES_NOT_EQUAL
    name String
    Name of the HTTP cookie whose value is to be matched
    value String
    String values to match for an HTTP cookie
    criteria string
    Criteria to use for matching cookies in the HTTP request. Options - EXISTS, DOES_NOT_EXIST, BEGINS_WITH, DOES_NOT_BEGIN_WITH, CONTAINS, DOES_NOT_CONTAIN, ENDS_WITH, DOES_NOT_END_WITH, EQUALS, DOES_NOT_EQUAL
    name string
    Name of the HTTP cookie whose value is to be matched
    value string
    String values to match for an HTTP cookie
    criteria str
    Criteria to use for matching cookies in the HTTP request. Options - EXISTS, DOES_NOT_EXIST, BEGINS_WITH, DOES_NOT_BEGIN_WITH, CONTAINS, DOES_NOT_CONTAIN, ENDS_WITH, DOES_NOT_END_WITH, EQUALS, DOES_NOT_EQUAL
    name str
    Name of the HTTP cookie whose value is to be matched
    value str
    String values to match for an HTTP cookie
    criteria String
    Criteria to use for matching cookies in the HTTP request. Options - EXISTS, DOES_NOT_EXIST, BEGINS_WITH, DOES_NOT_BEGIN_WITH, CONTAINS, DOES_NOT_CONTAIN, ENDS_WITH, DOES_NOT_END_WITH, EQUALS, DOES_NOT_EQUAL
    name String
    Name of the HTTP cookie whose value is to be matched
    value String
    String values to match for an HTTP cookie

    NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaHttpMethods, NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaHttpMethodsArgs

    Criteria string
    Criteria to use for IP address matching the HTTP request. Options - IS_IN, IS_NOT_IN
    Methods List<string>
    HTTP methods to match. Options - GET, PUT, POST, DELETE, HEAD, OPTIONS, TRACE, CONNECT, PATCH, PROPFIND, PROPPATCH, MKCOL, COPY, MOVE, LOCK, UNLOCK
    Criteria string
    Criteria to use for IP address matching the HTTP request. Options - IS_IN, IS_NOT_IN
    Methods []string
    HTTP methods to match. Options - GET, PUT, POST, DELETE, HEAD, OPTIONS, TRACE, CONNECT, PATCH, PROPFIND, PROPPATCH, MKCOL, COPY, MOVE, LOCK, UNLOCK
    criteria String
    Criteria to use for IP address matching the HTTP request. Options - IS_IN, IS_NOT_IN
    methods List<String>
    HTTP methods to match. Options - GET, PUT, POST, DELETE, HEAD, OPTIONS, TRACE, CONNECT, PATCH, PROPFIND, PROPPATCH, MKCOL, COPY, MOVE, LOCK, UNLOCK
    criteria string
    Criteria to use for IP address matching the HTTP request. Options - IS_IN, IS_NOT_IN
    methods string[]
    HTTP methods to match. Options - GET, PUT, POST, DELETE, HEAD, OPTIONS, TRACE, CONNECT, PATCH, PROPFIND, PROPPATCH, MKCOL, COPY, MOVE, LOCK, UNLOCK
    criteria str
    Criteria to use for IP address matching the HTTP request. Options - IS_IN, IS_NOT_IN
    methods Sequence[str]
    HTTP methods to match. Options - GET, PUT, POST, DELETE, HEAD, OPTIONS, TRACE, CONNECT, PATCH, PROPFIND, PROPPATCH, MKCOL, COPY, MOVE, LOCK, UNLOCK
    criteria String
    Criteria to use for IP address matching the HTTP request. Options - IS_IN, IS_NOT_IN
    methods List<String>
    HTTP methods to match. Options - GET, PUT, POST, DELETE, HEAD, OPTIONS, TRACE, CONNECT, PATCH, PROPFIND, PROPPATCH, MKCOL, COPY, MOVE, LOCK, UNLOCK

    NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaPath, NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaPathArgs

    Criteria string
    Criteria to use for matching the path in the HTTP request URI. Options - BEGINS_WITH, DOES_NOT_BEGIN_WITH, CONTAINS, DOES_NOT_CONTAIN, ENDS_WITH, DOES_NOT_END_WITH, EQUALS, DOES_NOT_EQUAL, REGEX_MATCH, REGEX_DOES_NOT_MATCH
    Paths List<string>
    String values to match the path
    Criteria string
    Criteria to use for matching the path in the HTTP request URI. Options - BEGINS_WITH, DOES_NOT_BEGIN_WITH, CONTAINS, DOES_NOT_CONTAIN, ENDS_WITH, DOES_NOT_END_WITH, EQUALS, DOES_NOT_EQUAL, REGEX_MATCH, REGEX_DOES_NOT_MATCH
    Paths []string
    String values to match the path
    criteria String
    Criteria to use for matching the path in the HTTP request URI. Options - BEGINS_WITH, DOES_NOT_BEGIN_WITH, CONTAINS, DOES_NOT_CONTAIN, ENDS_WITH, DOES_NOT_END_WITH, EQUALS, DOES_NOT_EQUAL, REGEX_MATCH, REGEX_DOES_NOT_MATCH
    paths List<String>
    String values to match the path
    criteria string
    Criteria to use for matching the path in the HTTP request URI. Options - BEGINS_WITH, DOES_NOT_BEGIN_WITH, CONTAINS, DOES_NOT_CONTAIN, ENDS_WITH, DOES_NOT_END_WITH, EQUALS, DOES_NOT_EQUAL, REGEX_MATCH, REGEX_DOES_NOT_MATCH
    paths string[]
    String values to match the path
    criteria str
    Criteria to use for matching the path in the HTTP request URI. Options - BEGINS_WITH, DOES_NOT_BEGIN_WITH, CONTAINS, DOES_NOT_CONTAIN, ENDS_WITH, DOES_NOT_END_WITH, EQUALS, DOES_NOT_EQUAL, REGEX_MATCH, REGEX_DOES_NOT_MATCH
    paths Sequence[str]
    String values to match the path
    criteria String
    Criteria to use for matching the path in the HTTP request URI. Options - BEGINS_WITH, DOES_NOT_BEGIN_WITH, CONTAINS, DOES_NOT_CONTAIN, ENDS_WITH, DOES_NOT_END_WITH, EQUALS, DOES_NOT_EQUAL, REGEX_MATCH, REGEX_DOES_NOT_MATCH
    paths List<String>
    String values to match the path

    NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaRequestHeader, NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaRequestHeaderArgs

    Criteria string
    Criteria to use for matching headers and cookies in the HTTP request amd response. Options - EXISTS, DOES_NOT_EXIST, BEGINS_WITH, DOES_NOT_BEGIN_WITH, CONTAINS, DOES_NOT_CONTAIN, ENDS_WITH, DOES_NOT_END_WITH, EQUALS, DOES_NOT_EQUAL
    Name string
    Name of the HTTP header whose value is to be matched
    Values List<string>
    String values to match for an HTTP header
    Criteria string
    Criteria to use for matching headers and cookies in the HTTP request amd response. Options - EXISTS, DOES_NOT_EXIST, BEGINS_WITH, DOES_NOT_BEGIN_WITH, CONTAINS, DOES_NOT_CONTAIN, ENDS_WITH, DOES_NOT_END_WITH, EQUALS, DOES_NOT_EQUAL
    Name string
    Name of the HTTP header whose value is to be matched
    Values []string
    String values to match for an HTTP header
    criteria String
    Criteria to use for matching headers and cookies in the HTTP request amd response. Options - EXISTS, DOES_NOT_EXIST, BEGINS_WITH, DOES_NOT_BEGIN_WITH, CONTAINS, DOES_NOT_CONTAIN, ENDS_WITH, DOES_NOT_END_WITH, EQUALS, DOES_NOT_EQUAL
    name String
    Name of the HTTP header whose value is to be matched
    values List<String>
    String values to match for an HTTP header
    criteria string
    Criteria to use for matching headers and cookies in the HTTP request amd response. Options - EXISTS, DOES_NOT_EXIST, BEGINS_WITH, DOES_NOT_BEGIN_WITH, CONTAINS, DOES_NOT_CONTAIN, ENDS_WITH, DOES_NOT_END_WITH, EQUALS, DOES_NOT_EQUAL
    name string
    Name of the HTTP header whose value is to be matched
    values string[]
    String values to match for an HTTP header
    criteria str
    Criteria to use for matching headers and cookies in the HTTP request amd response. Options - EXISTS, DOES_NOT_EXIST, BEGINS_WITH, DOES_NOT_BEGIN_WITH, CONTAINS, DOES_NOT_CONTAIN, ENDS_WITH, DOES_NOT_END_WITH, EQUALS, DOES_NOT_EQUAL
    name str
    Name of the HTTP header whose value is to be matched
    values Sequence[str]
    String values to match for an HTTP header
    criteria String
    Criteria to use for matching headers and cookies in the HTTP request amd response. Options - EXISTS, DOES_NOT_EXIST, BEGINS_WITH, DOES_NOT_BEGIN_WITH, CONTAINS, DOES_NOT_CONTAIN, ENDS_WITH, DOES_NOT_END_WITH, EQUALS, DOES_NOT_EQUAL
    name String
    Name of the HTTP header whose value is to be matched
    values List<String>
    String values to match for an HTTP header

    NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaServicePorts, NsxtAlbVirtualServiceHttpReqRulesRuleMatchCriteriaServicePortsArgs

    Criteria string
    Criteria to use for IP address matching the HTTP request. Options - IS_IN, IS_NOT_IN
    Ports List<double>
    A set of TCP ports. Allowed values are 1-65535
    Criteria string
    Criteria to use for IP address matching the HTTP request. Options - IS_IN, IS_NOT_IN
    Ports []float64
    A set of TCP ports. Allowed values are 1-65535
    criteria String
    Criteria to use for IP address matching the HTTP request. Options - IS_IN, IS_NOT_IN
    ports List<Double>
    A set of TCP ports. Allowed values are 1-65535
    criteria string
    Criteria to use for IP address matching the HTTP request. Options - IS_IN, IS_NOT_IN
    ports number[]
    A set of TCP ports. Allowed values are 1-65535
    criteria str
    Criteria to use for IP address matching the HTTP request. Options - IS_IN, IS_NOT_IN
    ports Sequence[float]
    A set of TCP ports. Allowed values are 1-65535
    criteria String
    Criteria to use for IP address matching the HTTP request. Options - IS_IN, IS_NOT_IN
    ports List<Number>
    A set of TCP ports. Allowed values are 1-65535

    Package Details

    Repository
    vcd vmware/terraform-provider-vcd
    License
    Notes
    This Pulumi package is based on the vcd Terraform Provider.
    vcd logo
    vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware