Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi
alicloud.slb.getTlsCipherPolicies
Explore with Pulumi AI
This data source provides the Slb Tls Cipher Policies of the current Alibaba Cloud user.
NOTE: Available in v1.135.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const ids = alicloud.slb.getTlsCipherPolicies({
ids: [
"example_value-1",
"example_value-2",
],
});
export const slbTlsCipherPolicyId1 = ids.then(ids => ids.policies?.[0]?.id);
const nameRegex = alicloud.slb.getTlsCipherPolicies({
nameRegex: "^My-TlsCipherPolicy",
});
export const slbTlsCipherPolicyId2 = nameRegex.then(nameRegex => nameRegex.policies?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.slb.get_tls_cipher_policies(ids=[
"example_value-1",
"example_value-2",
])
pulumi.export("slbTlsCipherPolicyId1", ids.policies[0].id)
name_regex = alicloud.slb.get_tls_cipher_policies(name_regex="^My-TlsCipherPolicy")
pulumi.export("slbTlsCipherPolicyId2", name_regex.policies[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
ids, err := slb.GetTlsCipherPolicies(ctx, &slb.GetTlsCipherPoliciesArgs{
Ids: []string{
"example_value-1",
"example_value-2",
},
}, nil)
if err != nil {
return err
}
ctx.Export("slbTlsCipherPolicyId1", ids.Policies[0].Id)
nameRegex, err := slb.GetTlsCipherPolicies(ctx, &slb.GetTlsCipherPoliciesArgs{
NameRegex: pulumi.StringRef("^My-TlsCipherPolicy"),
}, nil)
if err != nil {
return err
}
ctx.Export("slbTlsCipherPolicyId2", nameRegex.Policies[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var ids = AliCloud.Slb.GetTlsCipherPolicies.Invoke(new()
{
Ids = new[]
{
"example_value-1",
"example_value-2",
},
});
var nameRegex = AliCloud.Slb.GetTlsCipherPolicies.Invoke(new()
{
NameRegex = "^My-TlsCipherPolicy",
});
return new Dictionary<string, object?>
{
["slbTlsCipherPolicyId1"] = ids.Apply(getTlsCipherPoliciesResult => getTlsCipherPoliciesResult.Policies[0]?.Id),
["slbTlsCipherPolicyId2"] = nameRegex.Apply(getTlsCipherPoliciesResult => getTlsCipherPoliciesResult.Policies[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.slb.SlbFunctions;
import com.pulumi.alicloud.slb.inputs.GetTlsCipherPoliciesArgs;
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 ids = SlbFunctions.getTlsCipherPolicies(GetTlsCipherPoliciesArgs.builder()
.ids(
"example_value-1",
"example_value-2")
.build());
ctx.export("slbTlsCipherPolicyId1", ids.applyValue(getTlsCipherPoliciesResult -> getTlsCipherPoliciesResult.policies()[0].id()));
final var nameRegex = SlbFunctions.getTlsCipherPolicies(GetTlsCipherPoliciesArgs.builder()
.nameRegex("^My-TlsCipherPolicy")
.build());
ctx.export("slbTlsCipherPolicyId2", nameRegex.applyValue(getTlsCipherPoliciesResult -> getTlsCipherPoliciesResult.policies()[0].id()));
}
}
variables:
ids:
fn::invoke:
function: alicloud:slb:getTlsCipherPolicies
arguments:
ids:
- example_value-1
- example_value-2
nameRegex:
fn::invoke:
function: alicloud:slb:getTlsCipherPolicies
arguments:
nameRegex: ^My-TlsCipherPolicy
outputs:
slbTlsCipherPolicyId1: ${ids.policies[0].id}
slbTlsCipherPolicyId2: ${nameRegex.policies[0].id}
Using getTlsCipherPolicies
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 getTlsCipherPolicies(args: GetTlsCipherPoliciesArgs, opts?: InvokeOptions): Promise<GetTlsCipherPoliciesResult>
function getTlsCipherPoliciesOutput(args: GetTlsCipherPoliciesOutputArgs, opts?: InvokeOptions): Output<GetTlsCipherPoliciesResult>
def get_tls_cipher_policies(ids: Optional[Sequence[str]] = None,
include_listener: Optional[bool] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
status: Optional[str] = None,
tls_cipher_policy_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTlsCipherPoliciesResult
def get_tls_cipher_policies_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
include_listener: Optional[pulumi.Input[bool]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
tls_cipher_policy_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTlsCipherPoliciesResult]
func GetTlsCipherPolicies(ctx *Context, args *GetTlsCipherPoliciesArgs, opts ...InvokeOption) (*GetTlsCipherPoliciesResult, error)
func GetTlsCipherPoliciesOutput(ctx *Context, args *GetTlsCipherPoliciesOutputArgs, opts ...InvokeOption) GetTlsCipherPoliciesResultOutput
> Note: This function is named GetTlsCipherPolicies
in the Go SDK.
public static class GetTlsCipherPolicies
{
public static Task<GetTlsCipherPoliciesResult> InvokeAsync(GetTlsCipherPoliciesArgs args, InvokeOptions? opts = null)
public static Output<GetTlsCipherPoliciesResult> Invoke(GetTlsCipherPoliciesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTlsCipherPoliciesResult> getTlsCipherPolicies(GetTlsCipherPoliciesArgs args, InvokeOptions options)
public static Output<GetTlsCipherPoliciesResult> getTlsCipherPolicies(GetTlsCipherPoliciesArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:slb/getTlsCipherPolicies:getTlsCipherPolicies
arguments:
# arguments dictionary
The following arguments are supported:
- Ids
Changes to this property will trigger replacement.
- A list of Tls Cipher Policy IDs.
- Include
Listener Changes to this property will trigger replacement.
- The include listener.
- Name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by Tls Cipher Policy name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status
Changes to this property will trigger replacement.
- TLS policy instance state. Valid values:
configuring
,normal
. - Tls
Cipher Policy Name Changes to this property will trigger replacement.
- TLS policy name. Length is from 2 to 128, or in both the English and Chinese characters must be with an uppercase/lowercase letter or a Chinese character and the beginning, may contain numbers, in dot
.
, underscore_
or dash-
.
- Ids
Changes to this property will trigger replacement.
- A list of Tls Cipher Policy IDs.
- Include
Listener Changes to this property will trigger replacement.
- The include listener.
- Name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by Tls Cipher Policy name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status
Changes to this property will trigger replacement.
- TLS policy instance state. Valid values:
configuring
,normal
. - Tls
Cipher Policy Name Changes to this property will trigger replacement.
- TLS policy name. Length is from 2 to 128, or in both the English and Chinese characters must be with an uppercase/lowercase letter or a Chinese character and the beginning, may contain numbers, in dot
.
, underscore_
or dash-
.
- ids
Changes to this property will trigger replacement.
- A list of Tls Cipher Policy IDs.
- include
Listener Changes to this property will trigger replacement.
- The include listener.
- name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by Tls Cipher Policy name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status
Changes to this property will trigger replacement.
- TLS policy instance state. Valid values:
configuring
,normal
. - tls
Cipher Policy Name Changes to this property will trigger replacement.
- TLS policy name. Length is from 2 to 128, or in both the English and Chinese characters must be with an uppercase/lowercase letter or a Chinese character and the beginning, may contain numbers, in dot
.
, underscore_
or dash-
.
- ids
Changes to this property will trigger replacement.
- A list of Tls Cipher Policy IDs.
- include
Listener Changes to this property will trigger replacement.
- The include listener.
- name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by Tls Cipher Policy name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - status
Changes to this property will trigger replacement.
- TLS policy instance state. Valid values:
configuring
,normal
. - tls
Cipher Policy Name Changes to this property will trigger replacement.
- TLS policy name. Length is from 2 to 128, or in both the English and Chinese characters must be with an uppercase/lowercase letter or a Chinese character and the beginning, may contain numbers, in dot
.
, underscore_
or dash-
.
- ids
Changes to this property will trigger replacement.
- A list of Tls Cipher Policy IDs.
- include_
listener Changes to this property will trigger replacement.
- The include listener.
- name_
regex Changes to this property will trigger replacement.
- A regex string to filter results by Tls Cipher Policy name.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - status
Changes to this property will trigger replacement.
- TLS policy instance state. Valid values:
configuring
,normal
. - tls_
cipher_ policy_ name Changes to this property will trigger replacement.
- TLS policy name. Length is from 2 to 128, or in both the English and Chinese characters must be with an uppercase/lowercase letter or a Chinese character and the beginning, may contain numbers, in dot
.
, underscore_
or dash-
.
- ids
Changes to this property will trigger replacement.
- A list of Tls Cipher Policy IDs.
- include
Listener Changes to this property will trigger replacement.
- The include listener.
- name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by Tls Cipher Policy name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status
Changes to this property will trigger replacement.
- TLS policy instance state. Valid values:
configuring
,normal
. - tls
Cipher Policy Name Changes to this property will trigger replacement.
- TLS policy name. Length is from 2 to 128, or in both the English and Chinese characters must be with an uppercase/lowercase letter or a Chinese character and the beginning, may contain numbers, in dot
.
, underscore_
or dash-
.
getTlsCipherPolicies Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- Policies
List<Pulumi.
Ali Cloud. Slb. Outputs. Get Tls Cipher Policies Policy> - Include
Listener bool - Name
Regex string - Output
File string - Status string
- Tls
Cipher stringPolicy Name
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Policies
[]Get
Tls Cipher Policies Policy - Include
Listener bool - Name
Regex string - Output
File string - Status string
- Tls
Cipher stringPolicy Name
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- policies
List<Get
Tls Cipher Policies Policy> - include
Listener Boolean - name
Regex String - output
File String - status String
- tls
Cipher StringPolicy Name
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- policies
Get
Tls Cipher Policies Policy[] - include
Listener boolean - name
Regex string - output
File string - status string
- tls
Cipher stringPolicy Name
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- policies
Sequence[Get
Tls Cipher Policies Policy] - include_
listener bool - name_
regex str - output_
file str - status str
- tls_
cipher_ strpolicy_ name
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- policies List<Property Map>
- include
Listener Boolean - name
Regex String - output
File String - status String
- tls
Cipher StringPolicy Name
Supporting Types
GetTlsCipherPoliciesPolicy
- Ciphers
This property is required. List<string> - The encryption algorithms supported. It depends on the value of
tls_versions
. - Create
Time This property is required. string - The creation time timestamp.
- Id
This property is required. string - The ID of the Tls Cipher Policy.
- Relate
Listeners This property is required. List<Pulumi.Ali Cloud. Slb. Inputs. Get Tls Cipher Policies Policy Relate Listener> - Array of Relate Listeners.
- Status
This property is required. string - TLS policy instance state.
- Tls
Cipher Policy Id This property is required. string - The ID of TLS cipher policy.
- Tls
Cipher Policy Name This property is required. string - TLS policy name. Length is from 2 to 128, or in both the English and Chinese characters must be with an uppercase/lowercase letter or a Chinese character and the beginning, may contain numbers, in dot
.
, underscore_
or dash-
. - Tls
Versions This property is required. List<string> - The version of TLS protocol.
- Ciphers
This property is required. []string - The encryption algorithms supported. It depends on the value of
tls_versions
. - Create
Time This property is required. string - The creation time timestamp.
- Id
This property is required. string - The ID of the Tls Cipher Policy.
- Relate
Listeners This property is required. []GetTls Cipher Policies Policy Relate Listener - Array of Relate Listeners.
- Status
This property is required. string - TLS policy instance state.
- Tls
Cipher Policy Id This property is required. string - The ID of TLS cipher policy.
- Tls
Cipher Policy Name This property is required. string - TLS policy name. Length is from 2 to 128, or in both the English and Chinese characters must be with an uppercase/lowercase letter or a Chinese character and the beginning, may contain numbers, in dot
.
, underscore_
or dash-
. - Tls
Versions This property is required. []string - The version of TLS protocol.
- ciphers
This property is required. List<String> - The encryption algorithms supported. It depends on the value of
tls_versions
. - create
Time This property is required. String - The creation time timestamp.
- id
This property is required. String - The ID of the Tls Cipher Policy.
- relate
Listeners This property is required. List<GetTls Cipher Policies Policy Relate Listener> - Array of Relate Listeners.
- status
This property is required. String - TLS policy instance state.
- tls
Cipher Policy Id This property is required. String - The ID of TLS cipher policy.
- tls
Cipher Policy Name This property is required. String - TLS policy name. Length is from 2 to 128, or in both the English and Chinese characters must be with an uppercase/lowercase letter or a Chinese character and the beginning, may contain numbers, in dot
.
, underscore_
or dash-
. - tls
Versions This property is required. List<String> - The version of TLS protocol.
- ciphers
This property is required. string[] - The encryption algorithms supported. It depends on the value of
tls_versions
. - create
Time This property is required. string - The creation time timestamp.
- id
This property is required. string - The ID of the Tls Cipher Policy.
- relate
Listeners This property is required. GetTls Cipher Policies Policy Relate Listener[] - Array of Relate Listeners.
- status
This property is required. string - TLS policy instance state.
- tls
Cipher Policy Id This property is required. string - The ID of TLS cipher policy.
- tls
Cipher Policy Name This property is required. string - TLS policy name. Length is from 2 to 128, or in both the English and Chinese characters must be with an uppercase/lowercase letter or a Chinese character and the beginning, may contain numbers, in dot
.
, underscore_
or dash-
. - tls
Versions This property is required. string[] - The version of TLS protocol.
- ciphers
This property is required. Sequence[str] - The encryption algorithms supported. It depends on the value of
tls_versions
. - create_
time This property is required. str - The creation time timestamp.
- id
This property is required. str - The ID of the Tls Cipher Policy.
- relate_
listeners This property is required. Sequence[GetTls Cipher Policies Policy Relate Listener] - Array of Relate Listeners.
- status
This property is required. str - TLS policy instance state.
- tls_
cipher_ policy_ id This property is required. str - The ID of TLS cipher policy.
- tls_
cipher_ policy_ name This property is required. str - TLS policy name. Length is from 2 to 128, or in both the English and Chinese characters must be with an uppercase/lowercase letter or a Chinese character and the beginning, may contain numbers, in dot
.
, underscore_
or dash-
. - tls_
versions This property is required. Sequence[str] - The version of TLS protocol.
- ciphers
This property is required. List<String> - The encryption algorithms supported. It depends on the value of
tls_versions
. - create
Time This property is required. String - The creation time timestamp.
- id
This property is required. String - The ID of the Tls Cipher Policy.
- relate
Listeners This property is required. List<Property Map> - Array of Relate Listeners.
- status
This property is required. String - TLS policy instance state.
- tls
Cipher Policy Id This property is required. String - The ID of TLS cipher policy.
- tls
Cipher Policy Name This property is required. String - TLS policy name. Length is from 2 to 128, or in both the English and Chinese characters must be with an uppercase/lowercase letter or a Chinese character and the beginning, may contain numbers, in dot
.
, underscore_
or dash-
. - tls
Versions This property is required. List<String> - The version of TLS protocol.
GetTlsCipherPoliciesPolicyRelateListener
- Load
Balancer Id This property is required. string - The ID of SLB instance.
- Port
This property is required. int - Listening port. Valid value: 1 to 65535.
- Protocol
This property is required. string - Snooping protocols. Valid values:
TCP
,UDP
,HTTP
, orHTTPS
.
- Load
Balancer Id This property is required. string - The ID of SLB instance.
- Port
This property is required. int - Listening port. Valid value: 1 to 65535.
- Protocol
This property is required. string - Snooping protocols. Valid values:
TCP
,UDP
,HTTP
, orHTTPS
.
- load
Balancer Id This property is required. String - The ID of SLB instance.
- port
This property is required. Integer - Listening port. Valid value: 1 to 65535.
- protocol
This property is required. String - Snooping protocols. Valid values:
TCP
,UDP
,HTTP
, orHTTPS
.
- load
Balancer Id This property is required. string - The ID of SLB instance.
- port
This property is required. number - Listening port. Valid value: 1 to 65535.
- protocol
This property is required. string - Snooping protocols. Valid values:
TCP
,UDP
,HTTP
, orHTTPS
.
- load_
balancer_ id This property is required. str - The ID of SLB instance.
- port
This property is required. int - Listening port. Valid value: 1 to 65535.
- protocol
This property is required. str - Snooping protocols. Valid values:
TCP
,UDP
,HTTP
, orHTTPS
.
- load
Balancer Id This property is required. String - The ID of SLB instance.
- port
This property is required. Number - Listening port. Valid value: 1 to 65535.
- protocol
This property is required. String - Snooping protocols. Valid values:
TCP
,UDP
,HTTP
, orHTTPS
.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.