edgecenter.LbL7policy
Explore with Pulumi AI
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.
- Listener
Id string - The ID of the listener
- Lb
L7policy stringId - 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
- Project
Id double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Redirect
Http doubleCode - 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 stringId - Requests matching this policy will be redirected to the pool with this ID. Only valid if the action is REDIRECTTOPOOL
- Redirect
Prefix string - Requests matching this policy will be redirected to this Prefix URL. Only valid if the action is REDIRECT_PREFIX
- Redirect
Url string - Requests matching this policy will be redirected to this URL. Only valid if the action is REDIRECTTOURL
- Region
Id double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- List<string>
- A list of simple strings assigned to the resource
- Timeouts
Lb
L7policy Timeouts
- Action string
- Enum: "REDIRECTPREFIX" "REDIRECTTOPOOL" "REDIRECTTO_URL" "REJECT" The action.
- Listener
Id string - The ID of the listener
- Lb
L7policy stringId - 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
- Project
Id float64 - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Redirect
Http float64Code - 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 stringId - Requests matching this policy will be redirected to the pool with this ID. Only valid if the action is REDIRECTTOPOOL
- Redirect
Prefix string - Requests matching this policy will be redirected to this Prefix URL. Only valid if the action is REDIRECT_PREFIX
- Redirect
Url string - Requests matching this policy will be redirected to this URL. Only valid if the action is REDIRECTTOURL
- Region
Id float64 - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- []string
- A list of simple strings assigned to the resource
- Timeouts
Lb
L7policy Timeouts Args
- action String
- Enum: "REDIRECTPREFIX" "REDIRECTTOPOOL" "REDIRECTTO_URL" "REJECT" The action.
- listener
Id String - The ID of the listener
- lb
L7policy StringId - 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
- project
Id Double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- redirect
Http DoubleCode - 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 StringId - Requests matching this policy will be redirected to the pool with this ID. Only valid if the action is REDIRECTTOPOOL
- redirect
Prefix String - Requests matching this policy will be redirected to this Prefix URL. Only valid if the action is REDIRECT_PREFIX
- redirect
Url String - Requests matching this policy will be redirected to this URL. Only valid if the action is REDIRECTTOURL
- region
Id Double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name String - The name of the region. Either 'regionid' or 'regionname' must be specified.
- List<String>
- A list of simple strings assigned to the resource
- timeouts
Lb
L7policy Timeouts
- action string
- Enum: "REDIRECTPREFIX" "REDIRECTTOPOOL" "REDIRECTTO_URL" "REJECT" The action.
- listener
Id string - The ID of the listener
- lb
L7policy stringId - 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
- project
Id number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- redirect
Http numberCode - 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 stringId - Requests matching this policy will be redirected to the pool with this ID. Only valid if the action is REDIRECTTOPOOL
- redirect
Prefix string - Requests matching this policy will be redirected to this Prefix URL. Only valid if the action is REDIRECT_PREFIX
- redirect
Url string - Requests matching this policy will be redirected to this URL. Only valid if the action is REDIRECTTOURL
- region
Id number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- string[]
- A list of simple strings assigned to the resource
- timeouts
Lb
L7policy Timeouts
- action str
- Enum: "REDIRECTPREFIX" "REDIRECTTOPOOL" "REDIRECTTO_URL" "REJECT" The action.
- listener_
id str - The ID of the listener
- lb_
l7policy_ strid - 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_ floatcode - 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_ strid - 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.
- Sequence[str]
- A list of simple strings assigned to the resource
- timeouts
Lb
L7policy Timeouts Args
- action String
- Enum: "REDIRECTPREFIX" "REDIRECTTOPOOL" "REDIRECTTO_URL" "REJECT" The action.
- listener
Id String - The ID of the listener
- lb
L7policy StringId - 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
- project
Id Number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- redirect
Http NumberCode - 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 StringId - Requests matching this policy will be redirected to the pool with this ID. Only valid if the action is REDIRECTTOPOOL
- redirect
Prefix String - Requests matching this policy will be redirected to this Prefix URL. Only valid if the action is REDIRECT_PREFIX
- redirect
Url String - Requests matching this policy will be redirected to this URL. Only valid if the action is REDIRECTTOURL
- region
Id Number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name String - The name of the region. Either 'regionid' or 'regionname' must be specified.
- 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:
- Created
At string - The datetime when the L7 policy was created
- Id string
- The provider-assigned unique ID for this managed resource.
- Operating
Status string - The operating status
- Provisioning
Status string - The provisioning status
- Rules List<string>
- A set of l7rule uuids assigned to this l7policy
- Updated
At string - The datetime when the L7 policy was last updated
- Created
At string - The datetime when the L7 policy was created
- Id string
- The provider-assigned unique ID for this managed resource.
- Operating
Status string - The operating status
- Provisioning
Status string - The provisioning status
- Rules []string
- A set of l7rule uuids assigned to this l7policy
- Updated
At string - The datetime when the L7 policy was last updated
- created
At String - The datetime when the L7 policy was created
- id String
- The provider-assigned unique ID for this managed resource.
- operating
Status String - The operating status
- provisioning
Status String - The provisioning status
- rules List<String>
- A set of l7rule uuids assigned to this l7policy
- updated
At String - The datetime when the L7 policy was last updated
- created
At string - The datetime when the L7 policy was created
- id string
- The provider-assigned unique ID for this managed resource.
- operating
Status string - The operating status
- provisioning
Status string - The provisioning status
- rules string[]
- A set of l7rule uuids assigned to this l7policy
- updated
At 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
- created
At String - The datetime when the L7 policy was created
- id String
- The provider-assigned unique ID for this managed resource.
- operating
Status String - The operating status
- provisioning
Status String - The provisioning status
- rules List<String>
- A set of l7rule uuids assigned to this l7policy
- updated
At 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.
- Action string
- Enum: "REDIRECTPREFIX" "REDIRECTTOPOOL" "REDIRECTTO_URL" "REJECT" The action.
- Created
At string - The datetime when the L7 policy was created
- Lb
L7policy stringId - The ID of this resource.
- Listener
Id string - The ID of the listener
- Name string
- The human-readable name of the policy
- Operating
Status string - The operating status
- Position double
- The position of this policy on the listener. Positions start at 1
- Project
Id double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Provisioning
Status string - The provisioning status
- Redirect
Http doubleCode - 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 stringId - Requests matching this policy will be redirected to the pool with this ID. Only valid if the action is REDIRECTTOPOOL
- Redirect
Prefix string - Requests matching this policy will be redirected to this Prefix URL. Only valid if the action is REDIRECT_PREFIX
- Redirect
Url string - Requests matching this policy will be redirected to this URL. Only valid if the action is REDIRECTTOURL
- Region
Id double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name 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
- List<string>
- A list of simple strings assigned to the resource
- Timeouts
Lb
L7policy Timeouts - Updated
At string - The datetime when the L7 policy was last updated
- Action string
- Enum: "REDIRECTPREFIX" "REDIRECTTOPOOL" "REDIRECTTO_URL" "REJECT" The action.
- Created
At string - The datetime when the L7 policy was created
- Lb
L7policy stringId - The ID of this resource.
- Listener
Id string - The ID of the listener
- Name string
- The human-readable name of the policy
- Operating
Status string - The operating status
- Position float64
- The position of this policy on the listener. Positions start at 1
- Project
Id float64 - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Provisioning
Status string - The provisioning status
- Redirect
Http float64Code - 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 stringId - Requests matching this policy will be redirected to the pool with this ID. Only valid if the action is REDIRECTTOPOOL
- Redirect
Prefix string - Requests matching this policy will be redirected to this Prefix URL. Only valid if the action is REDIRECT_PREFIX
- Redirect
Url string - Requests matching this policy will be redirected to this URL. Only valid if the action is REDIRECTTOURL
- Region
Id float64 - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- Rules []string
- A set of l7rule uuids assigned to this l7policy
- []string
- A list of simple strings assigned to the resource
- Timeouts
Lb
L7policy Timeouts Args - Updated
At string - The datetime when the L7 policy was last updated
- action String
- Enum: "REDIRECTPREFIX" "REDIRECTTOPOOL" "REDIRECTTO_URL" "REJECT" The action.
- created
At String - The datetime when the L7 policy was created
- lb
L7policy StringId - The ID of this resource.
- listener
Id String - The ID of the listener
- name String
- The human-readable name of the policy
- operating
Status String - The operating status
- position Double
- The position of this policy on the listener. Positions start at 1
- project
Id Double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- provisioning
Status String - The provisioning status
- redirect
Http DoubleCode - 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 StringId - Requests matching this policy will be redirected to the pool with this ID. Only valid if the action is REDIRECTTOPOOL
- redirect
Prefix String - Requests matching this policy will be redirected to this Prefix URL. Only valid if the action is REDIRECT_PREFIX
- redirect
Url String - Requests matching this policy will be redirected to this URL. Only valid if the action is REDIRECTTOURL
- region
Id Double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name 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
- List<String>
- A list of simple strings assigned to the resource
- timeouts
Lb
L7policy Timeouts - updated
At String - The datetime when the L7 policy was last updated
- action string
- Enum: "REDIRECTPREFIX" "REDIRECTTOPOOL" "REDIRECTTO_URL" "REJECT" The action.
- created
At string - The datetime when the L7 policy was created
- lb
L7policy stringId - The ID of this resource.
- listener
Id string - The ID of the listener
- name string
- The human-readable name of the policy
- operating
Status string - The operating status
- position number
- The position of this policy on the listener. Positions start at 1
- project
Id number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- provisioning
Status string - The provisioning status
- redirect
Http numberCode - 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 stringId - Requests matching this policy will be redirected to the pool with this ID. Only valid if the action is REDIRECTTOPOOL
- redirect
Prefix string - Requests matching this policy will be redirected to this Prefix URL. Only valid if the action is REDIRECT_PREFIX
- redirect
Url string - Requests matching this policy will be redirected to this URL. Only valid if the action is REDIRECTTOURL
- region
Id number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- rules string[]
- A set of l7rule uuids assigned to this l7policy
- string[]
- A list of simple strings assigned to the resource
- timeouts
Lb
L7policy Timeouts - updated
At 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_ strid - 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_ floatcode - 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_ strid - 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
- Sequence[str]
- A list of simple strings assigned to the resource
- timeouts
Lb
L7policy Timeouts Args - updated_
at str - The datetime when the L7 policy was last updated
- action String
- Enum: "REDIRECTPREFIX" "REDIRECTTOPOOL" "REDIRECTTO_URL" "REJECT" The action.
- created
At String - The datetime when the L7 policy was created
- lb
L7policy StringId - The ID of this resource.
- listener
Id String - The ID of the listener
- name String
- The human-readable name of the policy
- operating
Status String - The operating status
- position Number
- The position of this policy on the listener. Positions start at 1
- project
Id Number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- provisioning
Status String - The provisioning status
- redirect
Http NumberCode - 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 StringId - Requests matching this policy will be redirected to the pool with this ID. Only valid if the action is REDIRECTTOPOOL
- redirect
Prefix String - Requests matching this policy will be redirected to this Prefix URL. Only valid if the action is REDIRECT_PREFIX
- redirect
Url String - Requests matching this policy will be redirected to this URL. Only valid if the action is REDIRECTTOURL
- region
Id Number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name 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
- List<String>
- A list of simple strings assigned to the resource
- timeouts Property Map
- updated
At String - The datetime when the L7 policy was last updated
Supporting Types
LbL7policyTimeouts, LbL7policyTimeoutsArgs
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.