Want to learn about running containers in Lambda? Join our free hands-on workshop. Register Now

GetProfile

Provides information about a Linode profile.

Attributes

The Linode Profile resource exports the following attributes:

  • email - The profile email address. This address will be used for communication with Linode as necessary.

  • timezone - The profile’s preferred timezone. This is not used by the API, and is for the benefit of clients only. All times the API returns are in UTC.

  • email_notifications - If true, email notifications will be sent about account activity. If false, when false business-critical communications may still be sent through email.

  • username - The username for logging in to Linode services.

  • ip_whitelist_enabled - If true, logins for the user will only be allowed from whitelisted IPs. This setting is currently deprecated, and cannot be enabled.

  • lish_auth_method - The methods of authentication allowed when connecting via Lish. ‘keys_only’ is the most secure with the intent to use Lish, and ‘disabled’ is recommended for users that will not use Lish at all.

  • authorized_keys - The list of SSH Keys authorized to use Lish for this user. This value is ignored if lish_auth_method is ‘disabled’.

  • two_factor_auth - If true, logins from untrusted computers will require Two Factor Authentication.

  • restricted - If true, the user has restrictions on what can be accessed on the Account.

  • referrals - Credit Card information associated with this Account.

  • referrals.0.total - The number of users who have signed up with the referral code.

  • referrals.0.credit - The amount of account credit in US Dollars issued to the account through the referral program.

  • referrals.0.completed - The number of completed signups with the referral code.

  • referrals.0.pending - The number of pending signups for the referral code. To receive credit the signups must be completed.

  • referrals.0.code - The Profile referral code. If new accounts use this when signing up for Linode, referring account will receive credit.

  • referrals.0.url - The referral URL.

Example Usage

using Pulumi;
using Linode = Pulumi.Linode;

class MyStack : Stack
{
    public MyStack()
    {
        var profile = Output.Create(Linode.GetProfile.InvokeAsync());
    }

}
package main

import (
    "github.com/pulumi/pulumi-linode/sdk/v2/go/linode"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := linode.GetProfile(ctx, nil, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_linode as linode

profile = linode.get_profile()
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";

const profile = pulumi.output(linode.getProfile({ async: true }));

Using GetProfile

function getProfile(opts?: InvokeOptions): Promise<GetProfileResult>
def get_profile(opts: Optional[InvokeOptions] = None) -> GetProfileResult
func GetProfile(ctx *Context, opts ...InvokeOption) (*GetProfileResult, error)
public static class GetProfile {
    public static Task<GetProfileResult> InvokeAsync(InvokeOptions? opts = null)
}

GetProfile Result

The following output properties are available:

AuthorizedKeys List<string>
Email string
EmailNotifications bool
Id string

The provider-assigned unique ID for this managed resource.

IpWhitelistEnabled bool
LishAuthMethod string
Referrals GetProfileReferrals
Restricted bool
Timezone string
TwoFactorAuth bool
Username string
AuthorizedKeys []string
Email string
EmailNotifications bool
Id string

The provider-assigned unique ID for this managed resource.

IpWhitelistEnabled bool
LishAuthMethod string
Referrals GetProfileReferrals
Restricted bool
Timezone string
TwoFactorAuth bool
Username string
authorizedKeys string[]
email string
emailNotifications boolean
id string

The provider-assigned unique ID for this managed resource.

ipWhitelistEnabled boolean
lishAuthMethod string
referrals GetProfileReferrals
restricted boolean
timezone string
twoFactorAuth boolean
username string
authorized_keys Sequence[str]
email str
email_notifications bool
id str

The provider-assigned unique ID for this managed resource.

ip_whitelist_enabled bool
lish_auth_method str
referrals GetProfileReferrals
restricted bool
timezone str
two_factor_auth bool
username str

Supporting Types

GetProfileReferrals

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Code string
Completed int
Credit double
Pending int
Total int
Url string
Code string
Completed int
Credit float64
Pending int
Total int
Url string
code string
completed number
credit number
pending number
total number
url string
code str
completed int
credit float
pending int
total int
url str

Package Details

Repository
https://github.com/pulumi/pulumi-linode
License
Apache-2.0
Notes
This Pulumi package is based on the linode Terraform Provider.