Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.cloudsso.getAccessConfigurations
Explore with Pulumi AI
This data source provides the Cloud Sso Access Configurations of the current Alibaba Cloud user.
NOTE: Available in v1.140.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.getAccessConfigurations({
directoryId: "example_value",
ids: [
"example_value-1",
"example_value-2",
],
});
export const cloudSsoAccessConfigurationId1 = ids.then(ids => ids.configurations?.[0]?.id);
const nameRegex = alicloud.cloudsso.getAccessConfigurations({
directoryId: "example_value",
nameRegex: "^my-AccessConfiguration",
});
export const cloudSsoAccessConfigurationId2 = nameRegex.then(nameRegex => nameRegex.configurations?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.cloudsso.get_access_configurations(directory_id="example_value",
ids=[
"example_value-1",
"example_value-2",
])
pulumi.export("cloudSsoAccessConfigurationId1", ids.configurations[0].id)
name_regex = alicloud.cloudsso.get_access_configurations(directory_id="example_value",
name_regex="^my-AccessConfiguration")
pulumi.export("cloudSsoAccessConfigurationId2", name_regex.configurations[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.GetAccessConfigurations(ctx, &cloudsso.GetAccessConfigurationsArgs{
DirectoryId: "example_value",
Ids: []string{
"example_value-1",
"example_value-2",
},
}, nil)
if err != nil {
return err
}
ctx.Export("cloudSsoAccessConfigurationId1", ids.Configurations[0].Id)
nameRegex, err := cloudsso.GetAccessConfigurations(ctx, &cloudsso.GetAccessConfigurationsArgs{
DirectoryId: "example_value",
NameRegex: pulumi.StringRef("^my-AccessConfiguration"),
}, nil)
if err != nil {
return err
}
ctx.Export("cloudSsoAccessConfigurationId2", nameRegex.Configurations[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.GetAccessConfigurations.Invoke(new()
{
DirectoryId = "example_value",
Ids = new[]
{
"example_value-1",
"example_value-2",
},
});
var nameRegex = AliCloud.CloudSso.GetAccessConfigurations.Invoke(new()
{
DirectoryId = "example_value",
NameRegex = "^my-AccessConfiguration",
});
return new Dictionary<string, object?>
{
["cloudSsoAccessConfigurationId1"] = ids.Apply(getAccessConfigurationsResult => getAccessConfigurationsResult.Configurations[0]?.Id),
["cloudSsoAccessConfigurationId2"] = nameRegex.Apply(getAccessConfigurationsResult => getAccessConfigurationsResult.Configurations[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.GetAccessConfigurationsArgs;
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.getAccessConfigurations(GetAccessConfigurationsArgs.builder()
.directoryId("example_value")
.ids(
"example_value-1",
"example_value-2")
.build());
ctx.export("cloudSsoAccessConfigurationId1", ids.applyValue(getAccessConfigurationsResult -> getAccessConfigurationsResult.configurations()[0].id()));
final var nameRegex = CloudssoFunctions.getAccessConfigurations(GetAccessConfigurationsArgs.builder()
.directoryId("example_value")
.nameRegex("^my-AccessConfiguration")
.build());
ctx.export("cloudSsoAccessConfigurationId2", nameRegex.applyValue(getAccessConfigurationsResult -> getAccessConfigurationsResult.configurations()[0].id()));
}
}
variables:
ids:
fn::invoke:
Function: alicloud:cloudsso:getAccessConfigurations
Arguments:
directoryId: example_value
ids:
- example_value-1
- example_value-2
nameRegex:
fn::invoke:
Function: alicloud:cloudsso:getAccessConfigurations
Arguments:
directoryId: example_value
nameRegex: ^my-AccessConfiguration
outputs:
cloudSsoAccessConfigurationId1: ${ids.configurations[0].id}
cloudSsoAccessConfigurationId2: ${nameRegex.configurations[0].id}
Using getAccessConfigurations
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 getAccessConfigurations(args: GetAccessConfigurationsArgs, opts?: InvokeOptions): Promise<GetAccessConfigurationsResult>
function getAccessConfigurationsOutput(args: GetAccessConfigurationsOutputArgs, opts?: InvokeOptions): Output<GetAccessConfigurationsResult>
def get_access_configurations(directory_id: Optional[str] = None,
enable_details: Optional[bool] = None,
ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAccessConfigurationsResult
def get_access_configurations_output(directory_id: Optional[pulumi.Input[str]] = None,
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[GetAccessConfigurationsResult]
func GetAccessConfigurations(ctx *Context, args *GetAccessConfigurationsArgs, opts ...InvokeOption) (*GetAccessConfigurationsResult, error)
func GetAccessConfigurationsOutput(ctx *Context, args *GetAccessConfigurationsOutputArgs, opts ...InvokeOption) GetAccessConfigurationsResultOutput
> Note: This function is named GetAccessConfigurations
in the Go SDK.
public static class GetAccessConfigurations
{
public static Task<GetAccessConfigurationsResult> InvokeAsync(GetAccessConfigurationsArgs args, InvokeOptions? opts = null)
public static Output<GetAccessConfigurationsResult> Invoke(GetAccessConfigurationsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAccessConfigurationsResult> getAccessConfigurations(GetAccessConfigurationsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:cloudsso/getAccessConfigurations:getAccessConfigurations
arguments:
# arguments dictionary
The following arguments are supported:
- Directory
Id string - The ID of the Directory.
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids List<string>
- A list of Access Configuration IDs.
- Name
Regex string - A regex string to filter results by Access Configuration name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- Directory
Id string - The ID of the Directory.
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids []string
- A list of Access Configuration IDs.
- Name
Regex string - A regex string to filter results by Access Configuration name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- directory
Id String - The ID of the Directory.
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids List<String>
- A list of Access Configuration IDs.
- name
Regex String - A regex string to filter results by Access Configuration name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
- directory
Id string - The ID of the Directory.
- enable
Details boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids string[]
- A list of Access Configuration IDs.
- name
Regex string - A regex string to filter results by Access Configuration name.
- output
File string - File name where to save data source results (after running
pulumi preview
).
- directory_
id str - The ID of the Directory.
- enable_
details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - ids Sequence[str]
- A list of Access Configuration IDs.
- name_
regex str - A regex string to filter results by Access Configuration name.
- output_
file str - File name where to save data source results (after running
pulumi preview
).
- directory
Id String - The ID of the Directory.
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids List<String>
- A list of Access Configuration IDs.
- name
Regex String - A regex string to filter results by Access Configuration name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
getAccessConfigurations Result
The following output properties are available:
- Configurations
List<Pulumi.
Ali Cloud. Cloud Sso. Outputs. Get Access Configurations Configuration> - Directory
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- Enable
Details bool - Name
Regex string - Output
File string
- Configurations
[]Get
Access Configurations Configuration - Directory
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Enable
Details bool - Name
Regex string - Output
File string
- configurations
List<Get
Access Configurations Configuration> - directory
Id String - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- enable
Details Boolean - name
Regex String - output
File String
- configurations
Get
Access Configurations Configuration[] - directory
Id string - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- enable
Details boolean - name
Regex string - output
File string
- configurations
Sequence[Get
Access Configurations Configuration] - directory_
id str - id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- enable_
details bool - name_
regex str - output_
file str
- configurations List<Property Map>
- directory
Id String - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- enable
Details Boolean - name
Regex String - output
File String
Supporting Types
GetAccessConfigurationsConfiguration
- Access
Configuration stringId - The AccessConfigurationId of the Access Configuration.
- Access
Configuration stringName - The AccessConfigurationName of the Access Configuration.
- Create
Time string - The Created Time of the Directory.
- Description string
- The Description of the Directory.
- Directory
Id string - The ID of the Directory.
- Id string
- The ID of the Access Configuration.
- Permission
Policies List<Pulumi.Ali Cloud. Cloud Sso. Inputs. Get Access Configurations Configuration Permission Policy> - The Policy List.
- Relay
State string - The RelayState of the Access Configuration.
- Session
Duration int - The SessionDuration of the Access Configuration.
- Status
Notifications List<string> - The StatusNotifications of the Access Configuration.
- Access
Configuration stringId - The AccessConfigurationId of the Access Configuration.
- Access
Configuration stringName - The AccessConfigurationName of the Access Configuration.
- Create
Time string - The Created Time of the Directory.
- Description string
- The Description of the Directory.
- Directory
Id string - The ID of the Directory.
- Id string
- The ID of the Access Configuration.
- Permission
Policies []GetAccess Configurations Configuration Permission Policy - The Policy List.
- Relay
State string - The RelayState of the Access Configuration.
- Session
Duration int - The SessionDuration of the Access Configuration.
- Status
Notifications []string - The StatusNotifications of the Access Configuration.
- access
Configuration StringId - The AccessConfigurationId of the Access Configuration.
- access
Configuration StringName - The AccessConfigurationName of the Access Configuration.
- create
Time String - The Created Time of the Directory.
- description String
- The Description of the Directory.
- directory
Id String - The ID of the Directory.
- id String
- The ID of the Access Configuration.
- permission
Policies List<GetAccess Configurations Configuration Permission Policy> - The Policy List.
- relay
State String - The RelayState of the Access Configuration.
- session
Duration Integer - The SessionDuration of the Access Configuration.
- status
Notifications List<String> - The StatusNotifications of the Access Configuration.
- access
Configuration stringId - The AccessConfigurationId of the Access Configuration.
- access
Configuration stringName - The AccessConfigurationName of the Access Configuration.
- create
Time string - The Created Time of the Directory.
- description string
- The Description of the Directory.
- directory
Id string - The ID of the Directory.
- id string
- The ID of the Access Configuration.
- permission
Policies GetAccess Configurations Configuration Permission Policy[] - The Policy List.
- relay
State string - The RelayState of the Access Configuration.
- session
Duration number - The SessionDuration of the Access Configuration.
- status
Notifications string[] - The StatusNotifications of the Access Configuration.
- access_
configuration_ strid - The AccessConfigurationId of the Access Configuration.
- access_
configuration_ strname - The AccessConfigurationName of the Access Configuration.
- create_
time str - The Created Time of the Directory.
- description str
- The Description of the Directory.
- directory_
id str - The ID of the Directory.
- id str
- The ID of the Access Configuration.
- permission_
policies Sequence[GetAccess Configurations Configuration Permission Policy] - The Policy List.
- relay_
state str - The RelayState of the Access Configuration.
- session_
duration int - The SessionDuration of the Access Configuration.
- status_
notifications Sequence[str] - The StatusNotifications of the Access Configuration.
- access
Configuration StringId - The AccessConfigurationId of the Access Configuration.
- access
Configuration StringName - The AccessConfigurationName of the Access Configuration.
- create
Time String - The Created Time of the Directory.
- description String
- The Description of the Directory.
- directory
Id String - The ID of the Directory.
- id String
- The ID of the Access Configuration.
- permission
Policies List<Property Map> - The Policy List.
- relay
State String - The RelayState of the Access Configuration.
- session
Duration Number - The SessionDuration of the Access Configuration.
- status
Notifications List<String> - The StatusNotifications of the Access Configuration.
GetAccessConfigurationsConfigurationPermissionPolicy
- Add
Time string - The Creation time of policy.
- Permission
Policy stringDocument - The Content of Policy.
- Permission
Policy stringName - The Policy Name of policy.
- Permission
Policy stringType - The Policy Type of policy. Valid values:
System
,Inline
.
- Add
Time string - The Creation time of policy.
- Permission
Policy stringDocument - The Content of Policy.
- Permission
Policy stringName - The Policy Name of policy.
- Permission
Policy stringType - The Policy Type of policy. Valid values:
System
,Inline
.
- add
Time String - The Creation time of policy.
- permission
Policy StringDocument - The Content of Policy.
- permission
Policy StringName - The Policy Name of policy.
- permission
Policy StringType - The Policy Type of policy. Valid values:
System
,Inline
.
- add
Time string - The Creation time of policy.
- permission
Policy stringDocument - The Content of Policy.
- permission
Policy stringName - The Policy Name of policy.
- permission
Policy stringType - The Policy Type of policy. Valid values:
System
,Inline
.
- add_
time str - The Creation time of policy.
- permission_
policy_ strdocument - The Content of Policy.
- permission_
policy_ strname - The Policy Name of policy.
- permission_
policy_ strtype - The Policy Type of policy. Valid values:
System
,Inline
.
- add
Time String - The Creation time of policy.
- permission
Policy StringDocument - The Content of Policy.
- permission
Policy StringName - The Policy Name of policy.
- permission
Policy StringType - The Policy Type of policy. Valid values:
System
,Inline
.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.