1. Packages
  2. Packages
  3. Scaleway
  4. API Docs
  5. iam
  6. getScimToken
Viewing docs for Scaleway v1.53.0
published on Friday, Jul 17, 2026 by pulumiverse
scaleway logo
Viewing docs for Scaleway v1.53.0
published on Friday, Jul 17, 2026 by pulumiverse

    Get information about a SCIM token.

    SCIM (System for Cross-domain Identity Management) tokens are used to authenticate API requests to SCIM endpoints for user provisioning and management.

    This data source allows you to retrieve information about an existing SCIM token, including its creation and expiration dates. Note that the bearer token is only available at creation time and cannot be retrieved through this data source.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    //## Get information about a SCIM token
    // First, enable SCIM for your organization
    const mainScim = new scaleway.iam.Scim("main", {organizationId: "11111111-1111-1111-1111-111111111111"});
    // Create a SCIM token (or use an existing one)
    const mainScimToken = new scaleway.iam.ScimToken("main", {
        scimId: mainScim.id,
        organizationId: "11111111-1111-1111-1111-111111111111",
    });
    // Get information about the SCIM token
    const main = scaleway.iam.getScimTokenOutput({
        scimId: mainScim.id,
        tokenId: mainScimToken.id,
        organizationId: "11111111-1111-1111-1111-111111111111",
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    import pulumiverse_scaleway as scaleway
    
    ### Get information about a SCIM token
    # First, enable SCIM for your organization
    main_scim = scaleway.iam.Scim("main", organization_id="11111111-1111-1111-1111-111111111111")
    # Create a SCIM token (or use an existing one)
    main_scim_token = scaleway.iam.ScimToken("main",
        scim_id=main_scim.id,
        organization_id="11111111-1111-1111-1111-111111111111")
    # Get information about the SCIM token
    main = scaleway.iam.get_scim_token_output(scim_id=main_scim.id,
        token_id=main_scim_token.id,
        organization_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/iam"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// ## Get information about a SCIM token
    		// First, enable SCIM for your organization
    		mainScim, err := iam.NewScim(ctx, "main", &iam.ScimArgs{
    			OrganizationId: pulumi.String("11111111-1111-1111-1111-111111111111"),
    		})
    		if err != nil {
    			return err
    		}
    		// Create a SCIM token (or use an existing one)
    		mainScimToken, err := iam.NewScimToken(ctx, "main", &iam.ScimTokenArgs{
    			ScimId:         mainScim.ID(),
    			OrganizationId: pulumi.String("11111111-1111-1111-1111-111111111111"),
    		})
    		if err != nil {
    			return err
    		}
    		// Get information about the SCIM token
    		_ = iam.LookupScimTokenOutput(ctx, iam.GetScimTokenOutputArgs{
    			ScimId:         mainScim.ID(),
    			TokenId:        mainScimToken.ID(),
    			OrganizationId: pulumi.String("11111111-1111-1111-1111-111111111111"),
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        //## Get information about a SCIM token
        // First, enable SCIM for your organization
        var mainScim = new Scaleway.Iam.Scim("main", new()
        {
            OrganizationId = "11111111-1111-1111-1111-111111111111",
        });
    
        // Create a SCIM token (or use an existing one)
        var mainScimToken = new Scaleway.Iam.ScimToken("main", new()
        {
            ScimId = mainScim.Id,
            OrganizationId = "11111111-1111-1111-1111-111111111111",
        });
    
        // Get information about the SCIM token
        var main = Scaleway.Iam.GetScimToken.Invoke(new()
        {
            ScimId = mainScim.Id,
            TokenId = mainScimToken.Id,
            OrganizationId = "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.iam.Scim;
    import com.pulumi.scaleway.iam.ScimArgs;
    import com.pulumi.scaleway.iam.ScimToken;
    import com.pulumi.scaleway.iam.ScimTokenArgs;
    import com.pulumi.scaleway.iam.IamFunctions;
    import com.pulumi.scaleway.iam.inputs.GetScimTokenArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 SCIM token
            // First, enable SCIM for your organization
            var mainScim = new Scim("mainScim", ScimArgs.builder()
                .organizationId("11111111-1111-1111-1111-111111111111")
                .build());
    
            // Create a SCIM token (or use an existing one)
            var mainScimToken = new ScimToken("mainScimToken", ScimTokenArgs.builder()
                .scimId(mainScim.id())
                .organizationId("11111111-1111-1111-1111-111111111111")
                .build());
    
            // Get information about the SCIM token
            final var main = IamFunctions.getScimToken(GetScimTokenArgs.builder()
                .scimId(mainScim.id())
                .tokenId(mainScimToken.id())
                .organizationId("11111111-1111-1111-1111-111111111111")
                .build());
    
        }
    }
    
    resources:
      ### Get information about a SCIM token
    
      # First, enable SCIM for your organization
      mainScim:
        type: scaleway:iam:Scim
        name: main
        properties:
          organizationId: 11111111-1111-1111-1111-111111111111
      # Create a SCIM token (or use an existing one)
      mainScimToken:
        type: scaleway:iam:ScimToken
        name: main
        properties:
          scimId: ${mainScim.id}
          organizationId: 11111111-1111-1111-1111-111111111111
    variables:
      # Get information about the SCIM token
      main:
        fn::invoke:
          function: scaleway:iam:getScimToken
          arguments:
            scimId: ${mainScim.id}
            tokenId: ${mainScimToken.id}
            organizationId: 11111111-1111-1111-1111-111111111111
    
    Example coming soon!
    

    Using getScimToken

    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 getScimToken(args: GetScimTokenArgs, opts?: InvokeOptions): Promise<GetScimTokenResult>
    function getScimTokenOutput(args: GetScimTokenOutputArgs, opts?: InvokeOptions): Output<GetScimTokenResult>
    def get_scim_token(organization_id: Optional[str] = None,
                       scim_id: Optional[str] = None,
                       token_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetScimTokenResult
    def get_scim_token_output(organization_id: pulumi.Input[Optional[str]] = None,
                       scim_id: pulumi.Input[Optional[str]] = None,
                       token_id: pulumi.Input[Optional[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetScimTokenResult]
    func LookupScimToken(ctx *Context, args *LookupScimTokenArgs, opts ...InvokeOption) (*LookupScimTokenResult, error)
    func LookupScimTokenOutput(ctx *Context, args *LookupScimTokenOutputArgs, opts ...InvokeOption) LookupScimTokenResultOutput

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

    public static class GetScimToken 
    {
        public static Task<GetScimTokenResult> InvokeAsync(GetScimTokenArgs args, InvokeOptions? opts = null)
        public static Output<GetScimTokenResult> Invoke(GetScimTokenInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetScimTokenResult> getScimToken(GetScimTokenArgs args, InvokeOptions options)
    public static Output<GetScimTokenResult> getScimToken(GetScimTokenArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scaleway:iam/getScimToken:getScimToken
      arguments:
        # arguments dictionary
    data "scaleway_iam_get_scim_token" "name" {
        # arguments
    }

    The following arguments are supported:

    TokenId string
    The ID of the SCIM token to retrieve.
    OrganizationId string
    The organization ID. If not provided, the default organization configured in the provider is used.
    ScimId string
    The SCIM configuration ID. If not provided, the SCIM configuration for the organization is used.
    TokenId string
    The ID of the SCIM token to retrieve.
    OrganizationId string
    The organization ID. If not provided, the default organization configured in the provider is used.
    ScimId string
    The SCIM configuration ID. If not provided, the SCIM configuration for the organization is used.
    token_id string
    The ID of the SCIM token to retrieve.
    organization_id string
    The organization ID. If not provided, the default organization configured in the provider is used.
    scim_id string
    The SCIM configuration ID. If not provided, the SCIM configuration for the organization is used.
    tokenId String
    The ID of the SCIM token to retrieve.
    organizationId String
    The organization ID. If not provided, the default organization configured in the provider is used.
    scimId String
    The SCIM configuration ID. If not provided, the SCIM configuration for the organization is used.
    tokenId string
    The ID of the SCIM token to retrieve.
    organizationId string
    The organization ID. If not provided, the default organization configured in the provider is used.
    scimId string
    The SCIM configuration ID. If not provided, the SCIM configuration for the organization is used.
    token_id str
    The ID of the SCIM token to retrieve.
    organization_id str
    The organization ID. If not provided, the default organization configured in the provider is used.
    scim_id str
    The SCIM configuration ID. If not provided, the SCIM configuration for the organization is used.
    tokenId String
    The ID of the SCIM token to retrieve.
    organizationId String
    The organization ID. If not provided, the default organization configured in the provider is used.
    scimId String
    The SCIM configuration ID. If not provided, the SCIM configuration for the organization is used.

    getScimToken Result

    The following output properties are available:

    CreatedAt string
    The date and time of SCIM token creation
    ExpiresAt string
    The date and time when the SCIM token expires
    Id string
    The ID of the SCIM token
    OrganizationId string
    The organization ID. If not provided, the default organization configured in the provider is used.
    ScimId string
    The SCIM configuration ID. If not provided, the SCIM configuration for the organization is used.
    TokenId string
    The ID of the SCIM token to retrieve.
    CreatedAt string
    The date and time of SCIM token creation
    ExpiresAt string
    The date and time when the SCIM token expires
    Id string
    The ID of the SCIM token
    OrganizationId string
    The organization ID. If not provided, the default organization configured in the provider is used.
    ScimId string
    The SCIM configuration ID. If not provided, the SCIM configuration for the organization is used.
    TokenId string
    The ID of the SCIM token to retrieve.
    created_at string
    The date and time of SCIM token creation
    expires_at string
    The date and time when the SCIM token expires
    id string
    The ID of the SCIM token
    organization_id string
    The organization ID. If not provided, the default organization configured in the provider is used.
    scim_id string
    The SCIM configuration ID. If not provided, the SCIM configuration for the organization is used.
    token_id string
    The ID of the SCIM token to retrieve.
    createdAt String
    The date and time of SCIM token creation
    expiresAt String
    The date and time when the SCIM token expires
    id String
    The ID of the SCIM token
    organizationId String
    The organization ID. If not provided, the default organization configured in the provider is used.
    scimId String
    The SCIM configuration ID. If not provided, the SCIM configuration for the organization is used.
    tokenId String
    The ID of the SCIM token to retrieve.
    createdAt string
    The date and time of SCIM token creation
    expiresAt string
    The date and time when the SCIM token expires
    id string
    The ID of the SCIM token
    organizationId string
    The organization ID. If not provided, the default organization configured in the provider is used.
    scimId string
    The SCIM configuration ID. If not provided, the SCIM configuration for the organization is used.
    tokenId string
    The ID of the SCIM token to retrieve.
    created_at str
    The date and time of SCIM token creation
    expires_at str
    The date and time when the SCIM token expires
    id str
    The ID of the SCIM token
    organization_id str
    The organization ID. If not provided, the default organization configured in the provider is used.
    scim_id str
    The SCIM configuration ID. If not provided, the SCIM configuration for the organization is used.
    token_id str
    The ID of the SCIM token to retrieve.
    createdAt String
    The date and time of SCIM token creation
    expiresAt String
    The date and time when the SCIM token expires
    id String
    The ID of the SCIM token
    organizationId String
    The organization ID. If not provided, the default organization configured in the provider is used.
    scimId String
    The SCIM configuration ID. If not provided, the SCIM configuration for the organization is used.
    tokenId String
    The ID of the SCIM token to retrieve.

    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.53.0
    published on Friday, Jul 17, 2026 by pulumiverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial