tencentcloud 1.81.188 published on Monday, Apr 28, 2025 by tencentcloudstack
tencentcloud.getGaapSecurityPolicies
Explore with Pulumi AI
tencentcloud 1.81.188 published on Monday, Apr 28, 2025 by tencentcloudstack
Use this data source to query security policies of GAAP proxy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const fooGaapProxy = new tencentcloud.GaapProxy("fooGaapProxy", {
bandwidth: 10,
concurrent: 2,
accessRegion: "SouthChina",
realserverRegion: "NorthChina",
});
const fooGaapSecurityPolicy = new tencentcloud.GaapSecurityPolicy("fooGaapSecurityPolicy", {
proxyId: fooGaapProxy.gaapProxyId,
action: "ACCEPT",
});
const fooGaapSecurityPolicies = tencentcloud.getGaapSecurityPoliciesOutput({
id: fooGaapSecurityPolicy.gaapSecurityPolicyId,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo_gaap_proxy = tencentcloud.GaapProxy("fooGaapProxy",
bandwidth=10,
concurrent=2,
access_region="SouthChina",
realserver_region="NorthChina")
foo_gaap_security_policy = tencentcloud.GaapSecurityPolicy("fooGaapSecurityPolicy",
proxy_id=foo_gaap_proxy.gaap_proxy_id,
action="ACCEPT")
foo_gaap_security_policies = tencentcloud.get_gaap_security_policies_output(id=foo_gaap_security_policy.gaap_security_policy_id)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fooGaapProxy, err := tencentcloud.NewGaapProxy(ctx, "fooGaapProxy", &tencentcloud.GaapProxyArgs{
Bandwidth: pulumi.Float64(10),
Concurrent: pulumi.Float64(2),
AccessRegion: pulumi.String("SouthChina"),
RealserverRegion: pulumi.String("NorthChina"),
})
if err != nil {
return err
}
fooGaapSecurityPolicy, err := tencentcloud.NewGaapSecurityPolicy(ctx, "fooGaapSecurityPolicy", &tencentcloud.GaapSecurityPolicyArgs{
ProxyId: fooGaapProxy.GaapProxyId,
Action: pulumi.String("ACCEPT"),
})
if err != nil {
return err
}
_ = tencentcloud.GetGaapSecurityPoliciesOutput(ctx, tencentcloud.GetGaapSecurityPoliciesOutputArgs{
Id: fooGaapSecurityPolicy.GaapSecurityPolicyId,
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var fooGaapProxy = new Tencentcloud.GaapProxy("fooGaapProxy", new()
{
Bandwidth = 10,
Concurrent = 2,
AccessRegion = "SouthChina",
RealserverRegion = "NorthChina",
});
var fooGaapSecurityPolicy = new Tencentcloud.GaapSecurityPolicy("fooGaapSecurityPolicy", new()
{
ProxyId = fooGaapProxy.GaapProxyId,
Action = "ACCEPT",
});
var fooGaapSecurityPolicies = Tencentcloud.GetGaapSecurityPolicies.Invoke(new()
{
Id = fooGaapSecurityPolicy.GaapSecurityPolicyId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.GaapProxy;
import com.pulumi.tencentcloud.GaapProxyArgs;
import com.pulumi.tencentcloud.GaapSecurityPolicy;
import com.pulumi.tencentcloud.GaapSecurityPolicyArgs;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetGaapSecurityPoliciesArgs;
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 fooGaapProxy = new GaapProxy("fooGaapProxy", GaapProxyArgs.builder()
.bandwidth(10)
.concurrent(2)
.accessRegion("SouthChina")
.realserverRegion("NorthChina")
.build());
var fooGaapSecurityPolicy = new GaapSecurityPolicy("fooGaapSecurityPolicy", GaapSecurityPolicyArgs.builder()
.proxyId(fooGaapProxy.gaapProxyId())
.action("ACCEPT")
.build());
final var fooGaapSecurityPolicies = TencentcloudFunctions.getGaapSecurityPolicies(GetGaapSecurityPoliciesArgs.builder()
.id(fooGaapSecurityPolicy.gaapSecurityPolicyId())
.build());
}
}
resources:
fooGaapProxy:
type: tencentcloud:GaapProxy
properties:
bandwidth: 10
concurrent: 2
accessRegion: SouthChina
realserverRegion: NorthChina
fooGaapSecurityPolicy:
type: tencentcloud:GaapSecurityPolicy
properties:
proxyId: ${fooGaapProxy.gaapProxyId}
action: ACCEPT
variables:
fooGaapSecurityPolicies:
fn::invoke:
function: tencentcloud:getGaapSecurityPolicies
arguments:
id: ${fooGaapSecurityPolicy.gaapSecurityPolicyId}
Using getGaapSecurityPolicies
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getGaapSecurityPolicies(args: GetGaapSecurityPoliciesArgs, opts?: InvokeOptions): Promise<GetGaapSecurityPoliciesResult>
function getGaapSecurityPoliciesOutput(args: GetGaapSecurityPoliciesOutputArgs, opts?: InvokeOptions): Output<GetGaapSecurityPoliciesResult>
def get_gaap_security_policies(id: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGaapSecurityPoliciesResult
def get_gaap_security_policies_output(id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGaapSecurityPoliciesResult]
func GetGaapSecurityPolicies(ctx *Context, args *GetGaapSecurityPoliciesArgs, opts ...InvokeOption) (*GetGaapSecurityPoliciesResult, error)
func GetGaapSecurityPoliciesOutput(ctx *Context, args *GetGaapSecurityPoliciesOutputArgs, opts ...InvokeOption) GetGaapSecurityPoliciesResultOutput
> Note: This function is named GetGaapSecurityPolicies
in the Go SDK.
public static class GetGaapSecurityPolicies
{
public static Task<GetGaapSecurityPoliciesResult> InvokeAsync(GetGaapSecurityPoliciesArgs args, InvokeOptions? opts = null)
public static Output<GetGaapSecurityPoliciesResult> Invoke(GetGaapSecurityPoliciesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetGaapSecurityPoliciesResult> getGaapSecurityPolicies(GetGaapSecurityPoliciesArgs args, InvokeOptions options)
public static Output<GetGaapSecurityPoliciesResult> getGaapSecurityPolicies(GetGaapSecurityPoliciesArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getGaapSecurityPolicies:getGaapSecurityPolicies
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- ID of the security policy to be queried.
- Result
Output stringFile - Used to save results.
- Id string
- ID of the security policy to be queried.
- Result
Output stringFile - Used to save results.
- id String
- ID of the security policy to be queried.
- result
Output StringFile - Used to save results.
- id string
- ID of the security policy to be queried.
- result
Output stringFile - Used to save results.
- id str
- ID of the security policy to be queried.
- result_
output_ strfile - Used to save results.
- id String
- ID of the security policy to be queried.
- result
Output StringFile - Used to save results.
getGaapSecurityPolicies Result
The following output properties are available:
- Action string
- Default policy.
- Id string
- Proxy
Id string - ID of the GAAP proxy.
- Status string
- Status of the security policy.
- Result
Output stringFile
- Action string
- Default policy.
- Id string
- Proxy
Id string - ID of the GAAP proxy.
- Status string
- Status of the security policy.
- Result
Output stringFile
- action String
- Default policy.
- id String
- proxy
Id String - ID of the GAAP proxy.
- status String
- Status of the security policy.
- result
Output StringFile
- action string
- Default policy.
- id string
- proxy
Id string - ID of the GAAP proxy.
- status string
- Status of the security policy.
- result
Output stringFile
- action str
- Default policy.
- id str
- proxy_
id str - ID of the GAAP proxy.
- status str
- Status of the security policy.
- result_
output_ strfile
- action String
- Default policy.
- id String
- proxy
Id String - ID of the GAAP proxy.
- status String
- Status of the security policy.
- result
Output StringFile
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.188 published on Monday, Apr 28, 2025 by tencentcloudstack