1. Packages
  2. Packages
  3. Scaleway
  4. API Docs
  5. edgeservices
  6. getTlsStage
Viewing docs for Scaleway v1.48.0
published on Wednesday, Apr 29, 2026 by pulumiverse
scaleway logo
Viewing docs for Scaleway v1.48.0
published on Wednesday, Apr 29, 2026 by pulumiverse

    Gets information about an Edge Services TLS stage.

    A TLS stage manages TLS/SSL certificates for an Edge Services pipeline, supporting both managed Let’s Encrypt certificates and custom certificates stored in Scaleway Secret Manager.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    // Retrieve an Edge Services TLS stage by its ID
    const byId = scaleway.edgeservices.getTlsStage({
        tlsStageId: "11111111-1111-1111-1111-111111111111",
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    # Retrieve an Edge Services TLS stage by its ID
    by_id = scaleway.edgeservices.get_tls_stage(tls_stage_id="11111111-1111-1111-1111-111111111111")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/edgeservices"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Retrieve an Edge Services TLS stage by its ID
    		_, err := edgeservices.LookupTlsStage(ctx, &edgeservices.LookupTlsStageArgs{
    			TlsStageId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        // Retrieve an Edge Services TLS stage by its ID
        var byId = Scaleway.Edgeservices.GetTlsStage.Invoke(new()
        {
            TlsStageId = "11111111-1111-1111-1111-111111111111",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.edgeservices.EdgeservicesFunctions;
    import com.pulumi.scaleway.edgeservices.inputs.GetTlsStageArgs;
    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) {
            // Retrieve an Edge Services TLS stage by its ID
            final var byId = EdgeservicesFunctions.getTlsStage(GetTlsStageArgs.builder()
                .tlsStageId("11111111-1111-1111-1111-111111111111")
                .build());
    
        }
    }
    
    variables:
      # Retrieve an Edge Services TLS stage by its ID
      byId:
        fn::invoke:
          function: scaleway:edgeservices:getTlsStage
          arguments:
            tlsStageId: 11111111-1111-1111-1111-111111111111
    
    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    // Retrieve an Edge Services TLS stage by pipeline ID
    const byPipeline = scaleway.edgeservices.getTlsStage({
        pipelineId: main.id,
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    # Retrieve an Edge Services TLS stage by pipeline ID
    by_pipeline = scaleway.edgeservices.get_tls_stage(pipeline_id=main["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/edgeservices"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Retrieve an Edge Services TLS stage by pipeline ID
    		_, err := edgeservices.LookupTlsStage(ctx, &edgeservices.LookupTlsStageArgs{
    			PipelineId: pulumi.StringRef(main.Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        // Retrieve an Edge Services TLS stage by pipeline ID
        var byPipeline = Scaleway.Edgeservices.GetTlsStage.Invoke(new()
        {
            PipelineId = main.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.edgeservices.EdgeservicesFunctions;
    import com.pulumi.scaleway.edgeservices.inputs.GetTlsStageArgs;
    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) {
            // Retrieve an Edge Services TLS stage by pipeline ID
            final var byPipeline = EdgeservicesFunctions.getTlsStage(GetTlsStageArgs.builder()
                .pipelineId(main.id())
                .build());
    
        }
    }
    
    variables:
      # Retrieve an Edge Services TLS stage by pipeline ID
      byPipeline:
        fn::invoke:
          function: scaleway:edgeservices:getTlsStage
          arguments:
            pipelineId: ${main.id}
    

    Using getTlsStage

    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 getTlsStage(args: GetTlsStageArgs, opts?: InvokeOptions): Promise<GetTlsStageResult>
    function getTlsStageOutput(args: GetTlsStageOutputArgs, opts?: InvokeOptions): Output<GetTlsStageResult>
    def get_tls_stage(pipeline_id: Optional[str] = None,
                      secret_id: Optional[str] = None,
                      secret_region: Optional[str] = None,
                      tls_stage_id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetTlsStageResult
    def get_tls_stage_output(pipeline_id: Optional[pulumi.Input[str]] = None,
                      secret_id: Optional[pulumi.Input[str]] = None,
                      secret_region: Optional[pulumi.Input[str]] = None,
                      tls_stage_id: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetTlsStageResult]
    func LookupTlsStage(ctx *Context, args *LookupTlsStageArgs, opts ...InvokeOption) (*LookupTlsStageResult, error)
    func LookupTlsStageOutput(ctx *Context, args *LookupTlsStageOutputArgs, opts ...InvokeOption) LookupTlsStageResultOutput

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

    public static class GetTlsStage 
    {
        public static Task<GetTlsStageResult> InvokeAsync(GetTlsStageArgs args, InvokeOptions? opts = null)
        public static Output<GetTlsStageResult> Invoke(GetTlsStageInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTlsStageResult> getTlsStage(GetTlsStageArgs args, InvokeOptions options)
    public static Output<GetTlsStageResult> getTlsStage(GetTlsStageArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scaleway:edgeservices/getTlsStage:getTlsStage
      arguments:
        # arguments dictionary

    The following arguments are supported:

    PipelineId string
    The ID of the pipeline.
    SecretId string
    Secret ID to filter for.
    SecretRegion string
    Secret region to filter for.
    TlsStageId string

    The ID of the TLS stage. Conflicts with all filter arguments below.

    The following filter arguments are supported (cannot be used with tlsStageId):

    PipelineId string
    The ID of the pipeline.
    SecretId string
    Secret ID to filter for.
    SecretRegion string
    Secret region to filter for.
    TlsStageId string

    The ID of the TLS stage. Conflicts with all filter arguments below.

    The following filter arguments are supported (cannot be used with tlsStageId):

    pipelineId String
    The ID of the pipeline.
    secretId String
    Secret ID to filter for.
    secretRegion String
    Secret region to filter for.
    tlsStageId String

    The ID of the TLS stage. Conflicts with all filter arguments below.

    The following filter arguments are supported (cannot be used with tlsStageId):

    pipelineId string
    The ID of the pipeline.
    secretId string
    Secret ID to filter for.
    secretRegion string
    Secret region to filter for.
    tlsStageId string

    The ID of the TLS stage. Conflicts with all filter arguments below.

    The following filter arguments are supported (cannot be used with tlsStageId):

    pipeline_id str
    The ID of the pipeline.
    secret_id str
    Secret ID to filter for.
    secret_region str
    Secret region to filter for.
    tls_stage_id str

    The ID of the TLS stage. Conflicts with all filter arguments below.

    The following filter arguments are supported (cannot be used with tlsStageId):

    pipelineId String
    The ID of the pipeline.
    secretId String
    Secret ID to filter for.
    secretRegion String
    Secret region to filter for.
    tlsStageId String

    The ID of the TLS stage. Conflicts with all filter arguments below.

    The following filter arguments are supported (cannot be used with tlsStageId):

    getTlsStage Result

    The following output properties are available:

    BackendStageId string
    CacheStageId string
    CertificateExpiresAt string
    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    ManagedCertificate bool
    ProjectId string
    RouteStageId string
    Secrets List<Pulumiverse.Scaleway.Edgeservices.Outputs.GetTlsStageSecret>
    UpdatedAt string
    WafStageId string
    PipelineId string
    SecretId string
    SecretRegion string
    TlsStageId string
    BackendStageId string
    CacheStageId string
    CertificateExpiresAt string
    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    ManagedCertificate bool
    ProjectId string
    RouteStageId string
    Secrets []GetTlsStageSecret
    UpdatedAt string
    WafStageId string
    PipelineId string
    SecretId string
    SecretRegion string
    TlsStageId string
    backendStageId String
    cacheStageId String
    certificateExpiresAt String
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    managedCertificate Boolean
    projectId String
    routeStageId String
    secrets List<GetTlsStageSecret>
    updatedAt String
    wafStageId String
    pipelineId String
    secretId String
    secretRegion String
    tlsStageId String
    backendStageId string
    cacheStageId string
    certificateExpiresAt string
    createdAt string
    id string
    The provider-assigned unique ID for this managed resource.
    managedCertificate boolean
    projectId string
    routeStageId string
    secrets GetTlsStageSecret[]
    updatedAt string
    wafStageId string
    pipelineId string
    secretId string
    secretRegion string
    tlsStageId string
    backendStageId String
    cacheStageId String
    certificateExpiresAt String
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    managedCertificate Boolean
    projectId String
    routeStageId String
    secrets List<Property Map>
    updatedAt String
    wafStageId String
    pipelineId String
    secretId String
    secretRegion String
    tlsStageId String

    Supporting Types

    GetTlsStageSecret

    Region string
    The region you want to attach the resource to
    SecretId string
    Secret ID to filter for.
    Region string
    The region you want to attach the resource to
    SecretId string
    Secret ID to filter for.
    region String
    The region you want to attach the resource to
    secretId String
    Secret ID to filter for.
    region string
    The region you want to attach the resource to
    secretId string
    Secret ID to filter for.
    region str
    The region you want to attach the resource to
    secret_id str
    Secret ID to filter for.
    region String
    The region you want to attach the resource to
    secretId String
    Secret ID to filter for.

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Viewing docs for Scaleway v1.48.0
    published on Wednesday, Apr 29, 2026 by pulumiverse
      Try Pulumi Cloud free. Your team will thank you.