1. Packages
  2. Azure Native v2
  3. API Docs
  4. storagepool
  5. getIscsiTarget
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.storagepool.getIscsiTarget

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Get an iSCSI Target. Azure REST API version: 2021-08-01.

Other available API versions: 2020-03-15-preview.

Using getIscsiTarget

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getIscsiTarget(args: GetIscsiTargetArgs, opts?: InvokeOptions): Promise<GetIscsiTargetResult>
function getIscsiTargetOutput(args: GetIscsiTargetOutputArgs, opts?: InvokeOptions): Output<GetIscsiTargetResult>
Copy
def get_iscsi_target(disk_pool_name: Optional[str] = None,
                     iscsi_target_name: Optional[str] = None,
                     resource_group_name: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetIscsiTargetResult
def get_iscsi_target_output(disk_pool_name: Optional[pulumi.Input[str]] = None,
                     iscsi_target_name: Optional[pulumi.Input[str]] = None,
                     resource_group_name: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetIscsiTargetResult]
Copy
func LookupIscsiTarget(ctx *Context, args *LookupIscsiTargetArgs, opts ...InvokeOption) (*LookupIscsiTargetResult, error)
func LookupIscsiTargetOutput(ctx *Context, args *LookupIscsiTargetOutputArgs, opts ...InvokeOption) LookupIscsiTargetResultOutput
Copy

> Note: This function is named LookupIscsiTarget in the Go SDK.

public static class GetIscsiTarget 
{
    public static Task<GetIscsiTargetResult> InvokeAsync(GetIscsiTargetArgs args, InvokeOptions? opts = null)
    public static Output<GetIscsiTargetResult> Invoke(GetIscsiTargetInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetIscsiTargetResult> getIscsiTarget(GetIscsiTargetArgs args, InvokeOptions options)
public static Output<GetIscsiTargetResult> getIscsiTarget(GetIscsiTargetArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:storagepool:getIscsiTarget
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DiskPoolName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Disk Pool.
IscsiTargetName
This property is required.
Changes to this property will trigger replacement.
string
The name of the iSCSI Target.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
DiskPoolName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Disk Pool.
IscsiTargetName
This property is required.
Changes to this property will trigger replacement.
string
The name of the iSCSI Target.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
diskPoolName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Disk Pool.
iscsiTargetName
This property is required.
Changes to this property will trigger replacement.
String
The name of the iSCSI Target.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
diskPoolName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Disk Pool.
iscsiTargetName
This property is required.
Changes to this property will trigger replacement.
string
The name of the iSCSI Target.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
disk_pool_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the Disk Pool.
iscsi_target_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the iSCSI Target.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
diskPoolName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Disk Pool.
iscsiTargetName
This property is required.
Changes to this property will trigger replacement.
String
The name of the iSCSI Target.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.

getIscsiTarget Result

The following output properties are available:

AclMode string
Mode for Target connectivity.
Id string
Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ManagedBy string
Azure resource id. Indicates if this resource is managed by another Azure resource.
ManagedByExtended List<string>
List of Azure resource ids that manage this resource.
Name string
The name of the resource
ProvisioningState string
State of the operation on the resource.
Sessions List<string>
List of identifiers for active sessions on the iSCSI target
Status string
Operational status of the iSCSI Target.
SystemData Pulumi.AzureNative.StoragePool.Outputs.SystemMetadataResponse
Resource metadata required by ARM RPC
TargetIqn string
iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".
Type string
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
Endpoints List<string>
List of private IPv4 addresses to connect to the iSCSI Target.
Luns List<Pulumi.AzureNative.StoragePool.Outputs.IscsiLunResponse>
List of LUNs to be exposed through iSCSI Target.
Port int
The port used by iSCSI Target portal group.
StaticAcls List<Pulumi.AzureNative.StoragePool.Outputs.AclResponse>
Access Control List (ACL) for an iSCSI Target; defines LUN masking policy
AclMode string
Mode for Target connectivity.
Id string
Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ManagedBy string
Azure resource id. Indicates if this resource is managed by another Azure resource.
ManagedByExtended []string
List of Azure resource ids that manage this resource.
Name string
The name of the resource
ProvisioningState string
State of the operation on the resource.
Sessions []string
List of identifiers for active sessions on the iSCSI target
Status string
Operational status of the iSCSI Target.
SystemData SystemMetadataResponse
Resource metadata required by ARM RPC
TargetIqn string
iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".
Type string
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
Endpoints []string
List of private IPv4 addresses to connect to the iSCSI Target.
Luns []IscsiLunResponse
List of LUNs to be exposed through iSCSI Target.
Port int
The port used by iSCSI Target portal group.
StaticAcls []AclResponse
Access Control List (ACL) for an iSCSI Target; defines LUN masking policy
aclMode String
Mode for Target connectivity.
id String
Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
managedBy String
Azure resource id. Indicates if this resource is managed by another Azure resource.
managedByExtended List<String>
List of Azure resource ids that manage this resource.
name String
The name of the resource
provisioningState String
State of the operation on the resource.
sessions List<String>
List of identifiers for active sessions on the iSCSI target
status String
Operational status of the iSCSI Target.
systemData SystemMetadataResponse
Resource metadata required by ARM RPC
targetIqn String
iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".
type String
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
endpoints List<String>
List of private IPv4 addresses to connect to the iSCSI Target.
luns List<IscsiLunResponse>
List of LUNs to be exposed through iSCSI Target.
port Integer
The port used by iSCSI Target portal group.
staticAcls List<AclResponse>
Access Control List (ACL) for an iSCSI Target; defines LUN masking policy
aclMode string
Mode for Target connectivity.
id string
Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
managedBy string
Azure resource id. Indicates if this resource is managed by another Azure resource.
managedByExtended string[]
List of Azure resource ids that manage this resource.
name string
The name of the resource
provisioningState string
State of the operation on the resource.
sessions string[]
List of identifiers for active sessions on the iSCSI target
status string
Operational status of the iSCSI Target.
systemData SystemMetadataResponse
Resource metadata required by ARM RPC
targetIqn string
iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".
type string
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
endpoints string[]
List of private IPv4 addresses to connect to the iSCSI Target.
luns IscsiLunResponse[]
List of LUNs to be exposed through iSCSI Target.
port number
The port used by iSCSI Target portal group.
staticAcls AclResponse[]
Access Control List (ACL) for an iSCSI Target; defines LUN masking policy
acl_mode str
Mode for Target connectivity.
id str
Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
managed_by str
Azure resource id. Indicates if this resource is managed by another Azure resource.
managed_by_extended Sequence[str]
List of Azure resource ids that manage this resource.
name str
The name of the resource
provisioning_state str
State of the operation on the resource.
sessions Sequence[str]
List of identifiers for active sessions on the iSCSI target
status str
Operational status of the iSCSI Target.
system_data SystemMetadataResponse
Resource metadata required by ARM RPC
target_iqn str
iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".
type str
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
endpoints Sequence[str]
List of private IPv4 addresses to connect to the iSCSI Target.
luns Sequence[IscsiLunResponse]
List of LUNs to be exposed through iSCSI Target.
port int
The port used by iSCSI Target portal group.
static_acls Sequence[AclResponse]
Access Control List (ACL) for an iSCSI Target; defines LUN masking policy
aclMode String
Mode for Target connectivity.
id String
Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
managedBy String
Azure resource id. Indicates if this resource is managed by another Azure resource.
managedByExtended List<String>
List of Azure resource ids that manage this resource.
name String
The name of the resource
provisioningState String
State of the operation on the resource.
sessions List<String>
List of identifiers for active sessions on the iSCSI target
status String
Operational status of the iSCSI Target.
systemData Property Map
Resource metadata required by ARM RPC
targetIqn String
iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".
type String
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
endpoints List<String>
List of private IPv4 addresses to connect to the iSCSI Target.
luns List<Property Map>
List of LUNs to be exposed through iSCSI Target.
port Number
The port used by iSCSI Target portal group.
staticAcls List<Property Map>
Access Control List (ACL) for an iSCSI Target; defines LUN masking policy

Supporting Types

AclResponse

InitiatorIqn This property is required. string
iSCSI initiator IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:client".
MappedLuns This property is required. List<string>
List of LUN names mapped to the ACL.
InitiatorIqn This property is required. string
iSCSI initiator IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:client".
MappedLuns This property is required. []string
List of LUN names mapped to the ACL.
initiatorIqn This property is required. String
iSCSI initiator IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:client".
mappedLuns This property is required. List<String>
List of LUN names mapped to the ACL.
initiatorIqn This property is required. string
iSCSI initiator IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:client".
mappedLuns This property is required. string[]
List of LUN names mapped to the ACL.
initiator_iqn This property is required. str
iSCSI initiator IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:client".
mapped_luns This property is required. Sequence[str]
List of LUN names mapped to the ACL.
initiatorIqn This property is required. String
iSCSI initiator IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:client".
mappedLuns This property is required. List<String>
List of LUN names mapped to the ACL.

IscsiLunResponse

Lun This property is required. int
Specifies the Logical Unit Number of the iSCSI LUN.
ManagedDiskAzureResourceId This property is required. string
Azure Resource ID of the Managed Disk.
Name This property is required. string
User defined name for iSCSI LUN; example: "lun0"
Lun This property is required. int
Specifies the Logical Unit Number of the iSCSI LUN.
ManagedDiskAzureResourceId This property is required. string
Azure Resource ID of the Managed Disk.
Name This property is required. string
User defined name for iSCSI LUN; example: "lun0"
lun This property is required. Integer
Specifies the Logical Unit Number of the iSCSI LUN.
managedDiskAzureResourceId This property is required. String
Azure Resource ID of the Managed Disk.
name This property is required. String
User defined name for iSCSI LUN; example: "lun0"
lun This property is required. number
Specifies the Logical Unit Number of the iSCSI LUN.
managedDiskAzureResourceId This property is required. string
Azure Resource ID of the Managed Disk.
name This property is required. string
User defined name for iSCSI LUN; example: "lun0"
lun This property is required. int
Specifies the Logical Unit Number of the iSCSI LUN.
managed_disk_azure_resource_id This property is required. str
Azure Resource ID of the Managed Disk.
name This property is required. str
User defined name for iSCSI LUN; example: "lun0"
lun This property is required. Number
Specifies the Logical Unit Number of the iSCSI LUN.
managedDiskAzureResourceId This property is required. String
Azure Resource ID of the Managed Disk.
name This property is required. String
User defined name for iSCSI LUN; example: "lun0"

SystemMetadataResponse

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The type of identity that last modified the resource.
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The type of identity that last modified the resource.
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The type of identity that last modified the resource.
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.
createdAt string
The timestamp of resource creation (UTC).
createdBy string
The identity that created the resource.
createdByType string
The type of identity that created the resource.
lastModifiedAt string
The type of identity that last modified the resource.
lastModifiedBy string
The identity that last modified the resource.
lastModifiedByType string
The type of identity that last modified the resource.
created_at str
The timestamp of resource creation (UTC).
created_by str
The identity that created the resource.
created_by_type str
The type of identity that created the resource.
last_modified_at str
The type of identity that last modified the resource.
last_modified_by str
The identity that last modified the resource.
last_modified_by_type str
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The type of identity that last modified the resource.
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi