1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. alb
  5. getSystemSecurityPolicies
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.alb.getSystemSecurityPolicies

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    This data source provides the ALB System Security Policies of the current Alibaba Cloud user.

    NOTE: Available in v1.183.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const defaults = alicloud.alb.getSystemSecurityPolicies({
        ids: ["tls_cipher_policy_1_0"],
    });
    export const albSystemSecurityPolicyId1 = defaults.then(defaults => defaults.policies?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    defaults = alicloud.alb.get_system_security_policies(ids=["tls_cipher_policy_1_0"])
    pulumi.export("albSystemSecurityPolicyId1", defaults.policies[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/alb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		defaults, err := alb.GetSystemSecurityPolicies(ctx, &alb.GetSystemSecurityPoliciesArgs{
    			Ids: []string{
    				"tls_cipher_policy_1_0",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("albSystemSecurityPolicyId1", defaults.Policies[0].Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var defaults = AliCloud.Alb.GetSystemSecurityPolicies.Invoke(new()
        {
            Ids = new[]
            {
                "tls_cipher_policy_1_0",
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["albSystemSecurityPolicyId1"] = defaults.Apply(getSystemSecurityPoliciesResult => getSystemSecurityPoliciesResult.Policies[0]?.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.alb.AlbFunctions;
    import com.pulumi.alicloud.alb.inputs.GetSystemSecurityPoliciesArgs;
    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) {
            final var defaults = AlbFunctions.getSystemSecurityPolicies(GetSystemSecurityPoliciesArgs.builder()
                .ids("tls_cipher_policy_1_0")
                .build());
    
            ctx.export("albSystemSecurityPolicyId1", defaults.applyValue(getSystemSecurityPoliciesResult -> getSystemSecurityPoliciesResult.policies()[0].id()));
        }
    }
    
    variables:
      defaults:
        fn::invoke:
          Function: alicloud:alb:getSystemSecurityPolicies
          Arguments:
            ids:
              - tls_cipher_policy_1_0
    outputs:
      albSystemSecurityPolicyId1: ${defaults.policies[0].id}
    

    Using getSystemSecurityPolicies

    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 getSystemSecurityPolicies(args: GetSystemSecurityPoliciesArgs, opts?: InvokeOptions): Promise<GetSystemSecurityPoliciesResult>
    function getSystemSecurityPoliciesOutput(args: GetSystemSecurityPoliciesOutputArgs, opts?: InvokeOptions): Output<GetSystemSecurityPoliciesResult>
    def get_system_security_policies(ids: Optional[Sequence[str]] = None,
                                     output_file: Optional[str] = None,
                                     tags: Optional[Mapping[str, Any]] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetSystemSecurityPoliciesResult
    def get_system_security_policies_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                     output_file: Optional[pulumi.Input[str]] = None,
                                     tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetSystemSecurityPoliciesResult]
    func GetSystemSecurityPolicies(ctx *Context, args *GetSystemSecurityPoliciesArgs, opts ...InvokeOption) (*GetSystemSecurityPoliciesResult, error)
    func GetSystemSecurityPoliciesOutput(ctx *Context, args *GetSystemSecurityPoliciesOutputArgs, opts ...InvokeOption) GetSystemSecurityPoliciesResultOutput

    > Note: This function is named GetSystemSecurityPolicies in the Go SDK.

    public static class GetSystemSecurityPolicies 
    {
        public static Task<GetSystemSecurityPoliciesResult> InvokeAsync(GetSystemSecurityPoliciesArgs args, InvokeOptions? opts = null)
        public static Output<GetSystemSecurityPoliciesResult> Invoke(GetSystemSecurityPoliciesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSystemSecurityPoliciesResult> getSystemSecurityPolicies(GetSystemSecurityPoliciesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:alb/getSystemSecurityPolicies:getSystemSecurityPolicies
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    A list of System Security Policy IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Tags Dictionary<string, object>
    Ids []string
    A list of System Security Policy IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Tags map[string]interface{}
    ids List<String>
    A list of System Security Policy IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    tags Map<String,Object>
    ids string[]
    A list of System Security Policy IDs.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    tags {[key: string]: any}
    ids Sequence[str]
    A list of System Security Policy IDs.
    output_file str
    File name where to save data source results (after running pulumi preview).
    tags Mapping[str, Any]
    ids List<String>
    A list of System Security Policy IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    tags Map<Any>

    getSystemSecurityPolicies Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    A list of System Security Policy IDs.
    Policies List<Pulumi.AliCloud.Alb.Outputs.GetSystemSecurityPoliciesPolicy>
    A list of ALB Security Policies. Each element contains the following attributes:
    OutputFile string
    Tags Dictionary<string, object>
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    A list of System Security Policy IDs.
    Policies []GetSystemSecurityPoliciesPolicy
    A list of ALB Security Policies. Each element contains the following attributes:
    OutputFile string
    Tags map[string]interface{}
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of System Security Policy IDs.
    policies List<GetSystemSecurityPoliciesPolicy>
    A list of ALB Security Policies. Each element contains the following attributes:
    outputFile String
    tags Map<String,Object>
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    A list of System Security Policy IDs.
    policies GetSystemSecurityPoliciesPolicy[]
    A list of ALB Security Policies. Each element contains the following attributes:
    outputFile string
    tags {[key: string]: any}
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    A list of System Security Policy IDs.
    policies Sequence[GetSystemSecurityPoliciesPolicy]
    A list of ALB Security Policies. Each element contains the following attributes:
    output_file str
    tags Mapping[str, Any]
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of System Security Policy IDs.
    policies List<Property Map>
    A list of ALB Security Policies. Each element contains the following attributes:
    outputFile String
    tags Map<Any>

    Supporting Types

    GetSystemSecurityPoliciesPolicy

    Ciphers List<string>
    The supported cipher suites, which are determined by the TLS protocol version.
    Id string
    The ID of the Security Policy.
    SecurityPolicyId string
    The first ID of the resource.
    TlsVersions List<string>
    The TLS protocol versions are supported. Valid values: TLSv1.0, TLSv1.1, TLSv1.2 and TLSv1.3.
    Ciphers []string
    The supported cipher suites, which are determined by the TLS protocol version.
    Id string
    The ID of the Security Policy.
    SecurityPolicyId string
    The first ID of the resource.
    TlsVersions []string
    The TLS protocol versions are supported. Valid values: TLSv1.0, TLSv1.1, TLSv1.2 and TLSv1.3.
    ciphers List<String>
    The supported cipher suites, which are determined by the TLS protocol version.
    id String
    The ID of the Security Policy.
    securityPolicyId String
    The first ID of the resource.
    tlsVersions List<String>
    The TLS protocol versions are supported. Valid values: TLSv1.0, TLSv1.1, TLSv1.2 and TLSv1.3.
    ciphers string[]
    The supported cipher suites, which are determined by the TLS protocol version.
    id string
    The ID of the Security Policy.
    securityPolicyId string
    The first ID of the resource.
    tlsVersions string[]
    The TLS protocol versions are supported. Valid values: TLSv1.0, TLSv1.1, TLSv1.2 and TLSv1.3.
    ciphers Sequence[str]
    The supported cipher suites, which are determined by the TLS protocol version.
    id str
    The ID of the Security Policy.
    security_policy_id str
    The first ID of the resource.
    tls_versions Sequence[str]
    The TLS protocol versions are supported. Valid values: TLSv1.0, TLSv1.1, TLSv1.2 and TLSv1.3.
    ciphers List<String>
    The supported cipher suites, which are determined by the TLS protocol version.
    id String
    The ID of the Security Policy.
    securityPolicyId String
    The first ID of the resource.
    tlsVersions List<String>
    The TLS protocol versions are supported. Valid values: TLSv1.0, TLSv1.1, TLSv1.2 and TLSv1.3.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi