This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.storagepool.getIscsiTarget
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 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>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]func LookupIscsiTarget(ctx *Context, args *LookupIscsiTargetArgs, opts ...InvokeOption) (*LookupIscsiTargetResult, error)
func LookupIscsiTargetOutput(ctx *Context, args *LookupIscsiTargetOutputArgs, opts ...InvokeOption) LookupIscsiTargetResultOutput> 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)
}public static CompletableFuture<GetIscsiTargetResult> getIscsiTarget(GetIscsiTargetArgs args, InvokeOptions options)
public static Output<GetIscsiTargetResult> getIscsiTarget(GetIscsiTargetArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:storagepool:getIscsiTarget
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DiskPool stringName 
- The name of the Disk Pool.
- IscsiTarget stringName 
- The name of the iSCSI Target.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- DiskPool stringName 
- The name of the Disk Pool.
- IscsiTarget stringName 
- The name of the iSCSI Target.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- diskPool StringName 
- The name of the Disk Pool.
- iscsiTarget StringName 
- The name of the iSCSI Target.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- diskPool stringName 
- The name of the Disk Pool.
- iscsiTarget stringName 
- The name of the iSCSI Target.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- disk_pool_ strname 
- The name of the Disk Pool.
- iscsi_target_ strname 
- The name of the iSCSI Target.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- diskPool StringName 
- The name of the Disk Pool.
- iscsiTarget StringName 
- The name of the iSCSI Target.
- resourceGroup StringName 
- 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.
- ManagedBy List<string>Extended 
- 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.Azure Native. Storage Pool. Outputs. System Metadata Response 
- 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.Azure Native. Storage Pool. Outputs. Iscsi Lun Response> 
- List of LUNs to be exposed through iSCSI Target.
- Port int
- The port used by iSCSI Target portal group.
- StaticAcls List<Pulumi.Azure Native. Storage Pool. Outputs. Acl Response> 
- 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.
- ManagedBy []stringExtended 
- 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 SystemMetadata Response 
- 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
[]IscsiLun Response 
- 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.
- managedBy List<String>Extended 
- 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 SystemMetadata Response 
- 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<IscsiLun Response> 
- 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.
- managedBy string[]Extended 
- 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 SystemMetadata Response 
- 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
IscsiLun Response[] 
- 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_ Sequence[str]extended 
- 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 SystemMetadata Response 
- 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[IscsiLun Response] 
- 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.
- managedBy List<String>Extended 
- 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 string
- iSCSI initiator IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:client".
- MappedLuns List<string>
- List of LUN names mapped to the ACL.
- InitiatorIqn string
- iSCSI initiator IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:client".
- MappedLuns []string
- List of LUN names mapped to the ACL.
- initiatorIqn String
- iSCSI initiator IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:client".
- mappedLuns List<String>
- List of LUN names mapped to the ACL.
- initiatorIqn string
- iSCSI initiator IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:client".
- mappedLuns string[]
- List of LUN names mapped to the ACL.
- initiator_iqn str
- iSCSI initiator IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:client".
- mapped_luns Sequence[str]
- List of LUN names mapped to the ACL.
- initiatorIqn String
- iSCSI initiator IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:client".
- mappedLuns List<String>
- List of LUN names mapped to the ACL.
IscsiLunResponse  
- Lun int
- Specifies the Logical Unit Number of the iSCSI LUN.
- ManagedDisk stringAzure Resource Id 
- Azure Resource ID of the Managed Disk.
- Name string
- User defined name for iSCSI LUN; example: "lun0"
- Lun int
- Specifies the Logical Unit Number of the iSCSI LUN.
- ManagedDisk stringAzure Resource Id 
- Azure Resource ID of the Managed Disk.
- Name string
- User defined name for iSCSI LUN; example: "lun0"
- lun Integer
- Specifies the Logical Unit Number of the iSCSI LUN.
- managedDisk StringAzure Resource Id 
- Azure Resource ID of the Managed Disk.
- name String
- User defined name for iSCSI LUN; example: "lun0"
- lun number
- Specifies the Logical Unit Number of the iSCSI LUN.
- managedDisk stringAzure Resource Id 
- Azure Resource ID of the Managed Disk.
- name string
- User defined name for iSCSI LUN; example: "lun0"
- lun int
- Specifies the Logical Unit Number of the iSCSI LUN.
- managed_disk_ strazure_ resource_ id 
- Azure Resource ID of the Managed Disk.
- name str
- User defined name for iSCSI LUN; example: "lun0"
- lun Number
- Specifies the Logical Unit Number of the iSCSI LUN.
- managedDisk StringAzure Resource Id 
- Azure Resource ID of the Managed Disk.
- name 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The type of identity that last modified the resource.
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The type of identity that last modified the resource.
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The type of identity that last modified the resource.
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The type of identity that last modified the resource.
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- 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_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The type of identity that last modified the resource.
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The type of identity that last modified the resource.
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi