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

alicloud.cloudsso.getScimServerCredentials

Explore with Pulumi AI

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

    This data source provides the Cloud Sso Scim Server Credentials of the current Alibaba Cloud user.

    NOTE: Available in v1.138.0+.

    NOTE: Cloud SSO Only Support cn-shanghai And us-west-1 Region

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const ids = alicloud.cloudsso.getScimServerCredentials({
        directoryId: "example_value",
        ids: [
            "example_value-1",
            "example_value-2",
        ],
    });
    export const cloudSsoScimServerCredentialId1 = ids.then(ids => ids.credentials?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    ids = alicloud.cloudsso.get_scim_server_credentials(directory_id="example_value",
        ids=[
            "example_value-1",
            "example_value-2",
        ])
    pulumi.export("cloudSsoScimServerCredentialId1", ids.credentials[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cloudsso"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		ids, err := cloudsso.GetScimServerCredentials(ctx, &cloudsso.GetScimServerCredentialsArgs{
    			DirectoryId: "example_value",
    			Ids: []string{
    				"example_value-1",
    				"example_value-2",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("cloudSsoScimServerCredentialId1", ids.Credentials[0].Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var ids = AliCloud.CloudSso.GetScimServerCredentials.Invoke(new()
        {
            DirectoryId = "example_value",
            Ids = new[]
            {
                "example_value-1",
                "example_value-2",
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["cloudSsoScimServerCredentialId1"] = ids.Apply(getScimServerCredentialsResult => getScimServerCredentialsResult.Credentials[0]?.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
    import com.pulumi.alicloud.cloudsso.inputs.GetScimServerCredentialsArgs;
    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 ids = CloudssoFunctions.getScimServerCredentials(GetScimServerCredentialsArgs.builder()
                .directoryId("example_value")
                .ids(            
                    "example_value-1",
                    "example_value-2")
                .build());
    
            ctx.export("cloudSsoScimServerCredentialId1", ids.applyValue(getScimServerCredentialsResult -> getScimServerCredentialsResult.credentials()[0].id()));
        }
    }
    
    variables:
      ids:
        fn::invoke:
          Function: alicloud:cloudsso:getScimServerCredentials
          Arguments:
            directoryId: example_value
            ids:
              - example_value-1
              - example_value-2
    outputs:
      cloudSsoScimServerCredentialId1: ${ids.credentials[0].id}
    

    Using getScimServerCredentials

    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 getScimServerCredentials(args: GetScimServerCredentialsArgs, opts?: InvokeOptions): Promise<GetScimServerCredentialsResult>
    function getScimServerCredentialsOutput(args: GetScimServerCredentialsOutputArgs, opts?: InvokeOptions): Output<GetScimServerCredentialsResult>
    def get_scim_server_credentials(directory_id: Optional[str] = None,
                                    ids: Optional[Sequence[str]] = None,
                                    output_file: Optional[str] = None,
                                    status: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetScimServerCredentialsResult
    def get_scim_server_credentials_output(directory_id: Optional[pulumi.Input[str]] = None,
                                    ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                    output_file: Optional[pulumi.Input[str]] = None,
                                    status: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetScimServerCredentialsResult]
    func GetScimServerCredentials(ctx *Context, args *GetScimServerCredentialsArgs, opts ...InvokeOption) (*GetScimServerCredentialsResult, error)
    func GetScimServerCredentialsOutput(ctx *Context, args *GetScimServerCredentialsOutputArgs, opts ...InvokeOption) GetScimServerCredentialsResultOutput

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

    public static class GetScimServerCredentials 
    {
        public static Task<GetScimServerCredentialsResult> InvokeAsync(GetScimServerCredentialsArgs args, InvokeOptions? opts = null)
        public static Output<GetScimServerCredentialsResult> Invoke(GetScimServerCredentialsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetScimServerCredentialsResult> getScimServerCredentials(GetScimServerCredentialsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:cloudsso/getScimServerCredentials:getScimServerCredentials
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DirectoryId string
    The ID of the Directory.
    Ids List<string>
    A list of SCIM Server Credential IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The Status of the resource. Valid values: Disabled, Enabled.
    DirectoryId string
    The ID of the Directory.
    Ids []string
    A list of SCIM Server Credential IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The Status of the resource. Valid values: Disabled, Enabled.
    directoryId String
    The ID of the Directory.
    ids List<String>
    A list of SCIM Server Credential IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The Status of the resource. Valid values: Disabled, Enabled.
    directoryId string
    The ID of the Directory.
    ids string[]
    A list of SCIM Server Credential IDs.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    status string
    The Status of the resource. Valid values: Disabled, Enabled.
    directory_id str
    The ID of the Directory.
    ids Sequence[str]
    A list of SCIM Server Credential IDs.
    output_file str
    File name where to save data source results (after running pulumi preview).
    status str
    The Status of the resource. Valid values: Disabled, Enabled.
    directoryId String
    The ID of the Directory.
    ids List<String>
    A list of SCIM Server Credential IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The Status of the resource. Valid values: Disabled, Enabled.

    getScimServerCredentials Result

    The following output properties are available:

    Credentials List<Pulumi.AliCloud.CloudSso.Outputs.GetScimServerCredentialsCredential>
    DirectoryId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    OutputFile string
    Status string
    Credentials []GetScimServerCredentialsCredential
    DirectoryId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    OutputFile string
    Status string
    credentials List<GetScimServerCredentialsCredential>
    directoryId String
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    outputFile String
    status String
    credentials GetScimServerCredentialsCredential[]
    directoryId string
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    outputFile string
    status string
    credentials Sequence[GetScimServerCredentialsCredential]
    directory_id str
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    output_file str
    status str
    credentials List<Property Map>
    directoryId String
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    outputFile String
    status String

    Supporting Types

    GetScimServerCredentialsCredential

    CreateTime string
    The CreateTime of the resource.
    CredentialId string
    The CredentialId of the resource.
    CredentialSecret string
    The CredentialSecret of the resource.
    CredentialType string
    The CredentialType of the resource.
    DirectoryId string
    The ID of the Directory.
    ExpireTime string
    The ExpireTime of the resource.
    Id string
    The ID of the SCIM Server Credential.
    Status string
    The Status of the resource. Valid values: Disabled, Enabled.
    CreateTime string
    The CreateTime of the resource.
    CredentialId string
    The CredentialId of the resource.
    CredentialSecret string
    The CredentialSecret of the resource.
    CredentialType string
    The CredentialType of the resource.
    DirectoryId string
    The ID of the Directory.
    ExpireTime string
    The ExpireTime of the resource.
    Id string
    The ID of the SCIM Server Credential.
    Status string
    The Status of the resource. Valid values: Disabled, Enabled.
    createTime String
    The CreateTime of the resource.
    credentialId String
    The CredentialId of the resource.
    credentialSecret String
    The CredentialSecret of the resource.
    credentialType String
    The CredentialType of the resource.
    directoryId String
    The ID of the Directory.
    expireTime String
    The ExpireTime of the resource.
    id String
    The ID of the SCIM Server Credential.
    status String
    The Status of the resource. Valid values: Disabled, Enabled.
    createTime string
    The CreateTime of the resource.
    credentialId string
    The CredentialId of the resource.
    credentialSecret string
    The CredentialSecret of the resource.
    credentialType string
    The CredentialType of the resource.
    directoryId string
    The ID of the Directory.
    expireTime string
    The ExpireTime of the resource.
    id string
    The ID of the SCIM Server Credential.
    status string
    The Status of the resource. Valid values: Disabled, Enabled.
    create_time str
    The CreateTime of the resource.
    credential_id str
    The CredentialId of the resource.
    credential_secret str
    The CredentialSecret of the resource.
    credential_type str
    The CredentialType of the resource.
    directory_id str
    The ID of the Directory.
    expire_time str
    The ExpireTime of the resource.
    id str
    The ID of the SCIM Server Credential.
    status str
    The Status of the resource. Valid values: Disabled, Enabled.
    createTime String
    The CreateTime of the resource.
    credentialId String
    The CredentialId of the resource.
    credentialSecret String
    The CredentialSecret of the resource.
    credentialType String
    The CredentialType of the resource.
    directoryId String
    The ID of the Directory.
    expireTime String
    The ExpireTime of the resource.
    id String
    The ID of the SCIM Server Credential.
    status String
    The Status of the resource. Valid values: Disabled, Enabled.

    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