import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an Elastic SAN Volume Group resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-rg", * location: "West Europe", * }); * const exampleElasticSan = new azure.elasticsan.ElasticSan("example", { * name: "examplees-es", * resourceGroupName: example.name, * location: example.location, * baseSizeInTib: 1, * sku: { * name: "Premium_LRS", * }, * }); * const current = azure.core.getClientConfig({}); * const exampleUserAssignedIdentity = new azure.authorization.UserAssignedIdentity("example", { * name: "example-uai", * location: example.location, * resourceGroupName: example.name, * }); * const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", { * name: "example-vnet", * addressSpaces: ["10.0.0.0/16"], * location: example.location, * resourceGroupName: example.name, * }); * const exampleSubnet = new azure.network.Subnet("example", { * name: "example-subnet", * resourceGroupName: example.name, * virtualNetworkName: exampleVirtualNetwork.name, * addressPrefixes: ["10.0.1.0/24"], * serviceEndpoints: ["Microsoft.Storage.Global"], * }); * const exampleKeyVault = new azure.keyvault.KeyVault("example", { * name: "examplekv", * location: example.location, * resourceGroupName: example.name, * enabledForDiskEncryption: true, * tenantId: current.then(current => current.tenantId), * softDeleteRetentionDays: 7, * purgeProtectionEnabled: true, * skuName: "standard", * }); * const userAssignedIdentity = new azure.keyvault.AccessPolicy("userAssignedIdentity", { * keyVaultId: exampleKeyVault.id, * tenantId: current.then(current => current.tenantId), * objectId: exampleUserAssignedIdentity.principalId, * keyPermissions: [ * "Get", * "UnwrapKey", * "WrapKey", * ], * secretPermissions: ["Get"], * }); * const client = new azure.keyvault.AccessPolicy("client", { * keyVaultId: exampleKeyVault.id, * tenantId: current.then(current => current.tenantId), * objectId: current.then(current => current.objectId), * keyPermissions: [ * "Get", * "Create", * "Delete", * "List", * "Restore", * "Recover", * "UnwrapKey", * "WrapKey", * "Purge", * "Encrypt", * "Decrypt", * "Sign", * "Verify", * "GetRotationPolicy", * ], * secretPermissions: ["Get"], * }); * const exampleKey = new azure.keyvault.Key("example", { * name: "example-kvk", * keyVaultId: exampleKeyVault.id, * keyType: "RSA", * keySize: 2048, * keyOpts: [ * "decrypt", * "encrypt", * "sign", * "unwrapKey", * "verify", * "wrapKey", * ], * }, { * dependsOn: [ * userAssignedIdentity, * client, * ], * }); * const exampleVolumeGroup = new azure.elasticsan.VolumeGroup("example", { * name: "example-esvg", * elasticSanId: exampleElasticSan.id, * encryptionType: "EncryptionAtRestWithCustomerManagedKey", * encryption: { * keyVaultKeyId: exampleKey.versionlessId, * userAssignedIdentityId: exampleUserAssignedIdentity.id, * }, * identity: { * type: "UserAssigned", * identityIds: [exampleUserAssignedIdentity.id], * }, * networkRules: [{ * subnetId: exampleSubnet.id, * action: "Allow", * }], * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.ElasticSan` - 2023-01-01 * * ## Import * * An existing Elastic SAN Volume Group can be imported into Pulumi using the `resource id`, e.g. * * ```sh * $ pulumi import azure:elasticsan/volumeGroup:VolumeGroup example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ElasticSan/elasticSans/esan1/volumeGroups/vg1 * ``` */ export declare class VolumeGroup extends pulumi.CustomResource { /** * Get an existing VolumeGroup resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: VolumeGroupState, opts?: pulumi.CustomResourceOptions): VolumeGroup; /** * Returns true if the given object is an instance of VolumeGroup. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is VolumeGroup; /** * Specifies the Elastic SAN ID within which this Elastic SAN Volume Group should exist. Changing this forces a new resource to be created. */ readonly elasticSanId: pulumi.Output; /** * An `encryption` block as defined below. * * > **Note:** The `encryption` block can only be set when `encryptionType` is set to `EncryptionAtRestWithCustomerManagedKey`. */ readonly encryption: pulumi.Output; /** * Specifies the type of the key used to encrypt the data of the disk. Possible values are `EncryptionAtRestWithCustomerManagedKey` and `EncryptionAtRestWithPlatformKey`. Defaults to `EncryptionAtRestWithPlatformKey`. */ readonly encryptionType: pulumi.Output; /** * An `identity` block as defined below. Specifies the Managed Identity which should be assigned to this Elastic SAN Volume Group. */ readonly identity: pulumi.Output; /** * Specifies the name of this Elastic SAN Volume Group. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * One or more `networkRule` blocks as defined below. */ readonly networkRules: pulumi.Output; /** * Specifies the type of the storage target. The only possible value is `Iscsi`. Defaults to `Iscsi`. */ readonly protocolType: pulumi.Output; /** * Create a VolumeGroup resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: VolumeGroupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering VolumeGroup resources. */ export interface VolumeGroupState { /** * Specifies the Elastic SAN ID within which this Elastic SAN Volume Group should exist. Changing this forces a new resource to be created. */ elasticSanId?: pulumi.Input; /** * An `encryption` block as defined below. * * > **Note:** The `encryption` block can only be set when `encryptionType` is set to `EncryptionAtRestWithCustomerManagedKey`. */ encryption?: pulumi.Input; /** * Specifies the type of the key used to encrypt the data of the disk. Possible values are `EncryptionAtRestWithCustomerManagedKey` and `EncryptionAtRestWithPlatformKey`. Defaults to `EncryptionAtRestWithPlatformKey`. */ encryptionType?: pulumi.Input; /** * An `identity` block as defined below. Specifies the Managed Identity which should be assigned to this Elastic SAN Volume Group. */ identity?: pulumi.Input; /** * Specifies the name of this Elastic SAN Volume Group. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * One or more `networkRule` blocks as defined below. */ networkRules?: pulumi.Input[]>; /** * Specifies the type of the storage target. The only possible value is `Iscsi`. Defaults to `Iscsi`. */ protocolType?: pulumi.Input; } /** * The set of arguments for constructing a VolumeGroup resource. */ export interface VolumeGroupArgs { /** * Specifies the Elastic SAN ID within which this Elastic SAN Volume Group should exist. Changing this forces a new resource to be created. */ elasticSanId: pulumi.Input; /** * An `encryption` block as defined below. * * > **Note:** The `encryption` block can only be set when `encryptionType` is set to `EncryptionAtRestWithCustomerManagedKey`. */ encryption?: pulumi.Input; /** * Specifies the type of the key used to encrypt the data of the disk. Possible values are `EncryptionAtRestWithCustomerManagedKey` and `EncryptionAtRestWithPlatformKey`. Defaults to `EncryptionAtRestWithPlatformKey`. */ encryptionType?: pulumi.Input; /** * An `identity` block as defined below. Specifies the Managed Identity which should be assigned to this Elastic SAN Volume Group. */ identity?: pulumi.Input; /** * Specifies the name of this Elastic SAN Volume Group. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * One or more `networkRule` blocks as defined below. */ networkRules?: pulumi.Input[]>; /** * Specifies the type of the storage target. The only possible value is `Iscsi`. Defaults to `Iscsi`. */ protocolType?: pulumi.Input; }