1. Packages
  2. Packages
  3. Scaleway
  4. API Docs
  5. iam
  6. getSamlCertificate
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

    Get information about a SAML certificate. This data source allows you to retrieve information about a specific SAML certificate by its ID.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    //## Get information about a SAML certificate
    const main = scaleway.iam.getSamlCertificate({
        certificateId: "22222222-2222-2222-2222-222222222222",
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    ### Get information about a SAML certificate
    main = scaleway.iam.get_saml_certificate(certificate_id="22222222-2222-2222-2222-222222222222")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/iam"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// ## Get information about a SAML certificate
    		_, err := iam.LookupSamlCertificate(ctx, &iam.LookupSamlCertificateArgs{
    			CertificateId: "22222222-2222-2222-2222-222222222222",
    		}, 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(() => 
    {
        //## Get information about a SAML certificate
        var main = Scaleway.Iam.GetSamlCertificate.Invoke(new()
        {
            CertificateId = "22222222-2222-2222-2222-222222222222",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.iam.IamFunctions;
    import com.pulumi.scaleway.iam.inputs.GetSamlCertificateArgs;
    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) {
            //## Get information about a SAML certificate
            final var main = IamFunctions.getSamlCertificate(GetSamlCertificateArgs.builder()
                .certificateId("22222222-2222-2222-2222-222222222222")
                .build());
    
        }
    }
    
    variables:
      ### Get information about a SAML certificate
      main:
        fn::invoke:
          function: scaleway:iam:getSamlCertificate
          arguments:
            certificateId: 22222222-2222-2222-2222-222222222222
    

    Using getSamlCertificate

    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 getSamlCertificate(args: GetSamlCertificateArgs, opts?: InvokeOptions): Promise<GetSamlCertificateResult>
    function getSamlCertificateOutput(args: GetSamlCertificateOutputArgs, opts?: InvokeOptions): Output<GetSamlCertificateResult>
    def get_saml_certificate(certificate_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetSamlCertificateResult
    def get_saml_certificate_output(certificate_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetSamlCertificateResult]
    func LookupSamlCertificate(ctx *Context, args *LookupSamlCertificateArgs, opts ...InvokeOption) (*LookupSamlCertificateResult, error)
    func LookupSamlCertificateOutput(ctx *Context, args *LookupSamlCertificateOutputArgs, opts ...InvokeOption) LookupSamlCertificateResultOutput

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

    public static class GetSamlCertificate 
    {
        public static Task<GetSamlCertificateResult> InvokeAsync(GetSamlCertificateArgs args, InvokeOptions? opts = null)
        public static Output<GetSamlCertificateResult> Invoke(GetSamlCertificateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSamlCertificateResult> getSamlCertificate(GetSamlCertificateArgs args, InvokeOptions options)
    public static Output<GetSamlCertificateResult> getSamlCertificate(GetSamlCertificateArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scaleway:iam/getSamlCertificate:getSamlCertificate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CertificateId string
    The ID of the SAML certificate
    CertificateId string
    The ID of the SAML certificate
    certificateId String
    The ID of the SAML certificate
    certificateId string
    The ID of the SAML certificate
    certificate_id str
    The ID of the SAML certificate
    certificateId String
    The ID of the SAML certificate

    getSamlCertificate Result

    The following output properties are available:

    CertificateId string
    The ID of the SAML certificate
    Content string
    The content of the SAML certificate
    ExpiresAt string
    The expiration date and time of the SAML certificate
    Id string
    The provider-assigned unique ID for this managed resource.
    Origin string
    The origin of the SAML certificate. Possible values are: scaleway, identityProvider.
    Type string
    The type of the SAML certificate. Possible values are: signing, encryption.
    CertificateId string
    The ID of the SAML certificate
    Content string
    The content of the SAML certificate
    ExpiresAt string
    The expiration date and time of the SAML certificate
    Id string
    The provider-assigned unique ID for this managed resource.
    Origin string
    The origin of the SAML certificate. Possible values are: scaleway, identityProvider.
    Type string
    The type of the SAML certificate. Possible values are: signing, encryption.
    certificateId String
    The ID of the SAML certificate
    content String
    The content of the SAML certificate
    expiresAt String
    The expiration date and time of the SAML certificate
    id String
    The provider-assigned unique ID for this managed resource.
    origin String
    The origin of the SAML certificate. Possible values are: scaleway, identityProvider.
    type String
    The type of the SAML certificate. Possible values are: signing, encryption.
    certificateId string
    The ID of the SAML certificate
    content string
    The content of the SAML certificate
    expiresAt string
    The expiration date and time of the SAML certificate
    id string
    The provider-assigned unique ID for this managed resource.
    origin string
    The origin of the SAML certificate. Possible values are: scaleway, identityProvider.
    type string
    The type of the SAML certificate. Possible values are: signing, encryption.
    certificate_id str
    The ID of the SAML certificate
    content str
    The content of the SAML certificate
    expires_at str
    The expiration date and time of the SAML certificate
    id str
    The provider-assigned unique ID for this managed resource.
    origin str
    The origin of the SAML certificate. Possible values are: scaleway, identityProvider.
    type str
    The type of the SAML certificate. Possible values are: signing, encryption.
    certificateId String
    The ID of the SAML certificate
    content String
    The content of the SAML certificate
    expiresAt String
    The expiration date and time of the SAML certificate
    id String
    The provider-assigned unique ID for this managed resource.
    origin String
    The origin of the SAML certificate. Possible values are: scaleway, identityProvider.
    type String
    The type of the SAML certificate. Possible values are: signing, encryption.

    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.