1. Packages
  2. StrongDM
  3. API Docs
  4. getRemoteIdentity
StrongDM v1.12.0 published on Sunday, Apr 28, 2024 by Piers Karsenbarg

sdm.getRemoteIdentity

Explore with Pulumi AI

sdm logo
StrongDM v1.12.0 published on Sunday, Apr 28, 2024 by Piers Karsenbarg

    RemoteIdentities define the username to be used for a specific account when connecting to a remote resource using that group.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sdm from "@pulumi/sdm";
    
    const user = sdm.getRemoteIdentity({
        id: "i-0900909",
        username: "user",
    });
    
    import pulumi
    import pulumi_sdm as sdm
    
    user = sdm.get_remote_identity(id="i-0900909",
        username="user")
    
    package main
    
    import (
    	"github.com/pierskarsenbarg/pulumi-sdm/sdk/go/sdm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sdm.LookupRemoteIdentity(ctx, &sdm.LookupRemoteIdentityArgs{
    			Id:       pulumi.StringRef("i-0900909"),
    			Username: pulumi.StringRef("user"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Sdm = Pulumi.Sdm;
    
    return await Deployment.RunAsync(() => 
    {
        var user = Sdm.GetRemoteIdentity.Invoke(new()
        {
            Id = "i-0900909",
            Username = "user",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sdm.SdmFunctions;
    import com.pulumi.sdm.inputs.GetRemoteIdentityArgs;
    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 user = SdmFunctions.getRemoteIdentity(GetRemoteIdentityArgs.builder()
                .id("i-0900909")
                .username("user")
                .build());
    
        }
    }
    
    variables:
      user:
        fn::invoke:
          Function: sdm:getRemoteIdentity
          Arguments:
            id: i-0900909
            username: user
    

    Using getRemoteIdentity

    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 getRemoteIdentity(args: GetRemoteIdentityArgs, opts?: InvokeOptions): Promise<GetRemoteIdentityResult>
    function getRemoteIdentityOutput(args: GetRemoteIdentityOutputArgs, opts?: InvokeOptions): Output<GetRemoteIdentityResult>
    def get_remote_identity(account_id: Optional[str] = None,
                            id: Optional[str] = None,
                            remote_identity_group_id: Optional[str] = None,
                            username: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetRemoteIdentityResult
    def get_remote_identity_output(account_id: Optional[pulumi.Input[str]] = None,
                            id: Optional[pulumi.Input[str]] = None,
                            remote_identity_group_id: Optional[pulumi.Input[str]] = None,
                            username: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetRemoteIdentityResult]
    func LookupRemoteIdentity(ctx *Context, args *LookupRemoteIdentityArgs, opts ...InvokeOption) (*LookupRemoteIdentityResult, error)
    func LookupRemoteIdentityOutput(ctx *Context, args *LookupRemoteIdentityOutputArgs, opts ...InvokeOption) LookupRemoteIdentityResultOutput

    > Note: This function is named LookupRemoteIdentity in the Go SDK.

    public static class GetRemoteIdentity 
    {
        public static Task<GetRemoteIdentityResult> InvokeAsync(GetRemoteIdentityArgs args, InvokeOptions? opts = null)
        public static Output<GetRemoteIdentityResult> Invoke(GetRemoteIdentityInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRemoteIdentityResult> getRemoteIdentity(GetRemoteIdentityArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: sdm:index/getRemoteIdentity:getRemoteIdentity
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    The account for this remote identity.
    Id string
    Unique identifier of the RemoteIdentity.
    RemoteIdentityGroupId string
    The remote identity group.
    Username string
    The username to be used as the remote identity for this account.
    AccountId string
    The account for this remote identity.
    Id string
    Unique identifier of the RemoteIdentity.
    RemoteIdentityGroupId string
    The remote identity group.
    Username string
    The username to be used as the remote identity for this account.
    accountId String
    The account for this remote identity.
    id String
    Unique identifier of the RemoteIdentity.
    remoteIdentityGroupId String
    The remote identity group.
    username String
    The username to be used as the remote identity for this account.
    accountId string
    The account for this remote identity.
    id string
    Unique identifier of the RemoteIdentity.
    remoteIdentityGroupId string
    The remote identity group.
    username string
    The username to be used as the remote identity for this account.
    account_id str
    The account for this remote identity.
    id str
    Unique identifier of the RemoteIdentity.
    remote_identity_group_id str
    The remote identity group.
    username str
    The username to be used as the remote identity for this account.
    accountId String
    The account for this remote identity.
    id String
    Unique identifier of the RemoteIdentity.
    remoteIdentityGroupId String
    The remote identity group.
    username String
    The username to be used as the remote identity for this account.

    getRemoteIdentity Result

    The following output properties are available:

    Ids List<string>
    a list of strings of ids of data sources that match the given arguments.
    RemoteIdentities List<PiersKarsenbarg.Sdm.Outputs.GetRemoteIdentityRemoteIdentity>
    A list where each element has the following attributes:
    AccountId string
    The account for this remote identity.
    Id string
    Unique identifier of the RemoteIdentity.
    RemoteIdentityGroupId string
    The remote identity group.
    Username string
    The username to be used as the remote identity for this account.
    Ids []string
    a list of strings of ids of data sources that match the given arguments.
    RemoteIdentities []GetRemoteIdentityRemoteIdentity
    A list where each element has the following attributes:
    AccountId string
    The account for this remote identity.
    Id string
    Unique identifier of the RemoteIdentity.
    RemoteIdentityGroupId string
    The remote identity group.
    Username string
    The username to be used as the remote identity for this account.
    ids List<String>
    a list of strings of ids of data sources that match the given arguments.
    remoteIdentities List<GetRemoteIdentityRemoteIdentity>
    A list where each element has the following attributes:
    accountId String
    The account for this remote identity.
    id String
    Unique identifier of the RemoteIdentity.
    remoteIdentityGroupId String
    The remote identity group.
    username String
    The username to be used as the remote identity for this account.
    ids string[]
    a list of strings of ids of data sources that match the given arguments.
    remoteIdentities GetRemoteIdentityRemoteIdentity[]
    A list where each element has the following attributes:
    accountId string
    The account for this remote identity.
    id string
    Unique identifier of the RemoteIdentity.
    remoteIdentityGroupId string
    The remote identity group.
    username string
    The username to be used as the remote identity for this account.
    ids Sequence[str]
    a list of strings of ids of data sources that match the given arguments.
    remote_identities Sequence[GetRemoteIdentityRemoteIdentity]
    A list where each element has the following attributes:
    account_id str
    The account for this remote identity.
    id str
    Unique identifier of the RemoteIdentity.
    remote_identity_group_id str
    The remote identity group.
    username str
    The username to be used as the remote identity for this account.
    ids List<String>
    a list of strings of ids of data sources that match the given arguments.
    remoteIdentities List<Property Map>
    A list where each element has the following attributes:
    accountId String
    The account for this remote identity.
    id String
    Unique identifier of the RemoteIdentity.
    remoteIdentityGroupId String
    The remote identity group.
    username String
    The username to be used as the remote identity for this account.

    Supporting Types

    GetRemoteIdentityRemoteIdentity

    AccountId string
    The account for this remote identity.
    Id string
    Unique identifier of the RemoteIdentity.
    RemoteIdentityGroupId string
    The remote identity group.
    Username string
    The username to be used as the remote identity for this account.
    AccountId string
    The account for this remote identity.
    Id string
    Unique identifier of the RemoteIdentity.
    RemoteIdentityGroupId string
    The remote identity group.
    Username string
    The username to be used as the remote identity for this account.
    accountId String
    The account for this remote identity.
    id String
    Unique identifier of the RemoteIdentity.
    remoteIdentityGroupId String
    The remote identity group.
    username String
    The username to be used as the remote identity for this account.
    accountId string
    The account for this remote identity.
    id string
    Unique identifier of the RemoteIdentity.
    remoteIdentityGroupId string
    The remote identity group.
    username string
    The username to be used as the remote identity for this account.
    account_id str
    The account for this remote identity.
    id str
    Unique identifier of the RemoteIdentity.
    remote_identity_group_id str
    The remote identity group.
    username str
    The username to be used as the remote identity for this account.
    accountId String
    The account for this remote identity.
    id String
    Unique identifier of the RemoteIdentity.
    remoteIdentityGroupId String
    The remote identity group.
    username String
    The username to be used as the remote identity for this account.

    Package Details

    Repository
    sdm pierskarsenbarg/pulumi-sdm
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the sdm Terraform Provider.
    sdm logo
    StrongDM v1.12.0 published on Sunday, Apr 28, 2024 by Piers Karsenbarg