1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. ram
  5. getSamlProviders
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.ram.getSamlProviders

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    This data source provides the Ram Saml Providers of the current Alibaba Cloud user.

    NOTE: Available since v1.114.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const example = alicloud.ram.getSamlProviders({
        ids: ["samlProviderName"],
        nameRegex: "tf-testAcc",
    });
    export const firstRamSamlProviderId = example.then(example => example.providers?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    example = alicloud.ram.get_saml_providers(ids=["samlProviderName"],
        name_regex="tf-testAcc")
    pulumi.export("firstRamSamlProviderId", example.providers[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ram"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := ram.GetSamlProviders(ctx, &ram.GetSamlProvidersArgs{
    			Ids: []string{
    				"samlProviderName",
    			},
    			NameRegex: pulumi.StringRef("tf-testAcc"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("firstRamSamlProviderId", example.Providers[0].Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = AliCloud.Ram.GetSamlProviders.Invoke(new()
        {
            Ids = new[]
            {
                "samlProviderName",
            },
            NameRegex = "tf-testAcc",
        });
    
        return new Dictionary<string, object?>
        {
            ["firstRamSamlProviderId"] = example.Apply(getSamlProvidersResult => getSamlProvidersResult.Providers[0]?.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.ram.RamFunctions;
    import com.pulumi.alicloud.ram.inputs.GetSamlProvidersArgs;
    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 = RamFunctions.getSamlProviders(GetSamlProvidersArgs.builder()
                .ids("samlProviderName")
                .nameRegex("tf-testAcc")
                .build());
    
            ctx.export("firstRamSamlProviderId", example.applyValue(getSamlProvidersResult -> getSamlProvidersResult.providers()[0].id()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: alicloud:ram:getSamlProviders
          Arguments:
            ids:
              - samlProviderName
            nameRegex: tf-testAcc
    outputs:
      firstRamSamlProviderId: ${example.providers[0].id}
    

    Using getSamlProviders

    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 getSamlProviders(args: GetSamlProvidersArgs, opts?: InvokeOptions): Promise<GetSamlProvidersResult>
    function getSamlProvidersOutput(args: GetSamlProvidersOutputArgs, opts?: InvokeOptions): Output<GetSamlProvidersResult>
    def get_saml_providers(enable_details: Optional[bool] = None,
                           ids: Optional[Sequence[str]] = None,
                           name_regex: Optional[str] = None,
                           output_file: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetSamlProvidersResult
    def get_saml_providers_output(enable_details: 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[GetSamlProvidersResult]
    func GetSamlProviders(ctx *Context, args *GetSamlProvidersArgs, opts ...InvokeOption) (*GetSamlProvidersResult, error)
    func GetSamlProvidersOutput(ctx *Context, args *GetSamlProvidersOutputArgs, opts ...InvokeOption) GetSamlProvidersResultOutput

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

    public static class GetSamlProviders 
    {
        public static Task<GetSamlProvidersResult> InvokeAsync(GetSamlProvidersArgs args, InvokeOptions? opts = null)
        public static Output<GetSamlProvidersResult> Invoke(GetSamlProvidersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSamlProvidersResult> getSamlProviders(GetSamlProvidersArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:ram/getSamlProviders:getSamlProviders
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EnableDetails bool
    Default to false. Set it to true can output more details about resource attributes.
    Ids List<string>
    A list of SAML Provider IDs.
    NameRegex string
    A regex string to filter results by SAML Provider name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    EnableDetails bool
    Default to false. Set it to true can output more details about resource attributes.
    Ids []string
    A list of SAML Provider IDs.
    NameRegex string
    A regex string to filter results by SAML Provider name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    enableDetails Boolean
    Default to false. Set it to true can output more details about resource attributes.
    ids List<String>
    A list of SAML Provider IDs.
    nameRegex String
    A regex string to filter results by SAML Provider name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    enableDetails boolean
    Default to false. Set it to true can output more details about resource attributes.
    ids string[]
    A list of SAML Provider IDs.
    nameRegex string
    A regex string to filter results by SAML Provider name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    enable_details bool
    Default to false. Set it to true can output more details about resource attributes.
    ids Sequence[str]
    A list of SAML Provider IDs.
    name_regex str
    A regex string to filter results by SAML Provider name.
    output_file str
    File name where to save data source results (after running pulumi preview).
    enableDetails Boolean
    Default to false. Set it to true can output more details about resource attributes.
    ids List<String>
    A list of SAML Provider IDs.
    nameRegex String
    A regex string to filter results by SAML Provider name.
    outputFile String
    File name where to save data source results (after running pulumi preview).

    getSamlProviders Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Names List<string>
    A list of SAML Provider names.
    Providers List<Pulumi.AliCloud.Ram.Outputs.GetSamlProvidersProvider>
    A list of Ram Saml Providers. Each element contains the following attributes:
    EnableDetails bool
    NameRegex string
    OutputFile string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Names []string
    A list of SAML Provider names.
    Providers []GetSamlProvidersProvider
    A list of Ram Saml Providers. Each element contains the following attributes:
    EnableDetails bool
    NameRegex string
    OutputFile string
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    names List<String>
    A list of SAML Provider names.
    providers List<GetSamlProvidersProvider>
    A list of Ram Saml Providers. Each element contains the following attributes:
    enableDetails Boolean
    nameRegex String
    outputFile String
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    names string[]
    A list of SAML Provider names.
    providers GetSamlProvidersProvider[]
    A list of Ram Saml Providers. Each element contains the following attributes:
    enableDetails boolean
    nameRegex string
    outputFile string
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    names Sequence[str]
    A list of SAML Provider names.
    providers Sequence[GetSamlProvidersProvider]
    A list of Ram Saml Providers. Each element contains the following attributes:
    enable_details bool
    name_regex str
    output_file str
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    names List<String>
    A list of SAML Provider names.
    providers List<Property Map>
    A list of Ram Saml Providers. Each element contains the following attributes:
    enableDetails Boolean
    nameRegex String
    outputFile String

    Supporting Types

    GetSamlProvidersProvider

    Arn string
    The Alibaba Cloud Resource Name (ARN) of the IdP.
    Description string
    The description of SAML Provider.
    EncodedsamlMetadataDocument string
    The encodedsaml metadata document.
    Id string
    The ID of the SAML Provider.
    SamlProviderName string
    The saml provider name.
    UpdateDate string
    The update time.
    Arn string
    The Alibaba Cloud Resource Name (ARN) of the IdP.
    Description string
    The description of SAML Provider.
    EncodedsamlMetadataDocument string
    The encodedsaml metadata document.
    Id string
    The ID of the SAML Provider.
    SamlProviderName string
    The saml provider name.
    UpdateDate string
    The update time.
    arn String
    The Alibaba Cloud Resource Name (ARN) of the IdP.
    description String
    The description of SAML Provider.
    encodedsamlMetadataDocument String
    The encodedsaml metadata document.
    id String
    The ID of the SAML Provider.
    samlProviderName String
    The saml provider name.
    updateDate String
    The update time.
    arn string
    The Alibaba Cloud Resource Name (ARN) of the IdP.
    description string
    The description of SAML Provider.
    encodedsamlMetadataDocument string
    The encodedsaml metadata document.
    id string
    The ID of the SAML Provider.
    samlProviderName string
    The saml provider name.
    updateDate string
    The update time.
    arn str
    The Alibaba Cloud Resource Name (ARN) of the IdP.
    description str
    The description of SAML Provider.
    encodedsaml_metadata_document str
    The encodedsaml metadata document.
    id str
    The ID of the SAML Provider.
    saml_provider_name str
    The saml provider name.
    update_date str
    The update time.
    arn String
    The Alibaba Cloud Resource Name (ARN) of the IdP.
    description String
    The description of SAML Provider.
    encodedsamlMetadataDocument String
    The encodedsaml metadata document.
    id String
    The ID of the SAML Provider.
    samlProviderName String
    The saml provider name.
    updateDate String
    The update time.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi