@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 5.14 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Gets information about a server.
*
* Uses Azure REST API version 2024-02-01-preview.
*
* Other available API versions: 2022-01-01, 2022-09-30-preview, 2023-06-01-preview, 2023-06-30, 2023-10-01-preview, 2023-12-01-preview, 2023-12-30, 2024-06-01-preview, 2024-10-01-preview, 2024-12-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native dbformysql [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getServer(args: GetServerArgs, opts?: pulumi.InvokeOptions): Promise<GetServerResult>;
export interface GetServerArgs {
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: string;
/**
* The name of the server.
*/
serverName: string;
}
/**
* Represents a server.
*/
export interface GetServerResult {
/**
* The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
*/
readonly administratorLogin?: string;
/**
* availability Zone information of the server.
*/
readonly availabilityZone?: string;
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* Backup related properties of a server.
*/
readonly backup?: outputs.dbformysql.BackupResponse;
/**
* The Data Encryption for CMK.
*/
readonly dataEncryption?: outputs.dbformysql.DataEncryptionResponse;
/**
* The fully qualified domain name of a server.
*/
readonly fullyQualifiedDomainName: string;
/**
* High availability related properties of a server.
*/
readonly highAvailability?: outputs.dbformysql.HighAvailabilityResponse;
/**
* Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
*/
readonly id: string;
/**
* The cmk identity for the server.
*/
readonly identity?: outputs.dbformysql.MySQLServerIdentityResponse;
/**
* Source properties for import from storage.
*/
readonly importSourceProperties?: outputs.dbformysql.ImportSourcePropertiesResponse;
/**
* The geo-location where the resource lives
*/
readonly location: string;
/**
* Maintenance window of a server.
*/
readonly maintenanceWindow?: outputs.dbformysql.MaintenanceWindowResponse;
/**
* The name of the resource
*/
readonly name: string;
/**
* Network related properties of a server.
*/
readonly network?: outputs.dbformysql.NetworkResponse;
/**
* PrivateEndpointConnections related properties of a server.
*/
readonly privateEndpointConnections: outputs.dbformysql.PrivateEndpointConnectionResponse[];
/**
* The maximum number of replicas that a primary server can have.
*/
readonly replicaCapacity: number;
/**
* The replication role.
*/
readonly replicationRole?: string;
/**
* The SKU (pricing tier) of the server.
*/
readonly sku?: outputs.dbformysql.MySQLServerSkuResponse;
/**
* The source MySQL server id.
*/
readonly sourceServerResourceId?: string;
/**
* The state of a server.
*/
readonly state: string;
/**
* Storage related properties of a server.
*/
readonly storage?: outputs.dbformysql.StorageResponse;
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
readonly systemData: outputs.dbformysql.SystemDataResponse;
/**
* Resource tags.
*/
readonly tags?: {
[key: string]: string;
};
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
readonly type: string;
/**
* Server version.
*/
readonly version?: string;
}
/**
* Gets information about a server.
*
* Uses Azure REST API version 2024-02-01-preview.
*
* Other available API versions: 2022-01-01, 2022-09-30-preview, 2023-06-01-preview, 2023-06-30, 2023-10-01-preview, 2023-12-01-preview, 2023-12-30, 2024-06-01-preview, 2024-10-01-preview, 2024-12-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native dbformysql [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getServerOutput(args: GetServerOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetServerResult>;
export interface GetServerOutputArgs {
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
/**
* The name of the server.
*/
serverName: pulumi.Input<string>;
}