Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi
alicloud.ram.getSamlProviders
Explore with Pulumi AI
This data source provides the Ram Saml Providers of the current Alibaba Cloud user.
NOTE: Available since v1.114.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = alicloud.ram.getSamlProviders({
ids: ["samlProviderName"],
nameRegex: "tf-testAcc",
});
export const firstRamSamlProviderId = example.then(example => example.providers?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.ram.get_saml_providers(ids=["samlProviderName"],
name_regex="tf-testAcc")
pulumi.export("firstRamSamlProviderId", example.providers[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ram"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := ram.GetSamlProviders(ctx, &ram.GetSamlProvidersArgs{
Ids: []string{
"samlProviderName",
},
NameRegex: pulumi.StringRef("tf-testAcc"),
}, nil)
if err != nil {
return err
}
ctx.Export("firstRamSamlProviderId", example.Providers[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = AliCloud.Ram.GetSamlProviders.Invoke(new()
{
Ids = new[]
{
"samlProviderName",
},
NameRegex = "tf-testAcc",
});
return new Dictionary<string, object?>
{
["firstRamSamlProviderId"] = example.Apply(getSamlProvidersResult => getSamlProvidersResult.Providers[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ram.RamFunctions;
import com.pulumi.alicloud.ram.inputs.GetSamlProvidersArgs;
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 example = RamFunctions.getSamlProviders(GetSamlProvidersArgs.builder()
.ids("samlProviderName")
.nameRegex("tf-testAcc")
.build());
ctx.export("firstRamSamlProviderId", example.applyValue(getSamlProvidersResult -> getSamlProvidersResult.providers()[0].id()));
}
}
variables:
example:
fn::invoke:
Function: alicloud:ram:getSamlProviders
Arguments:
ids:
- samlProviderName
nameRegex: tf-testAcc
outputs:
firstRamSamlProviderId: ${example.providers[0].id}
Using getSamlProviders
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 getSamlProviders(args: GetSamlProvidersArgs, opts?: InvokeOptions): Promise<GetSamlProvidersResult>
function getSamlProvidersOutput(args: GetSamlProvidersOutputArgs, opts?: InvokeOptions): Output<GetSamlProvidersResult>
def get_saml_providers(enable_details: Optional[bool] = None,
ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSamlProvidersResult
def get_saml_providers_output(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[GetSamlProvidersResult]
func GetSamlProviders(ctx *Context, args *GetSamlProvidersArgs, opts ...InvokeOption) (*GetSamlProvidersResult, error)
func GetSamlProvidersOutput(ctx *Context, args *GetSamlProvidersOutputArgs, opts ...InvokeOption) GetSamlProvidersResultOutput
> Note: This function is named GetSamlProviders
in the Go SDK.
public static class GetSamlProviders
{
public static Task<GetSamlProvidersResult> InvokeAsync(GetSamlProvidersArgs args, InvokeOptions? opts = null)
public static Output<GetSamlProvidersResult> Invoke(GetSamlProvidersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSamlProvidersResult> getSamlProviders(GetSamlProvidersArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:ram/getSamlProviders:getSamlProviders
arguments:
# arguments dictionary
The following arguments are supported:
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids List<string>
- A list of SAML Provider IDs.
- Name
Regex string - A regex string to filter results by SAML Provider name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids []string
- A list of SAML Provider IDs.
- Name
Regex string - A regex string to filter results by SAML Provider name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids List<String>
- A list of SAML Provider IDs.
- name
Regex String - A regex string to filter results by SAML Provider name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
- enable
Details boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids string[]
- A list of SAML Provider IDs.
- name
Regex string - A regex string to filter results by SAML Provider name.
- output
File string - File name where to save data source results (after running
pulumi preview
).
- enable_
details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - ids Sequence[str]
- A list of SAML Provider IDs.
- name_
regex str - A regex string to filter results by SAML Provider name.
- output_
file str - File name where to save data source results (after running
pulumi preview
).
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids List<String>
- A list of SAML Provider IDs.
- name
Regex String - A regex string to filter results by SAML Provider name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
getSamlProviders Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- A list of SAML Provider names.
- Providers
List<Pulumi.
Ali Cloud. Ram. Outputs. Get Saml Providers Provider> - A list of Ram Saml Providers. Each element contains the following attributes:
- Enable
Details bool - Name
Regex string - Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- A list of SAML Provider names.
- Providers
[]Get
Saml Providers Provider - A list of Ram Saml Providers. Each element contains the following attributes:
- Enable
Details bool - Name
Regex string - Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- A list of SAML Provider names.
- providers
List<Get
Saml Providers Provider> - A list of Ram Saml Providers. Each element contains the following attributes:
- enable
Details Boolean - name
Regex String - output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- A list of SAML Provider names.
- providers
Get
Saml Providers Provider[] - A list of Ram Saml Providers. Each element contains the following attributes:
- enable
Details boolean - name
Regex string - output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- A list of SAML Provider names.
- providers
Sequence[Get
Saml Providers Provider] - A list of Ram Saml Providers. Each element contains the following attributes:
- enable_
details bool - name_
regex str - output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- A list of SAML Provider names.
- providers List<Property Map>
- A list of Ram Saml Providers. Each element contains the following attributes:
- enable
Details Boolean - name
Regex String - output
File String
Supporting Types
GetSamlProvidersProvider
- Arn string
- The Alibaba Cloud Resource Name (ARN) of the IdP.
- Description string
- The description of SAML Provider.
- Encodedsaml
Metadata stringDocument - The encodedsaml metadata document.
- Id string
- The ID of the SAML Provider.
- Saml
Provider stringName - The saml provider name.
- Update
Date string - The update time.
- Arn string
- The Alibaba Cloud Resource Name (ARN) of the IdP.
- Description string
- The description of SAML Provider.
- Encodedsaml
Metadata stringDocument - The encodedsaml metadata document.
- Id string
- The ID of the SAML Provider.
- Saml
Provider stringName - The saml provider name.
- Update
Date string - The update time.
- arn String
- The Alibaba Cloud Resource Name (ARN) of the IdP.
- description String
- The description of SAML Provider.
- encodedsaml
Metadata StringDocument - The encodedsaml metadata document.
- id String
- The ID of the SAML Provider.
- saml
Provider StringName - The saml provider name.
- update
Date String - The update time.
- arn string
- The Alibaba Cloud Resource Name (ARN) of the IdP.
- description string
- The description of SAML Provider.
- encodedsaml
Metadata stringDocument - The encodedsaml metadata document.
- id string
- The ID of the SAML Provider.
- saml
Provider stringName - The saml provider name.
- update
Date string - The update time.
- arn str
- The Alibaba Cloud Resource Name (ARN) of the IdP.
- description str
- The description of SAML Provider.
- encodedsaml_
metadata_ strdocument - The encodedsaml metadata document.
- id str
- The ID of the SAML Provider.
- saml_
provider_ strname - The saml provider name.
- update_
date str - The update time.
- arn String
- The Alibaba Cloud Resource Name (ARN) of the IdP.
- description String
- The description of SAML Provider.
- encodedsaml
Metadata StringDocument - The encodedsaml metadata document.
- id String
- The ID of the SAML Provider.
- saml
Provider StringName - The saml provider name.
- update
Date String - The update time.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.