1. Packages
  2. Scaleway
  3. API Docs
  4. iam
  5. Saml
Viewing docs for Scaleway v1.47.0
published on Friday, Apr 17, 2026 by pulumiverse
scaleway logo
Viewing docs for Scaleway v1.47.0
published on Friday, Apr 17, 2026 by pulumiverse

    Manages SAML activation for an organization. SAML (Security Assertion Markup Language) is an open standard for exchanging authentication and authorization data between parties, specifically between an identity provider and a service provider. This resource allows you to enable and disable SAML-based single sign-on for your Scaleway organization.

    For configuring SAML parameters (entityId and singleSignOnUrl), use the scalewayIamUpdateSamlConfiguration action.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    //## Enable IAM SAML for an organization
    const main = new scaleway.iam.Saml("main", {organizationId: "11111111-1111-1111-1111-111111111111"});
    
    import pulumi
    import pulumiverse_scaleway as scaleway
    
    ### Enable IAM SAML for an organization
    main = scaleway.iam.Saml("main", 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 {
    		// ## Enable IAM SAML for an organization
    		_, err := iam.NewSaml(ctx, "main", &iam.SamlArgs{
    			OrganizationId: pulumi.String("11111111-1111-1111-1111-111111111111"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        //## Enable IAM SAML for an organization
        var main = new Scaleway.Iam.Saml("main", new()
        {
            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.Saml;
    import com.pulumi.scaleway.iam.SamlArgs;
    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) {
            //## Enable IAM SAML for an organization
            var main = new Saml("main", SamlArgs.builder()
                .organizationId("11111111-1111-1111-1111-111111111111")
                .build());
    
        }
    }
    
    resources:
      ### Enable IAM SAML for an organization
      main:
        type: scaleway:iam:Saml
        properties:
          organizationId: 11111111-1111-1111-1111-111111111111
    

    Create Saml Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Saml(name: string, args?: SamlArgs, opts?: CustomResourceOptions);
    @overload
    def Saml(resource_name: str,
             args: Optional[SamlArgs] = None,
             opts: Optional[ResourceOptions] = None)
    
    @overload
    def Saml(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             organization_id: Optional[str] = None)
    func NewSaml(ctx *Context, name string, args *SamlArgs, opts ...ResourceOption) (*Saml, error)
    public Saml(string name, SamlArgs? args = null, CustomResourceOptions? opts = null)
    public Saml(String name, SamlArgs args)
    public Saml(String name, SamlArgs args, CustomResourceOptions options)
    
    type: scaleway:iam:Saml
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SamlArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SamlArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SamlArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SamlArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SamlArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var samlResource = new Scaleway.Iam.Saml("samlResource", new()
    {
        OrganizationId = "string",
    });
    
    example, err := iam.NewSaml(ctx, "samlResource", &iam.SamlArgs{
    	OrganizationId: pulumi.String("string"),
    })
    
    var samlResource = new Saml("samlResource", SamlArgs.builder()
        .organizationId("string")
        .build());
    
    saml_resource = scaleway.iam.Saml("samlResource", organization_id="string")
    
    const samlResource = new scaleway.iam.Saml("samlResource", {organizationId: "string"});
    
    type: scaleway:iam:Saml
    properties:
        organizationId: string
    

    Saml Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Saml resource accepts the following input properties:

    OrganizationId string
    The organization ID. If not provided, the default organization ID will be used.
    OrganizationId string
    The organization ID. If not provided, the default organization ID will be used.
    organizationId String
    The organization ID. If not provided, the default organization ID will be used.
    organizationId string
    The organization ID. If not provided, the default organization ID will be used.
    organization_id str
    The organization ID. If not provided, the default organization ID will be used.
    organizationId String
    The organization ID. If not provided, the default organization ID will be used.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Saml resource produces the following output properties:

    EntityId string
    (Computed) The entity ID of the Service Provider.
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceProvider Pulumiverse.Scaleway.Iam.Outputs.SamlServiceProvider
    (Computed) The Service Provider information. It contains:
    SingleSignOnUrl string
    (Computed) The single sign-on URL of the SAML Identity Provider.
    Status string
    (Computed) The status of the SAML configuration.
    EntityId string
    (Computed) The entity ID of the Service Provider.
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceProvider SamlServiceProvider
    (Computed) The Service Provider information. It contains:
    SingleSignOnUrl string
    (Computed) The single sign-on URL of the SAML Identity Provider.
    Status string
    (Computed) The status of the SAML configuration.
    entityId String
    (Computed) The entity ID of the Service Provider.
    id String
    The provider-assigned unique ID for this managed resource.
    serviceProvider SamlServiceProvider
    (Computed) The Service Provider information. It contains:
    singleSignOnUrl String
    (Computed) The single sign-on URL of the SAML Identity Provider.
    status String
    (Computed) The status of the SAML configuration.
    entityId string
    (Computed) The entity ID of the Service Provider.
    id string
    The provider-assigned unique ID for this managed resource.
    serviceProvider SamlServiceProvider
    (Computed) The Service Provider information. It contains:
    singleSignOnUrl string
    (Computed) The single sign-on URL of the SAML Identity Provider.
    status string
    (Computed) The status of the SAML configuration.
    entity_id str
    (Computed) The entity ID of the Service Provider.
    id str
    The provider-assigned unique ID for this managed resource.
    service_provider SamlServiceProvider
    (Computed) The Service Provider information. It contains:
    single_sign_on_url str
    (Computed) The single sign-on URL of the SAML Identity Provider.
    status str
    (Computed) The status of the SAML configuration.
    entityId String
    (Computed) The entity ID of the Service Provider.
    id String
    The provider-assigned unique ID for this managed resource.
    serviceProvider Property Map
    (Computed) The Service Provider information. It contains:
    singleSignOnUrl String
    (Computed) The single sign-on URL of the SAML Identity Provider.
    status String
    (Computed) The status of the SAML configuration.

    Look up Existing Saml Resource

    Get an existing Saml resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SamlState, opts?: CustomResourceOptions): Saml
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            entity_id: Optional[str] = None,
            organization_id: Optional[str] = None,
            service_provider: Optional[SamlServiceProviderArgs] = None,
            single_sign_on_url: Optional[str] = None,
            status: Optional[str] = None) -> Saml
    func GetSaml(ctx *Context, name string, id IDInput, state *SamlState, opts ...ResourceOption) (*Saml, error)
    public static Saml Get(string name, Input<string> id, SamlState? state, CustomResourceOptions? opts = null)
    public static Saml get(String name, Output<String> id, SamlState state, CustomResourceOptions options)
    resources:  _:    type: scaleway:iam:Saml    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    EntityId string
    (Computed) The entity ID of the Service Provider.
    OrganizationId string
    The organization ID. If not provided, the default organization ID will be used.
    ServiceProvider Pulumiverse.Scaleway.Iam.Inputs.SamlServiceProvider
    (Computed) The Service Provider information. It contains:
    SingleSignOnUrl string
    (Computed) The single sign-on URL of the SAML Identity Provider.
    Status string
    (Computed) The status of the SAML configuration.
    EntityId string
    (Computed) The entity ID of the Service Provider.
    OrganizationId string
    The organization ID. If not provided, the default organization ID will be used.
    ServiceProvider SamlServiceProviderArgs
    (Computed) The Service Provider information. It contains:
    SingleSignOnUrl string
    (Computed) The single sign-on URL of the SAML Identity Provider.
    Status string
    (Computed) The status of the SAML configuration.
    entityId String
    (Computed) The entity ID of the Service Provider.
    organizationId String
    The organization ID. If not provided, the default organization ID will be used.
    serviceProvider SamlServiceProvider
    (Computed) The Service Provider information. It contains:
    singleSignOnUrl String
    (Computed) The single sign-on URL of the SAML Identity Provider.
    status String
    (Computed) The status of the SAML configuration.
    entityId string
    (Computed) The entity ID of the Service Provider.
    organizationId string
    The organization ID. If not provided, the default organization ID will be used.
    serviceProvider SamlServiceProvider
    (Computed) The Service Provider information. It contains:
    singleSignOnUrl string
    (Computed) The single sign-on URL of the SAML Identity Provider.
    status string
    (Computed) The status of the SAML configuration.
    entity_id str
    (Computed) The entity ID of the Service Provider.
    organization_id str
    The organization ID. If not provided, the default organization ID will be used.
    service_provider SamlServiceProviderArgs
    (Computed) The Service Provider information. It contains:
    single_sign_on_url str
    (Computed) The single sign-on URL of the SAML Identity Provider.
    status str
    (Computed) The status of the SAML configuration.
    entityId String
    (Computed) The entity ID of the Service Provider.
    organizationId String
    The organization ID. If not provided, the default organization ID will be used.
    serviceProvider Property Map
    (Computed) The Service Provider information. It contains:
    singleSignOnUrl String
    (Computed) The single sign-on URL of the SAML Identity Provider.
    status String
    (Computed) The status of the SAML configuration.

    Supporting Types

    SamlServiceProvider, SamlServiceProviderArgs

    AssertionConsumerServiceUrl string
    (Computed) The assertion consumer service URL of the Service Provider.
    EntityId string
    (Computed) The entity ID of the Service Provider.
    AssertionConsumerServiceUrl string
    (Computed) The assertion consumer service URL of the Service Provider.
    EntityId string
    (Computed) The entity ID of the Service Provider.
    assertionConsumerServiceUrl String
    (Computed) The assertion consumer service URL of the Service Provider.
    entityId String
    (Computed) The entity ID of the Service Provider.
    assertionConsumerServiceUrl string
    (Computed) The assertion consumer service URL of the Service Provider.
    entityId string
    (Computed) The entity ID of the Service Provider.
    assertion_consumer_service_url str
    (Computed) The assertion consumer service URL of the Service Provider.
    entity_id str
    (Computed) The entity ID of the Service Provider.
    assertionConsumerServiceUrl String
    (Computed) The assertion consumer service URL of the Service Provider.
    entityId String
    (Computed) The entity ID of the Service Provider.

    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.47.0
    published on Friday, Apr 17, 2026 by pulumiverse
      Try Pulumi Cloud free. Your team will thank you.