All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.storagepool.IscsiTarget Maven / Gradle / Ivy

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.storagepool;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.storagepool.IscsiTargetArgs;
import com.pulumi.azurenative.storagepool.outputs.AclResponse;
import com.pulumi.azurenative.storagepool.outputs.IscsiLunResponse;
import com.pulumi.azurenative.storagepool.outputs.SystemMetadataResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Response for iSCSI Target requests.
 * Azure REST API version: 2021-08-01. Prior API version in Azure Native 1.x: 2020-03-15-preview.
 * 
 * Other available API versions: 2020-03-15-preview.
 * 
 * ## Example Usage
 * ### Create or Update iSCSI Target
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.storagepool.IscsiTarget;
 * import com.pulumi.azurenative.storagepool.IscsiTargetArgs;
 * import com.pulumi.azurenative.storagepool.inputs.IscsiLunArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * 
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 * 
 *     public static void stack(Context ctx) {
 *         var iscsiTarget = new IscsiTarget("iscsiTarget", IscsiTargetArgs.builder()
 *             .aclMode("Dynamic")
 *             .diskPoolName("myDiskPool")
 *             .iscsiTargetName("myIscsiTarget")
 *             .luns(IscsiLunArgs.builder()
 *                 .managedDiskAzureResourceId("/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_1")
 *                 .name("lun0")
 *                 .build())
 *             .resourceGroupName("myResourceGroup")
 *             .targetIqn("iqn.2005-03.org.iscsi:server1")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:storagepool:IscsiTarget myIscsiTarget /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}/iscsiTargets/{iscsiTargetName} * ``` * */ @ResourceType(type="azure-native:storagepool:IscsiTarget") public class IscsiTarget extends com.pulumi.resources.CustomResource { /** * Mode for Target connectivity. * */ @Export(name="aclMode", refs={String.class}, tree="[0]") private Output aclMode; /** * @return Mode for Target connectivity. * */ public Output aclMode() { return this.aclMode; } /** * List of private IPv4 addresses to connect to the iSCSI Target. * */ @Export(name="endpoints", refs={List.class,String.class}, tree="[0,1]") private Output> endpoints; /** * @return List of private IPv4 addresses to connect to the iSCSI Target. * */ public Output>> endpoints() { return Codegen.optional(this.endpoints); } /** * List of LUNs to be exposed through iSCSI Target. * */ @Export(name="luns", refs={List.class,IscsiLunResponse.class}, tree="[0,1]") private Output> luns; /** * @return List of LUNs to be exposed through iSCSI Target. * */ public Output>> luns() { return Codegen.optional(this.luns); } /** * Azure resource id. Indicates if this resource is managed by another Azure resource. * */ @Export(name="managedBy", refs={String.class}, tree="[0]") private Output managedBy; /** * @return Azure resource id. Indicates if this resource is managed by another Azure resource. * */ public Output managedBy() { return this.managedBy; } /** * List of Azure resource ids that manage this resource. * */ @Export(name="managedByExtended", refs={List.class,String.class}, tree="[0,1]") private Output> managedByExtended; /** * @return List of Azure resource ids that manage this resource. * */ public Output> managedByExtended() { return this.managedByExtended; } /** * The name of the resource * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the resource * */ public Output name() { return this.name; } /** * The port used by iSCSI Target portal group. * */ @Export(name="port", refs={Integer.class}, tree="[0]") private Output port; /** * @return The port used by iSCSI Target portal group. * */ public Output> port() { return Codegen.optional(this.port); } /** * State of the operation on the resource. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return State of the operation on the resource. * */ public Output provisioningState() { return this.provisioningState; } /** * List of identifiers for active sessions on the iSCSI target * */ @Export(name="sessions", refs={List.class,String.class}, tree="[0,1]") private Output> sessions; /** * @return List of identifiers for active sessions on the iSCSI target * */ public Output> sessions() { return this.sessions; } /** * Access Control List (ACL) for an iSCSI Target; defines LUN masking policy * */ @Export(name="staticAcls", refs={List.class,AclResponse.class}, tree="[0,1]") private Output> staticAcls; /** * @return Access Control List (ACL) for an iSCSI Target; defines LUN masking policy * */ public Output>> staticAcls() { return Codegen.optional(this.staticAcls); } /** * Operational status of the iSCSI Target. * */ @Export(name="status", refs={String.class}, tree="[0]") private Output status; /** * @return Operational status of the iSCSI Target. * */ public Output status() { return this.status; } /** * Resource metadata required by ARM RPC * */ @Export(name="systemData", refs={SystemMetadataResponse.class}, tree="[0]") private Output systemData; /** * @return Resource metadata required by ARM RPC * */ public Output systemData() { return this.systemData; } /** * iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server". * */ @Export(name="targetIqn", refs={String.class}, tree="[0]") private Output targetIqn; /** * @return iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server". * */ public Output targetIqn() { return this.targetIqn; } /** * The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public IscsiTarget(java.lang.String name) { this(name, IscsiTargetArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public IscsiTarget(java.lang.String name, IscsiTargetArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public IscsiTarget(java.lang.String name, IscsiTargetArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:storagepool:IscsiTarget", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private IscsiTarget(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:storagepool:IscsiTarget", name, null, makeResourceOptions(options, id), false); } private static IscsiTargetArgs makeArgs(IscsiTargetArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? IscsiTargetArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .aliases(List.of( Output.of(Alias.builder().type("azure-native:storagepool/v20200315preview:IscsiTarget").build()), Output.of(Alias.builder().type("azure-native:storagepool/v20210401preview:IscsiTarget").build()), Output.of(Alias.builder().type("azure-native:storagepool/v20210801:IscsiTarget").build()) )) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host 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 options Optional settings to control the behavior of the CustomResource. */ public static IscsiTarget get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new IscsiTarget(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy