1. Packages
  2. Volcengine
  3. API Docs
  4. rds_postgresql
  5. getInstanceSsls
Volcengine v0.0.43 published on Friday, Jan 16, 2026 by Volcengine
volcengine logo
Volcengine v0.0.43 published on Friday, Jan 16, 2026 by Volcengine

    Use this data source to query detailed information of rds postgresql instance ssls

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const example = volcengine.rds_postgresql.getInstanceSsls({
        downloadCertificate: true,
        ids: [
            "postgres-72715e0d9f58",
            "postgres-0ac38a79fe35",
        ],
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    example = volcengine.rds_postgresql.get_instance_ssls(download_certificate=True,
        ids=[
            "postgres-72715e0d9f58",
            "postgres-0ac38a79fe35",
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/rds_postgresql"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := rds_postgresql.GetInstanceSsls(ctx, &rds_postgresql.GetInstanceSslsArgs{
    			DownloadCertificate: pulumi.BoolRef(true),
    			Ids: []string{
    				"postgres-72715e0d9f58",
    				"postgres-0ac38a79fe35",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Volcengine.Rds_postgresql.GetInstanceSsls.Invoke(new()
        {
            DownloadCertificate = true,
            Ids = new[]
            {
                "postgres-72715e0d9f58",
                "postgres-0ac38a79fe35",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.rds_postgresql.Rds_postgresqlFunctions;
    import com.pulumi.volcengine.rds_postgresql.inputs.GetInstanceSslsArgs;
    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 example = Rds_postgresqlFunctions.getInstanceSsls(GetInstanceSslsArgs.builder()
                .downloadCertificate(true)
                .ids(            
                    "postgres-72715e0d9f58",
                    "postgres-0ac38a79fe35")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: volcengine:rds_postgresql:getInstanceSsls
          Arguments:
            downloadCertificate: true
            ids:
              - postgres-72715e0d9f58
              - postgres-0ac38a79fe35
    

    Using getInstanceSsls

    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 getInstanceSsls(args: GetInstanceSslsArgs, opts?: InvokeOptions): Promise<GetInstanceSslsResult>
    function getInstanceSslsOutput(args: GetInstanceSslsOutputArgs, opts?: InvokeOptions): Output<GetInstanceSslsResult>
    def get_instance_ssls(download_certificate: Optional[bool] = None,
                          ids: Optional[Sequence[str]] = None,
                          name_regex: Optional[str] = None,
                          output_file: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetInstanceSslsResult
    def get_instance_ssls_output(download_certificate: Optional[pulumi.Input[bool]] = None,
                          ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                          name_regex: Optional[pulumi.Input[str]] = None,
                          output_file: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetInstanceSslsResult]
    func GetInstanceSsls(ctx *Context, args *GetInstanceSslsArgs, opts ...InvokeOption) (*GetInstanceSslsResult, error)
    func GetInstanceSslsOutput(ctx *Context, args *GetInstanceSslsOutputArgs, opts ...InvokeOption) GetInstanceSslsResultOutput

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

    public static class GetInstanceSsls 
    {
        public static Task<GetInstanceSslsResult> InvokeAsync(GetInstanceSslsArgs args, InvokeOptions? opts = null)
        public static Output<GetInstanceSslsResult> Invoke(GetInstanceSslsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetInstanceSslsResult> getInstanceSsls(GetInstanceSslsArgs args, InvokeOptions options)
    public static Output<GetInstanceSslsResult> getInstanceSsls(GetInstanceSslsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:rds_postgresql/getInstanceSsls:getInstanceSsls
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    A list of the PostgreSQL instance IDs.
    DownloadCertificate bool
    Whether to include SSL certificate raw bytes for each instance.
    NameRegex string
    A Name Regex of Resource.
    OutputFile string
    File name where to save data source results.
    Ids []string
    A list of the PostgreSQL instance IDs.
    DownloadCertificate bool
    Whether to include SSL certificate raw bytes for each instance.
    NameRegex string
    A Name Regex of Resource.
    OutputFile string
    File name where to save data source results.
    ids List<String>
    A list of the PostgreSQL instance IDs.
    downloadCertificate Boolean
    Whether to include SSL certificate raw bytes for each instance.
    nameRegex String
    A Name Regex of Resource.
    outputFile String
    File name where to save data source results.
    ids string[]
    A list of the PostgreSQL instance IDs.
    downloadCertificate boolean
    Whether to include SSL certificate raw bytes for each instance.
    nameRegex string
    A Name Regex of Resource.
    outputFile string
    File name where to save data source results.
    ids Sequence[str]
    A list of the PostgreSQL instance IDs.
    download_certificate bool
    Whether to include SSL certificate raw bytes for each instance.
    name_regex str
    A Name Regex of Resource.
    output_file str
    File name where to save data source results.
    ids List<String>
    A list of the PostgreSQL instance IDs.
    downloadCertificate Boolean
    Whether to include SSL certificate raw bytes for each instance.
    nameRegex String
    A Name Regex of Resource.
    outputFile String
    File name where to save data source results.

    getInstanceSsls Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Ssls List<GetInstanceSslsSsl>
    The collection of query.
    TotalCount int
    The total count of query.
    DownloadCertificate bool
    NameRegex string
    OutputFile string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Ssls []GetInstanceSslsSsl
    The collection of query.
    TotalCount int
    The total count of query.
    DownloadCertificate bool
    NameRegex string
    OutputFile string
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    ssls List<GetInstanceSslsSsl>
    The collection of query.
    totalCount Integer
    The total count of query.
    downloadCertificate Boolean
    nameRegex String
    outputFile String
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    ssls GetInstanceSslsSsl[]
    The collection of query.
    totalCount number
    The total count of query.
    downloadCertificate boolean
    nameRegex string
    outputFile string
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    ssls Sequence[GetInstanceSslsSsl]
    The collection of query.
    total_count int
    The total count of query.
    download_certificate bool
    name_regex str
    output_file str
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    ssls List<Property Map>
    The collection of query.
    totalCount Number
    The total count of query.
    downloadCertificate Boolean
    nameRegex String
    outputFile String

    Supporting Types

    GetInstanceSslsSsl

    Addresses List<string>
    The protected addresses.
    Certificates List<int>
    Raw byte stream array of certificate zip.
    ForceEncryption bool
    Whether to force encryption.
    InstanceId string
    The id of the postgresql Instance.
    IsValid bool
    Whether the SSL certificate is valid.
    SslEnable bool
    Whether to enable SSL.
    SslExpireTime string
    The expiration time of the SSL certificate. The format is: yyyy-MM-ddTHH:mm:ss(UTC time).
    TlsVersions List<string>
    The supported TLS versions.
    Addresses []string
    The protected addresses.
    Certificates []int
    Raw byte stream array of certificate zip.
    ForceEncryption bool
    Whether to force encryption.
    InstanceId string
    The id of the postgresql Instance.
    IsValid bool
    Whether the SSL certificate is valid.
    SslEnable bool
    Whether to enable SSL.
    SslExpireTime string
    The expiration time of the SSL certificate. The format is: yyyy-MM-ddTHH:mm:ss(UTC time).
    TlsVersions []string
    The supported TLS versions.
    addresses List<String>
    The protected addresses.
    certificates List<Integer>
    Raw byte stream array of certificate zip.
    forceEncryption Boolean
    Whether to force encryption.
    instanceId String
    The id of the postgresql Instance.
    isValid Boolean
    Whether the SSL certificate is valid.
    sslEnable Boolean
    Whether to enable SSL.
    sslExpireTime String
    The expiration time of the SSL certificate. The format is: yyyy-MM-ddTHH:mm:ss(UTC time).
    tlsVersions List<String>
    The supported TLS versions.
    addresses string[]
    The protected addresses.
    certificates number[]
    Raw byte stream array of certificate zip.
    forceEncryption boolean
    Whether to force encryption.
    instanceId string
    The id of the postgresql Instance.
    isValid boolean
    Whether the SSL certificate is valid.
    sslEnable boolean
    Whether to enable SSL.
    sslExpireTime string
    The expiration time of the SSL certificate. The format is: yyyy-MM-ddTHH:mm:ss(UTC time).
    tlsVersions string[]
    The supported TLS versions.
    addresses Sequence[str]
    The protected addresses.
    certificates Sequence[int]
    Raw byte stream array of certificate zip.
    force_encryption bool
    Whether to force encryption.
    instance_id str
    The id of the postgresql Instance.
    is_valid bool
    Whether the SSL certificate is valid.
    ssl_enable bool
    Whether to enable SSL.
    ssl_expire_time str
    The expiration time of the SSL certificate. The format is: yyyy-MM-ddTHH:mm:ss(UTC time).
    tls_versions Sequence[str]
    The supported TLS versions.
    addresses List<String>
    The protected addresses.
    certificates List<Number>
    Raw byte stream array of certificate zip.
    forceEncryption Boolean
    Whether to force encryption.
    instanceId String
    The id of the postgresql Instance.
    isValid Boolean
    Whether the SSL certificate is valid.
    sslEnable Boolean
    Whether to enable SSL.
    sslExpireTime String
    The expiration time of the SSL certificate. The format is: yyyy-MM-ddTHH:mm:ss(UTC time).
    tlsVersions List<String>
    The supported TLS versions.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.43 published on Friday, Jan 16, 2026 by Volcengine
      Meet Neo: Your AI Platform Teammate