Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:cloudsso/getScimServerCredentials:getScimServerCredentials
arguments:
# arguments dictionary
The following arguments are supported:
- Directory
Id string - The ID of the Directory.
- Ids List<string>
- A list of SCIM Server Credential IDs.
- Output
File 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 string - The ID of the Directory.
- Ids []string
- A list of SCIM Server Credential IDs.
- Output
File 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 String - The ID of the Directory.
- ids List<String>
- A list of SCIM Server Credential IDs.
- output
File 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 string - The ID of the Directory.
- ids string[]
- A list of SCIM Server Credential IDs.
- output
File 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
.
- directory
Id String - The ID of the Directory.
- ids List<String>
- A list of SCIM Server Credential IDs.
- output
File 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.
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 string - The CreateTime of the resource.
- Credential
Id string - The CredentialId of the resource.
- Credential
Secret string - The CredentialSecret of the resource.
- Credential
Type string - The CredentialType of the resource.
- Directory
Id string - The ID of the Directory.
- Expire
Time 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 string - The CreateTime of the resource.
- Credential
Id string - The CredentialId of the resource.
- Credential
Secret string - The CredentialSecret of the resource.
- Credential
Type string - The CredentialType of the resource.
- Directory
Id string - The ID of the Directory.
- Expire
Time 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 String - The CreateTime of the resource.
- credential
Id String - The CredentialId of the resource.
- credential
Secret String - The CredentialSecret of the resource.
- credential
Type String - The CredentialType of the resource.
- directory
Id String - The ID of the Directory.
- expire
Time 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 string - The CreateTime of the resource.
- credential
Id string - The CredentialId of the resource.
- credential
Secret string - The CredentialSecret of the resource.
- credential
Type string - The CredentialType of the resource.
- directory
Id string - The ID of the Directory.
- expire
Time 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
.
- create
Time String - The CreateTime of the resource.
- credential
Id String - The CredentialId of the resource.
- credential
Secret String - The CredentialSecret of the resource.
- credential
Type String - The CredentialType of the resource.
- directory
Id String - The ID of the Directory.
- expire
Time 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.