@pulumi/linode
Version:
A Pulumi package for creating and managing linode cloud resources.
81 lines (80 loc) • 3.01 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* Provides information about a Linode profile.
* For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-profile).
*
* ## Example Usage
*
* The following example shows how one might use this data source to access profile details.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const profile = linode.getProfile({});
* ```
*/
export declare function getProfile(opts?: pulumi.InvokeOptions): Promise<GetProfileResult>;
/**
* A collection of values returned by getProfile.
*/
export interface GetProfileResult {
/**
* The list of SSH Keys authorized to use Lish for this user. This value is ignored if lishAuthMethod is 'disabled'.
*/
readonly authorizedKeys: string[];
/**
* The profile email address. This address will be used for communication with Linode as necessary.
*/
readonly email: string;
/**
* If true, email notifications will be sent about account activity. If false, when false business-critical communications may still be sent through email.
*/
readonly emailNotifications: boolean;
readonly id: string;
/**
* If true, logins for the user will only be allowed from whitelisted IPs. This setting is currently deprecated, and cannot be enabled.
*/
readonly ipWhitelistEnabled: boolean;
/**
* 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.
*/
readonly lishAuthMethod: string;
/**
* Credit Card information associated with this Account.
*/
readonly referrals: outputs.GetProfileReferrals;
/**
* If true, the user has restrictions on what can be accessed on the Account.
*/
readonly restricted: boolean;
/**
* 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.
*/
readonly timezone: string;
/**
* If true, logins from untrusted computers will require Two Factor Authentication.
*/
readonly twoFactorAuth: boolean;
/**
* The username for logging in to Linode services.
*/
readonly username: string;
}
/**
* Provides information about a Linode profile.
* For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-profile).
*
* ## Example Usage
*
* The following example shows how one might use this data source to access profile details.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const profile = linode.getProfile({});
* ```
*/
export declare function getProfileOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetProfileResult>;