1. Packages
  2. Edgecenter Provider
  3. API Docs
  4. LbL7policy
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

edgecenter.LbL7policy

Explore with Pulumi AI

edgecenter logo
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

    An L7 Policy is a set of L7 rules, as well as a defined action applied to L7 network traffic. The action is taken if all the rules associated with the policy match

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as edgecenter from "@pulumi/edgecenter";
    
    const lb = new edgecenter.Loadbalancerv2("lb", {
        flavor: "lb1-1-2",
        metadataMap: {},
        projectId: 1,
        regionId: 1,
    });
    const listener = new edgecenter.Lblistener("listener", {
        projectId: 1,
        regionId: 1,
        protocol: "HTTP",
        protocolPort: 80,
        loadbalancerId: lb.loadbalancerv2Id,
    });
    const l7policy = new edgecenter.LbL7policy("l7policy", {
        projectId: 1,
        regionId: 1,
        action: "REDIRECT_PREFIX",
        listenerId: listener.lblistenerId,
        redirectHttpCode: 303,
        redirectPrefix: "https://your-prefix.com/",
        tags: [
            "aaa",
            "bbb",
            "ccc",
        ],
    });
    
    import pulumi
    import pulumi_edgecenter as edgecenter
    
    lb = edgecenter.Loadbalancerv2("lb",
        flavor="lb1-1-2",
        metadata_map={},
        project_id=1,
        region_id=1)
    listener = edgecenter.Lblistener("listener",
        project_id=1,
        region_id=1,
        protocol="HTTP",
        protocol_port=80,
        loadbalancer_id=lb.loadbalancerv2_id)
    l7policy = edgecenter.LbL7policy("l7policy",
        project_id=1,
        region_id=1,
        action="REDIRECT_PREFIX",
        listener_id=listener.lblistener_id,
        redirect_http_code=303,
        redirect_prefix="https://your-prefix.com/",
        tags=[
            "aaa",
            "bbb",
            "ccc",
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/edgecenter/edgecenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		lb, err := edgecenter.NewLoadbalancerv2(ctx, "lb", &edgecenter.Loadbalancerv2Args{
    			Flavor:      pulumi.String("lb1-1-2"),
    			MetadataMap: pulumi.StringMap{},
    			ProjectId:   pulumi.Float64(1),
    			RegionId:    pulumi.Float64(1),
    		})
    		if err != nil {
    			return err
    		}
    		listener, err := edgecenter.NewLblistener(ctx, "listener", &edgecenter.LblistenerArgs{
    			ProjectId:      pulumi.Float64(1),
    			RegionId:       pulumi.Float64(1),
    			Protocol:       pulumi.String("HTTP"),
    			ProtocolPort:   pulumi.Float64(80),
    			LoadbalancerId: lb.Loadbalancerv2Id,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = edgecenter.NewLbL7policy(ctx, "l7policy", &edgecenter.LbL7policyArgs{
    			ProjectId:        pulumi.Float64(1),
    			RegionId:         pulumi.Float64(1),
    			Action:           pulumi.String("REDIRECT_PREFIX"),
    			ListenerId:       listener.LblistenerId,
    			RedirectHttpCode: pulumi.Float64(303),
    			RedirectPrefix:   pulumi.String("https://your-prefix.com/"),
    			Tags: pulumi.StringArray{
    				pulumi.String("aaa"),
    				pulumi.String("bbb"),
    				pulumi.String("ccc"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Edgecenter = Pulumi.Edgecenter;
    
    return await Deployment.RunAsync(() => 
    {
        var lb = new Edgecenter.Loadbalancerv2("lb", new()
        {
            Flavor = "lb1-1-2",
            MetadataMap = null,
            ProjectId = 1,
            RegionId = 1,
        });
    
        var listener = new Edgecenter.Lblistener("listener", new()
        {
            ProjectId = 1,
            RegionId = 1,
            Protocol = "HTTP",
            ProtocolPort = 80,
            LoadbalancerId = lb.Loadbalancerv2Id,
        });
    
        var l7policy = new Edgecenter.LbL7policy("l7policy", new()
        {
            ProjectId = 1,
            RegionId = 1,
            Action = "REDIRECT_PREFIX",
            ListenerId = listener.LblistenerId,
            RedirectHttpCode = 303,
            RedirectPrefix = "https://your-prefix.com/",
            Tags = new[]
            {
                "aaa",
                "bbb",
                "ccc",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.edgecenter.Loadbalancerv2;
    import com.pulumi.edgecenter.Loadbalancerv2Args;
    import com.pulumi.edgecenter.Lblistener;
    import com.pulumi.edgecenter.LblistenerArgs;
    import com.pulumi.edgecenter.LbL7policy;
    import com.pulumi.edgecenter.LbL7policyArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var lb = new Loadbalancerv2("lb", Loadbalancerv2Args.builder()
                .flavor("lb1-1-2")
                .metadataMap()
                .projectId(1)
                .regionId(1)
                .build());
    
            var listener = new Lblistener("listener", LblistenerArgs.builder()
                .projectId(1)
                .regionId(1)
                .protocol("HTTP")
                .protocolPort(80)
                .loadbalancerId(lb.loadbalancerv2Id())
                .build());
    
            var l7policy = new LbL7policy("l7policy", LbL7policyArgs.builder()
                .projectId(1)
                .regionId(1)
                .action("REDIRECT_PREFIX")
                .listenerId(listener.lblistenerId())
                .redirectHttpCode(303)
                .redirectPrefix("https://your-prefix.com/")
                .tags(            
                    "aaa",
                    "bbb",
                    "ccc")
                .build());
    
        }
    }
    
    resources:
      lb:
        type: edgecenter:Loadbalancerv2
        properties:
          flavor: lb1-1-2
          metadataMap: {}
          projectId: 1
          regionId: 1
      listener:
        type: edgecenter:Lblistener
        properties:
          projectId: 1
          regionId: 1
          protocol: HTTP
          protocolPort: 80
          loadbalancerId: ${lb.loadbalancerv2Id}
      l7policy:
        type: edgecenter:LbL7policy
        properties:
          projectId: 1
          regionId: 1
          action: REDIRECT_PREFIX
          listenerId: ${listener.lblistenerId}
          redirectHttpCode: 303
          redirectPrefix: https://your-prefix.com/
          tags:
            - aaa
            - bbb
            - ccc
    

    Create LbL7policy Resource

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

    Constructor syntax

    new LbL7policy(name: string, args: LbL7policyArgs, opts?: CustomResourceOptions);
    @overload
    def LbL7policy(resource_name: str,
                   args: LbL7policyArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def LbL7policy(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   listener_id: Optional[str] = None,
                   action: Optional[str] = None,
                   project_name: Optional[str] = None,
                   name: Optional[str] = None,
                   position: Optional[float] = None,
                   project_id: Optional[float] = None,
                   lb_l7policy_id: Optional[str] = None,
                   redirect_http_code: Optional[float] = None,
                   redirect_pool_id: Optional[str] = None,
                   redirect_prefix: Optional[str] = None,
                   redirect_url: Optional[str] = None,
                   region_id: Optional[float] = None,
                   region_name: Optional[str] = None,
                   tags: Optional[Sequence[str]] = None,
                   timeouts: Optional[LbL7policyTimeoutsArgs] = None)
    func NewLbL7policy(ctx *Context, name string, args LbL7policyArgs, opts ...ResourceOption) (*LbL7policy, error)
    public LbL7policy(string name, LbL7policyArgs args, CustomResourceOptions? opts = null)
    public LbL7policy(String name, LbL7policyArgs args)
    public LbL7policy(String name, LbL7policyArgs args, CustomResourceOptions options)
    
    type: edgecenter:LbL7policy
    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 LbL7policyArgs
    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 LbL7policyArgs
    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 LbL7policyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LbL7policyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LbL7policyArgs
    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 lbL7policyResource = new Edgecenter.LbL7policy("lbL7policyResource", new()
    {
        ListenerId = "string",
        Action = "string",
        ProjectName = "string",
        Name = "string",
        Position = 0,
        ProjectId = 0,
        LbL7policyId = "string",
        RedirectHttpCode = 0,
        RedirectPoolId = "string",
        RedirectPrefix = "string",
        RedirectUrl = "string",
        RegionId = 0,
        RegionName = "string",
        Tags = new[]
        {
            "string",
        },
        Timeouts = new Edgecenter.Inputs.LbL7policyTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := edgecenter.NewLbL7policy(ctx, "lbL7policyResource", &edgecenter.LbL7policyArgs{
    	ListenerId:       pulumi.String("string"),
    	Action:           pulumi.String("string"),
    	ProjectName:      pulumi.String("string"),
    	Name:             pulumi.String("string"),
    	Position:         pulumi.Float64(0),
    	ProjectId:        pulumi.Float64(0),
    	LbL7policyId:     pulumi.String("string"),
    	RedirectHttpCode: pulumi.Float64(0),
    	RedirectPoolId:   pulumi.String("string"),
    	RedirectPrefix:   pulumi.String("string"),
    	RedirectUrl:      pulumi.String("string"),
    	RegionId:         pulumi.Float64(0),
    	RegionName:       pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Timeouts: &edgecenter.LbL7policyTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var lbL7policyResource = new LbL7policy("lbL7policyResource", LbL7policyArgs.builder()
        .listenerId("string")
        .action("string")
        .projectName("string")
        .name("string")
        .position(0)
        .projectId(0)
        .lbL7policyId("string")
        .redirectHttpCode(0)
        .redirectPoolId("string")
        .redirectPrefix("string")
        .redirectUrl("string")
        .regionId(0)
        .regionName("string")
        .tags("string")
        .timeouts(LbL7policyTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    lb_l7policy_resource = edgecenter.LbL7policy("lbL7policyResource",
        listener_id="string",
        action="string",
        project_name="string",
        name="string",
        position=0,
        project_id=0,
        lb_l7policy_id="string",
        redirect_http_code=0,
        redirect_pool_id="string",
        redirect_prefix="string",
        redirect_url="string",
        region_id=0,
        region_name="string",
        tags=["string"],
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const lbL7policyResource = new edgecenter.LbL7policy("lbL7policyResource", {
        listenerId: "string",
        action: "string",
        projectName: "string",
        name: "string",
        position: 0,
        projectId: 0,
        lbL7policyId: "string",
        redirectHttpCode: 0,
        redirectPoolId: "string",
        redirectPrefix: "string",
        redirectUrl: "string",
        regionId: 0,
        regionName: "string",
        tags: ["string"],
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: edgecenter:LbL7policy
    properties:
        action: string
        lbL7policyId: string
        listenerId: string
        name: string
        position: 0
        projectId: 0
        projectName: string
        redirectHttpCode: 0
        redirectPoolId: string
        redirectPrefix: string
        redirectUrl: string
        regionId: 0
        regionName: string
        tags:
            - string
        timeouts:
            create: string
            delete: string
            update: string
    

    LbL7policy 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 LbL7policy resource accepts the following input properties:

    Action string
    Enum: "REDIRECTPREFIX" "REDIRECTTOPOOL" "REDIRECTTO_URL" "REJECT" The action.
    ListenerId string
    The ID of the listener
    LbL7policyId string
    The ID of this resource.
    Name string
    The human-readable name of the policy
    Position double
    The position of this policy on the listener. Positions start at 1
    ProjectId double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RedirectHttpCode double
    Requests matching this policy will be redirected to the specified URL or Prefix URL with the HTTP response code. Valid if action is REDIRECTTOURL or REDIRECT_PREFIX. Valid options are 301, 302, 303, 307, or 308. Default is 302
    RedirectPoolId string
    Requests matching this policy will be redirected to the pool with this ID. Only valid if the action is REDIRECTTOPOOL
    RedirectPrefix string
    Requests matching this policy will be redirected to this Prefix URL. Only valid if the action is REDIRECT_PREFIX
    RedirectUrl string
    Requests matching this policy will be redirected to this URL. Only valid if the action is REDIRECTTOURL
    RegionId double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    Tags List<string>
    A list of simple strings assigned to the resource
    Timeouts LbL7policyTimeouts
    Action string
    Enum: "REDIRECTPREFIX" "REDIRECTTOPOOL" "REDIRECTTO_URL" "REJECT" The action.
    ListenerId string
    The ID of the listener
    LbL7policyId string
    The ID of this resource.
    Name string
    The human-readable name of the policy
    Position float64
    The position of this policy on the listener. Positions start at 1
    ProjectId float64
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RedirectHttpCode float64
    Requests matching this policy will be redirected to the specified URL or Prefix URL with the HTTP response code. Valid if action is REDIRECTTOURL or REDIRECT_PREFIX. Valid options are 301, 302, 303, 307, or 308. Default is 302
    RedirectPoolId string
    Requests matching this policy will be redirected to the pool with this ID. Only valid if the action is REDIRECTTOPOOL
    RedirectPrefix string
    Requests matching this policy will be redirected to this Prefix URL. Only valid if the action is REDIRECT_PREFIX
    RedirectUrl string
    Requests matching this policy will be redirected to this URL. Only valid if the action is REDIRECTTOURL
    RegionId float64
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    Tags []string
    A list of simple strings assigned to the resource
    Timeouts LbL7policyTimeoutsArgs
    action String
    Enum: "REDIRECTPREFIX" "REDIRECTTOPOOL" "REDIRECTTO_URL" "REJECT" The action.
    listenerId String
    The ID of the listener
    lbL7policyId String
    The ID of this resource.
    name String
    The human-readable name of the policy
    position Double
    The position of this policy on the listener. Positions start at 1
    projectId Double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    redirectHttpCode Double
    Requests matching this policy will be redirected to the specified URL or Prefix URL with the HTTP response code. Valid if action is REDIRECTTOURL or REDIRECT_PREFIX. Valid options are 301, 302, 303, 307, or 308. Default is 302
    redirectPoolId String
    Requests matching this policy will be redirected to the pool with this ID. Only valid if the action is REDIRECTTOPOOL
    redirectPrefix String
    Requests matching this policy will be redirected to this Prefix URL. Only valid if the action is REDIRECT_PREFIX
    redirectUrl String
    Requests matching this policy will be redirected to this URL. Only valid if the action is REDIRECTTOURL
    regionId Double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    tags List<String>
    A list of simple strings assigned to the resource
    timeouts LbL7policyTimeouts
    action string
    Enum: "REDIRECTPREFIX" "REDIRECTTOPOOL" "REDIRECTTO_URL" "REJECT" The action.
    listenerId string
    The ID of the listener
    lbL7policyId string
    The ID of this resource.
    name string
    The human-readable name of the policy
    position number
    The position of this policy on the listener. Positions start at 1
    projectId number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    redirectHttpCode number
    Requests matching this policy will be redirected to the specified URL or Prefix URL with the HTTP response code. Valid if action is REDIRECTTOURL or REDIRECT_PREFIX. Valid options are 301, 302, 303, 307, or 308. Default is 302
    redirectPoolId string
    Requests matching this policy will be redirected to the pool with this ID. Only valid if the action is REDIRECTTOPOOL
    redirectPrefix string
    Requests matching this policy will be redirected to this Prefix URL. Only valid if the action is REDIRECT_PREFIX
    redirectUrl string
    Requests matching this policy will be redirected to this URL. Only valid if the action is REDIRECTTOURL
    regionId number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    tags string[]
    A list of simple strings assigned to the resource
    timeouts LbL7policyTimeouts
    action str
    Enum: "REDIRECTPREFIX" "REDIRECTTOPOOL" "REDIRECTTO_URL" "REJECT" The action.
    listener_id str
    The ID of the listener
    lb_l7policy_id str
    The ID of this resource.
    name str
    The human-readable name of the policy
    position float
    The position of this policy on the listener. Positions start at 1
    project_id float
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    project_name str
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    redirect_http_code float
    Requests matching this policy will be redirected to the specified URL or Prefix URL with the HTTP response code. Valid if action is REDIRECTTOURL or REDIRECT_PREFIX. Valid options are 301, 302, 303, 307, or 308. Default is 302
    redirect_pool_id str
    Requests matching this policy will be redirected to the pool with this ID. Only valid if the action is REDIRECTTOPOOL
    redirect_prefix str
    Requests matching this policy will be redirected to this Prefix URL. Only valid if the action is REDIRECT_PREFIX
    redirect_url str
    Requests matching this policy will be redirected to this URL. Only valid if the action is REDIRECTTOURL
    region_id float
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    region_name str
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    tags Sequence[str]
    A list of simple strings assigned to the resource
    timeouts LbL7policyTimeoutsArgs
    action String
    Enum: "REDIRECTPREFIX" "REDIRECTTOPOOL" "REDIRECTTO_URL" "REJECT" The action.
    listenerId String
    The ID of the listener
    lbL7policyId String
    The ID of this resource.
    name String
    The human-readable name of the policy
    position Number
    The position of this policy on the listener. Positions start at 1
    projectId Number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    redirectHttpCode Number
    Requests matching this policy will be redirected to the specified URL or Prefix URL with the HTTP response code. Valid if action is REDIRECTTOURL or REDIRECT_PREFIX. Valid options are 301, 302, 303, 307, or 308. Default is 302
    redirectPoolId String
    Requests matching this policy will be redirected to the pool with this ID. Only valid if the action is REDIRECTTOPOOL
    redirectPrefix String
    Requests matching this policy will be redirected to this Prefix URL. Only valid if the action is REDIRECT_PREFIX
    redirectUrl String
    Requests matching this policy will be redirected to this URL. Only valid if the action is REDIRECTTOURL
    regionId Number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    tags List<String>
    A list of simple strings assigned to the resource
    timeouts Property Map

    Outputs

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

    CreatedAt string
    The datetime when the L7 policy was created
    Id string
    The provider-assigned unique ID for this managed resource.
    OperatingStatus string
    The operating status
    ProvisioningStatus string
    The provisioning status
    Rules List<string>
    A set of l7rule uuids assigned to this l7policy
    UpdatedAt string
    The datetime when the L7 policy was last updated
    CreatedAt string
    The datetime when the L7 policy was created
    Id string
    The provider-assigned unique ID for this managed resource.
    OperatingStatus string
    The operating status
    ProvisioningStatus string
    The provisioning status
    Rules []string
    A set of l7rule uuids assigned to this l7policy
    UpdatedAt string
    The datetime when the L7 policy was last updated
    createdAt String
    The datetime when the L7 policy was created
    id String
    The provider-assigned unique ID for this managed resource.
    operatingStatus String
    The operating status
    provisioningStatus String
    The provisioning status
    rules List<String>
    A set of l7rule uuids assigned to this l7policy
    updatedAt String
    The datetime when the L7 policy was last updated
    createdAt string
    The datetime when the L7 policy was created
    id string
    The provider-assigned unique ID for this managed resource.
    operatingStatus string
    The operating status
    provisioningStatus string
    The provisioning status
    rules string[]
    A set of l7rule uuids assigned to this l7policy
    updatedAt string
    The datetime when the L7 policy was last updated
    created_at str
    The datetime when the L7 policy was created
    id str
    The provider-assigned unique ID for this managed resource.
    operating_status str
    The operating status
    provisioning_status str
    The provisioning status
    rules Sequence[str]
    A set of l7rule uuids assigned to this l7policy
    updated_at str
    The datetime when the L7 policy was last updated
    createdAt String
    The datetime when the L7 policy was created
    id String
    The provider-assigned unique ID for this managed resource.
    operatingStatus String
    The operating status
    provisioningStatus String
    The provisioning status
    rules List<String>
    A set of l7rule uuids assigned to this l7policy
    updatedAt String
    The datetime when the L7 policy was last updated

    Look up Existing LbL7policy Resource

    Get an existing LbL7policy 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?: LbL7policyState, opts?: CustomResourceOptions): LbL7policy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            created_at: Optional[str] = None,
            lb_l7policy_id: Optional[str] = None,
            listener_id: Optional[str] = None,
            name: Optional[str] = None,
            operating_status: Optional[str] = None,
            position: Optional[float] = None,
            project_id: Optional[float] = None,
            project_name: Optional[str] = None,
            provisioning_status: Optional[str] = None,
            redirect_http_code: Optional[float] = None,
            redirect_pool_id: Optional[str] = None,
            redirect_prefix: Optional[str] = None,
            redirect_url: Optional[str] = None,
            region_id: Optional[float] = None,
            region_name: Optional[str] = None,
            rules: Optional[Sequence[str]] = None,
            tags: Optional[Sequence[str]] = None,
            timeouts: Optional[LbL7policyTimeoutsArgs] = None,
            updated_at: Optional[str] = None) -> LbL7policy
    func GetLbL7policy(ctx *Context, name string, id IDInput, state *LbL7policyState, opts ...ResourceOption) (*LbL7policy, error)
    public static LbL7policy Get(string name, Input<string> id, LbL7policyState? state, CustomResourceOptions? opts = null)
    public static LbL7policy get(String name, Output<String> id, LbL7policyState state, CustomResourceOptions options)
    resources:  _:    type: edgecenter:LbL7policy    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:
    Action string
    Enum: "REDIRECTPREFIX" "REDIRECTTOPOOL" "REDIRECTTO_URL" "REJECT" The action.
    CreatedAt string
    The datetime when the L7 policy was created
    LbL7policyId string
    The ID of this resource.
    ListenerId string
    The ID of the listener
    Name string
    The human-readable name of the policy
    OperatingStatus string
    The operating status
    Position double
    The position of this policy on the listener. Positions start at 1
    ProjectId double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    ProvisioningStatus string
    The provisioning status
    RedirectHttpCode double
    Requests matching this policy will be redirected to the specified URL or Prefix URL with the HTTP response code. Valid if action is REDIRECTTOURL or REDIRECT_PREFIX. Valid options are 301, 302, 303, 307, or 308. Default is 302
    RedirectPoolId string
    Requests matching this policy will be redirected to the pool with this ID. Only valid if the action is REDIRECTTOPOOL
    RedirectPrefix string
    Requests matching this policy will be redirected to this Prefix URL. Only valid if the action is REDIRECT_PREFIX
    RedirectUrl string
    Requests matching this policy will be redirected to this URL. Only valid if the action is REDIRECTTOURL
    RegionId double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    Rules List<string>
    A set of l7rule uuids assigned to this l7policy
    Tags List<string>
    A list of simple strings assigned to the resource
    Timeouts LbL7policyTimeouts
    UpdatedAt string
    The datetime when the L7 policy was last updated
    Action string
    Enum: "REDIRECTPREFIX" "REDIRECTTOPOOL" "REDIRECTTO_URL" "REJECT" The action.
    CreatedAt string
    The datetime when the L7 policy was created
    LbL7policyId string
    The ID of this resource.
    ListenerId string
    The ID of the listener
    Name string
    The human-readable name of the policy
    OperatingStatus string
    The operating status
    Position float64
    The position of this policy on the listener. Positions start at 1
    ProjectId float64
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    ProvisioningStatus string
    The provisioning status
    RedirectHttpCode float64
    Requests matching this policy will be redirected to the specified URL or Prefix URL with the HTTP response code. Valid if action is REDIRECTTOURL or REDIRECT_PREFIX. Valid options are 301, 302, 303, 307, or 308. Default is 302
    RedirectPoolId string
    Requests matching this policy will be redirected to the pool with this ID. Only valid if the action is REDIRECTTOPOOL
    RedirectPrefix string
    Requests matching this policy will be redirected to this Prefix URL. Only valid if the action is REDIRECT_PREFIX
    RedirectUrl string
    Requests matching this policy will be redirected to this URL. Only valid if the action is REDIRECTTOURL
    RegionId float64
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    Rules []string
    A set of l7rule uuids assigned to this l7policy
    Tags []string
    A list of simple strings assigned to the resource
    Timeouts LbL7policyTimeoutsArgs
    UpdatedAt string
    The datetime when the L7 policy was last updated
    action String
    Enum: "REDIRECTPREFIX" "REDIRECTTOPOOL" "REDIRECTTO_URL" "REJECT" The action.
    createdAt String
    The datetime when the L7 policy was created
    lbL7policyId String
    The ID of this resource.
    listenerId String
    The ID of the listener
    name String
    The human-readable name of the policy
    operatingStatus String
    The operating status
    position Double
    The position of this policy on the listener. Positions start at 1
    projectId Double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    provisioningStatus String
    The provisioning status
    redirectHttpCode Double
    Requests matching this policy will be redirected to the specified URL or Prefix URL with the HTTP response code. Valid if action is REDIRECTTOURL or REDIRECT_PREFIX. Valid options are 301, 302, 303, 307, or 308. Default is 302
    redirectPoolId String
    Requests matching this policy will be redirected to the pool with this ID. Only valid if the action is REDIRECTTOPOOL
    redirectPrefix String
    Requests matching this policy will be redirected to this Prefix URL. Only valid if the action is REDIRECT_PREFIX
    redirectUrl String
    Requests matching this policy will be redirected to this URL. Only valid if the action is REDIRECTTOURL
    regionId Double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    rules List<String>
    A set of l7rule uuids assigned to this l7policy
    tags List<String>
    A list of simple strings assigned to the resource
    timeouts LbL7policyTimeouts
    updatedAt String
    The datetime when the L7 policy was last updated
    action string
    Enum: "REDIRECTPREFIX" "REDIRECTTOPOOL" "REDIRECTTO_URL" "REJECT" The action.
    createdAt string
    The datetime when the L7 policy was created
    lbL7policyId string
    The ID of this resource.
    listenerId string
    The ID of the listener
    name string
    The human-readable name of the policy
    operatingStatus string
    The operating status
    position number
    The position of this policy on the listener. Positions start at 1
    projectId number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    provisioningStatus string
    The provisioning status
    redirectHttpCode number
    Requests matching this policy will be redirected to the specified URL or Prefix URL with the HTTP response code. Valid if action is REDIRECTTOURL or REDIRECT_PREFIX. Valid options are 301, 302, 303, 307, or 308. Default is 302
    redirectPoolId string
    Requests matching this policy will be redirected to the pool with this ID. Only valid if the action is REDIRECTTOPOOL
    redirectPrefix string
    Requests matching this policy will be redirected to this Prefix URL. Only valid if the action is REDIRECT_PREFIX
    redirectUrl string
    Requests matching this policy will be redirected to this URL. Only valid if the action is REDIRECTTOURL
    regionId number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    rules string[]
    A set of l7rule uuids assigned to this l7policy
    tags string[]
    A list of simple strings assigned to the resource
    timeouts LbL7policyTimeouts
    updatedAt string
    The datetime when the L7 policy was last updated
    action str
    Enum: "REDIRECTPREFIX" "REDIRECTTOPOOL" "REDIRECTTO_URL" "REJECT" The action.
    created_at str
    The datetime when the L7 policy was created
    lb_l7policy_id str
    The ID of this resource.
    listener_id str
    The ID of the listener
    name str
    The human-readable name of the policy
    operating_status str
    The operating status
    position float
    The position of this policy on the listener. Positions start at 1
    project_id float
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    project_name str
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    provisioning_status str
    The provisioning status
    redirect_http_code float
    Requests matching this policy will be redirected to the specified URL or Prefix URL with the HTTP response code. Valid if action is REDIRECTTOURL or REDIRECT_PREFIX. Valid options are 301, 302, 303, 307, or 308. Default is 302
    redirect_pool_id str
    Requests matching this policy will be redirected to the pool with this ID. Only valid if the action is REDIRECTTOPOOL
    redirect_prefix str
    Requests matching this policy will be redirected to this Prefix URL. Only valid if the action is REDIRECT_PREFIX
    redirect_url str
    Requests matching this policy will be redirected to this URL. Only valid if the action is REDIRECTTOURL
    region_id float
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    region_name str
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    rules Sequence[str]
    A set of l7rule uuids assigned to this l7policy
    tags Sequence[str]
    A list of simple strings assigned to the resource
    timeouts LbL7policyTimeoutsArgs
    updated_at str
    The datetime when the L7 policy was last updated
    action String
    Enum: "REDIRECTPREFIX" "REDIRECTTOPOOL" "REDIRECTTO_URL" "REJECT" The action.
    createdAt String
    The datetime when the L7 policy was created
    lbL7policyId String
    The ID of this resource.
    listenerId String
    The ID of the listener
    name String
    The human-readable name of the policy
    operatingStatus String
    The operating status
    position Number
    The position of this policy on the listener. Positions start at 1
    projectId Number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    provisioningStatus String
    The provisioning status
    redirectHttpCode Number
    Requests matching this policy will be redirected to the specified URL or Prefix URL with the HTTP response code. Valid if action is REDIRECTTOURL or REDIRECT_PREFIX. Valid options are 301, 302, 303, 307, or 308. Default is 302
    redirectPoolId String
    Requests matching this policy will be redirected to the pool with this ID. Only valid if the action is REDIRECTTOPOOL
    redirectPrefix String
    Requests matching this policy will be redirected to this Prefix URL. Only valid if the action is REDIRECT_PREFIX
    redirectUrl String
    Requests matching this policy will be redirected to this URL. Only valid if the action is REDIRECTTOURL
    regionId Number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    rules List<String>
    A set of l7rule uuids assigned to this l7policy
    tags List<String>
    A list of simple strings assigned to the resource
    timeouts Property Map
    updatedAt String
    The datetime when the L7 policy was last updated

    Supporting Types

    LbL7policyTimeouts, LbL7policyTimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Import

    import using <project_id>:<region_id>:<policy_id> format

    $ pulumi import edgecenter:index/lbL7policy:LbL7policy lbpolicy1 1:6:447d2959-8ae0-4ca0-8d47-9f050a3637d7
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    edgecenter edge-center/terraform-provider-edgecenter
    License
    Notes
    This Pulumi package is based on the edgecenter Terraform Provider.
    edgecenter logo
    edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center