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
Andus-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)
public static Output<GetScimServerCredentialsResult> getScimServerCredentials(GetScimServerCredentialsArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:cloudsso/getScimServerCredentials:getScimServerCredentials
arguments:
# arguments dictionary
The following arguments are supported:
- Directory
Id This property is required. Changes to this property will trigger replacement.
- The ID of the Directory.
- Ids
Changes to this property will trigger replacement.
- A list of SCIM Server Credential IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status
Changes to this property will trigger replacement.
- The Status of the resource. Valid values:
Disabled
,Enabled
.
- Directory
Id This property is required. Changes to this property will trigger replacement.
- The ID of the Directory.
- Ids
Changes to this property will trigger replacement.
- A list of SCIM Server Credential IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status
Changes to this property will trigger replacement.
- The Status of the resource. Valid values:
Disabled
,Enabled
.
- directory
Id This property is required. Changes to this property will trigger replacement.
- The ID of the Directory.
- ids
Changes to this property will trigger replacement.
- A list of SCIM Server Credential IDs.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status
Changes to this property will trigger replacement.
- The Status of the resource. Valid values:
Disabled
,Enabled
.
- directory
Id This property is required. Changes to this property will trigger replacement.
- The ID of the Directory.
- ids
Changes to this property will trigger replacement.
- A list of SCIM Server Credential IDs.
- output
File string - File name where to save data source results (after running
pulumi preview
). - status
Changes to this property will trigger replacement.
- The Status of the resource. Valid values:
Disabled
,Enabled
.
- directory_
id This property is required. Changes to this property will trigger replacement.
- The ID of the Directory.
- ids
Changes to this property will trigger replacement.
- 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.
- The Status of the resource. Valid values:
Disabled
,Enabled
.
- directory
Id This property is required. Changes to this property will trigger replacement.
- The ID of the Directory.
- ids
Changes to this property will trigger replacement.
- A list of SCIM Server Credential IDs.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status
Changes to this property will trigger replacement.
- The Status of the resource. Valid values:
Disabled
,Enabled
.
getScimServerCredentials Result
The following output properties are available:
- Credentials
List<Pulumi.
Ali Cloud. Cloud Sso. Outputs. Get Scim Server Credentials Credential> - Directory
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Output
File string - Status string
- Credentials
[]Get
Scim Server Credentials Credential - Directory
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Output
File string - Status string
- credentials
List<Get
Scim Server Credentials Credential> - directory
Id String - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- output
File String - status String
- credentials
Get
Scim Server Credentials Credential[] - directory
Id string - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- output
File string - status string
- credentials
Sequence[Get
Scim Server Credentials Credential] - 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>
- directory
Id String - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- output
File String - status String
Supporting Types
GetScimServerCredentialsCredential
- Create
Time This property is required. string - The CreateTime of the resource.
- Credential
Id This property is required. string - The CredentialId of the resource.
- Credential
Secret This property is required. string - The CredentialSecret of the resource.
- Credential
Type This property is required. string - The CredentialType of the resource.
- Directory
Id This property is required. string - The ID of the Directory.
- Expire
Time 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. string - The CreateTime of the resource.
- Credential
Id This property is required. string - The CredentialId of the resource.
- Credential
Secret This property is required. string - The CredentialSecret of the resource.
- Credential
Type This property is required. string - The CredentialType of the resource.
- Directory
Id This property is required. string - The ID of the Directory.
- Expire
Time 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. String - The CreateTime of the resource.
- credential
Id This property is required. String - The CredentialId of the resource.
- credential
Secret This property is required. String - The CredentialSecret of the resource.
- credential
Type This property is required. String - The CredentialType of the resource.
- directory
Id This property is required. String - The ID of the Directory.
- expire
Time 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. string - The CreateTime of the resource.
- credential
Id This property is required. string - The CredentialId of the resource.
- credential
Secret This property is required. string - The CredentialSecret of the resource.
- credential
Type This property is required. string - The CredentialType of the resource.
- directory
Id This property is required. string - The ID of the Directory.
- expire
Time 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
.
- create
Time This property is required. String - The CreateTime of the resource.
- credential
Id This property is required. String - The CredentialId of the resource.
- credential
Secret This property is required. String - The CredentialSecret of the resource.
- credential
Type This property is required. String - The CredentialType of the resource.
- directory
Id This property is required. String - The ID of the Directory.
- expire
Time 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.