@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
136 lines • 4.35 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Gets information about an instance server.
*/
export declare function getServer(args?: GetServerArgs, opts?: pulumi.InvokeOptions): Promise<GetServerResult>;
/**
* A collection of arguments for invoking getServer.
*/
export interface GetServerArgs {
/**
* The server name. Only one of `name` and `serverId` should be specified.
*/
name?: string;
/**
* The ID of the project the instance server is associated with.
*/
projectId?: string;
/**
* The server id. Only one of `name` and `serverId` should be specified.
*/
serverId?: string;
/**
* `zone`) The zone in which the server exists.
*/
zone?: string;
}
/**
* A collection of values returned by getServer.
*/
export interface GetServerResult {
/**
* The [additional volumes](https://developers.scaleway.com/en/products/instance/api/#volumes-7e8a39)
* attached to the server.
*/
readonly additionalVolumeIds: string[];
readonly adminPasswordEncryptionSshKeyId: string;
readonly bootType: string;
readonly bootscriptId: string;
/**
* The cloud init script associated with this server.
*/
readonly cloudInit: string;
/**
* True if dynamic IP in enable on the server.
*/
readonly enableDynamicIp: boolean;
readonly filesystems: outputs.instance.GetServerFilesystem[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The UUID and the label of the base image used by the server.
*/
readonly image: string;
readonly ipId: string;
readonly ipIds: string[];
readonly name?: string;
/**
* The ID of the organization the server is associated with.
*/
readonly organizationId: string;
/**
* The [placement group](https://developers.scaleway.com/en/products/instance/api/#placement-groups-d8f653) the server is attached to.
*/
readonly placementGroupId: string;
/**
* True when the placement group policy is respected.
*/
readonly placementGroupPolicyRespected: boolean;
/**
* The list of private IPs of the server.
*/
readonly privateIps: outputs.instance.GetServerPrivateIp[];
readonly privateNetworks: outputs.instance.GetServerPrivateNetwork[];
readonly projectId?: string;
readonly protected: boolean;
/**
* The list of public IPs of the server
*/
readonly publicIps: outputs.instance.GetServerPublicIp[];
readonly replaceOnTypeChange: boolean;
readonly rootVolumes: outputs.instance.GetServerRootVolume[];
/**
* The [security group](https://developers.scaleway.com/en/products/instance/api/#security-groups-8d7f89) the server is attached to.
*/
readonly securityGroupId: string;
readonly serverId?: string;
/**
* The state of the server. Possible values are: `started`, `stopped` or `standby`.
*/
readonly state: string;
/**
* The tags associated with the server.
*/
readonly tags: string[];
/**
* The commercial type of the server.
* You find all the available types on the [pricing page](https://www.scaleway.com/en/pricing/).
*/
readonly type: string;
/**
* The user data associated with the server.
*/
readonly userData: {
[key: string]: string;
};
readonly zone?: string;
}
/**
* Gets information about an instance server.
*/
export declare function getServerOutput(args?: GetServerOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetServerResult>;
/**
* A collection of arguments for invoking getServer.
*/
export interface GetServerOutputArgs {
/**
* The server name. Only one of `name` and `serverId` should be specified.
*/
name?: pulumi.Input<string | undefined>;
/**
* The ID of the project the instance server is associated with.
*/
projectId?: pulumi.Input<string | undefined>;
/**
* The server id. Only one of `name` and `serverId` should be specified.
*/
serverId?: pulumi.Input<string | undefined>;
/**
* `zone`) The zone in which the server exists.
*/
zone?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=getServer.d.ts.map