Linode v4.22.0 published on Tuesday, Jun 25, 2024 by Pulumi
linode.getAccountLogin
Explore with Pulumi AI
Provides details about a specific Linode account login.
Example Usage
The following example shows how one might use this data source to access information about a Linode account login.
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";
const myAccountLogin = linode.getAccountLogin({
id: 123456,
});
import pulumi
import pulumi_linode as linode
my_account_login = linode.get_account_login(id=123456)
package main
import (
"github.com/pulumi/pulumi-linode/sdk/v4/go/linode"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := linode.GetAccountLogin(ctx, &linode.GetAccountLoginArgs{
Id: 123456,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Linode = Pulumi.Linode;
return await Deployment.RunAsync(() =>
{
var myAccountLogin = Linode.GetAccountLogin.Invoke(new()
{
Id = 123456,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.linode.LinodeFunctions;
import com.pulumi.linode.inputs.GetAccountLoginArgs;
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 myAccountLogin = LinodeFunctions.getAccountLogin(GetAccountLoginArgs.builder()
.id(123456)
.build());
}
}
variables:
myAccountLogin:
fn::invoke:
Function: linode:getAccountLogin
Arguments:
id: 123456
Using getAccountLogin
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 getAccountLogin(args: GetAccountLoginArgs, opts?: InvokeOptions): Promise<GetAccountLoginResult>
function getAccountLoginOutput(args: GetAccountLoginOutputArgs, opts?: InvokeOptions): Output<GetAccountLoginResult>
def get_account_login(id: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetAccountLoginResult
def get_account_login_output(id: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAccountLoginResult]
func GetAccountLogin(ctx *Context, args *GetAccountLoginArgs, opts ...InvokeOption) (*GetAccountLoginResult, error)
func GetAccountLoginOutput(ctx *Context, args *GetAccountLoginOutputArgs, opts ...InvokeOption) GetAccountLoginResultOutput
> Note: This function is named GetAccountLogin
in the Go SDK.
public static class GetAccountLogin
{
public static Task<GetAccountLoginResult> InvokeAsync(GetAccountLoginArgs args, InvokeOptions? opts = null)
public static Output<GetAccountLoginResult> Invoke(GetAccountLoginInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAccountLoginResult> getAccountLogin(GetAccountLoginArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: linode:index/getAccountLogin:getAccountLogin
arguments:
# arguments dictionary
The following arguments are supported:
- Id int
- The unique ID of this login object.
- Id int
- The unique ID of this login object.
- id Integer
- The unique ID of this login object.
- id number
- The unique ID of this login object.
- id int
- The unique ID of this login object.
- id Number
- The unique ID of this login object.
getAccountLogin Result
The following output properties are available:
- Datetime string
- When the login was initiated.
- Id int
- The unique ID of this login object.
- Ip string
- The remote IP address that requested the login.
- Restricted bool
- True if the User that was logged into was a restricted User, false otherwise.
- Status string
- Username string
- The username of the User that was logged into.
- Datetime string
- When the login was initiated.
- Id int
- The unique ID of this login object.
- Ip string
- The remote IP address that requested the login.
- Restricted bool
- True if the User that was logged into was a restricted User, false otherwise.
- Status string
- Username string
- The username of the User that was logged into.
- datetime String
- When the login was initiated.
- id Integer
- The unique ID of this login object.
- ip String
- The remote IP address that requested the login.
- restricted Boolean
- True if the User that was logged into was a restricted User, false otherwise.
- status String
- username String
- The username of the User that was logged into.
- datetime string
- When the login was initiated.
- id number
- The unique ID of this login object.
- ip string
- The remote IP address that requested the login.
- restricted boolean
- True if the User that was logged into was a restricted User, false otherwise.
- status string
- username string
- The username of the User that was logged into.
- datetime String
- When the login was initiated.
- id Number
- The unique ID of this login object.
- ip String
- The remote IP address that requested the login.
- restricted Boolean
- True if the User that was logged into was a restricted User, false otherwise.
- status String
- username String
- The username of the User that was logged into.
Package Details
- Repository
- Linode pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linode
Terraform Provider.