1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cloudsso
  5. getScimServerCredentials
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.cloudsso.getScimServerCredentials

Explore with Pulumi AI

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);
Copy
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)
Copy
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
	})
}
Copy
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),
    };
});
Copy
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()));
    }
}
Copy
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}
Copy

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>
Copy
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]
Copy
func GetScimServerCredentials(ctx *Context, args *GetScimServerCredentialsArgs, opts ...InvokeOption) (*GetScimServerCredentialsResult, error)
func GetScimServerCredentialsOutput(ctx *Context, args *GetScimServerCredentialsOutputArgs, opts ...InvokeOption) GetScimServerCredentialsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetScimServerCredentialsResult> getScimServerCredentials(GetScimServerCredentialsArgs args, InvokeOptions options)
public static Output<GetScimServerCredentialsResult> getScimServerCredentials(GetScimServerCredentialsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:cloudsso/getScimServerCredentials:getScimServerCredentials
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DirectoryId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Directory.
Ids Changes to this property will trigger replacement. List<string>
A list of SCIM Server Credential IDs.
OutputFile string
File name where to save data source results (after running pulumi preview).
Status Changes to this property will trigger replacement. string
The Status of the resource. Valid values: Disabled, Enabled.
DirectoryId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Directory.
Ids Changes to this property will trigger replacement. []string
A list of SCIM Server Credential IDs.
OutputFile string
File name where to save data source results (after running pulumi preview).
Status Changes to this property will trigger replacement. string
The Status of the resource. Valid values: Disabled, Enabled.
directoryId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Directory.
ids Changes to this property will trigger replacement. List<String>
A list of SCIM Server Credential IDs.
outputFile String
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. String
The Status of the resource. Valid values: Disabled, Enabled.
directoryId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Directory.
ids Changes to this property will trigger replacement. string[]
A list of SCIM Server Credential IDs.
outputFile string
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. string
The Status of the resource. Valid values: Disabled, Enabled.
directory_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the Directory.
ids Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. str
The Status of the resource. Valid values: Disabled, Enabled.
directoryId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Directory.
ids Changes to this property will trigger replacement. List<String>
A list of SCIM Server Credential IDs.
outputFile String
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. 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 This property is required. string
The CreateTime of the resource.
CredentialId This property is required. string
The CredentialId of the resource.
CredentialSecret This property is required. string
The CredentialSecret of the resource.
CredentialType This property is required. string
The CredentialType of the resource.
DirectoryId This property is required. string
The ID of the Directory.
ExpireTime This property is required. string
The ExpireTime of the resource.
Id This property is required. string
The ID of the SCIM Server Credential.
Status This property is required. string
The Status of the resource. Valid values: Disabled, Enabled.
CreateTime This property is required. string
The CreateTime of the resource.
CredentialId This property is required. string
The CredentialId of the resource.
CredentialSecret This property is required. string
The CredentialSecret of the resource.
CredentialType This property is required. string
The CredentialType of the resource.
DirectoryId This property is required. string
The ID of the Directory.
ExpireTime This property is required. string
The ExpireTime of the resource.
Id This property is required. string
The ID of the SCIM Server Credential.
Status This property is required. string
The Status of the resource. Valid values: Disabled, Enabled.
createTime This property is required. String
The CreateTime of the resource.
credentialId This property is required. String
The CredentialId of the resource.
credentialSecret This property is required. String
The CredentialSecret of the resource.
credentialType This property is required. String
The CredentialType of the resource.
directoryId This property is required. String
The ID of the Directory.
expireTime This property is required. String
The ExpireTime of the resource.
id This property is required. String
The ID of the SCIM Server Credential.
status This property is required. String
The Status of the resource. Valid values: Disabled, Enabled.
createTime This property is required. string
The CreateTime of the resource.
credentialId This property is required. string
The CredentialId of the resource.
credentialSecret This property is required. string
The CredentialSecret of the resource.
credentialType This property is required. string
The CredentialType of the resource.
directoryId This property is required. string
The ID of the Directory.
expireTime This property is required. string
The ExpireTime of the resource.
id This property is required. string
The ID of the SCIM Server Credential.
status This property is required. string
The Status of the resource. Valid values: Disabled, Enabled.
create_time This property is required. str
The CreateTime of the resource.
credential_id This property is required. str
The CredentialId of the resource.
credential_secret This property is required. str
The CredentialSecret of the resource.
credential_type This property is required. str
The CredentialType of the resource.
directory_id This property is required. str
The ID of the Directory.
expire_time This property is required. str
The ExpireTime of the resource.
id This property is required. str
The ID of the SCIM Server Credential.
status This property is required. str
The Status of the resource. Valid values: Disabled, Enabled.
createTime This property is required. String
The CreateTime of the resource.
credentialId This property is required. String
The CredentialId of the resource.
credentialSecret This property is required. String
The CredentialSecret of the resource.
credentialType This property is required. String
The CredentialType of the resource.
directoryId This property is required. String
The ID of the Directory.
expireTime This property is required. String
The ExpireTime of the resource.
id This property is required. String
The ID of the SCIM Server Credential.
status This property is required. 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.