ReleaseFileSystemNfsV3Locks autoit Example
; This example requires the Chilkat API to have been previously unlocked.
; See Global Unlock Sample for sample code.
$oRest = ObjCreate("Chilkat_9_5_0.Rest")
Local $bSuccess
$oAuthAws = ObjCreate("Chilkat_9_5_0.AuthAws")
$oAuthAws.AccessKey = "AWS_ACCESS_KEY"
$oAuthAws.SecretKey = "AWS_SECRET_KEY"
; Don't forget to change the region to your particular region. (Also make the same change in the call to Connect below.)
$oAuthAws.Region = "us-west-2"
$oAuthAws.ServiceName = "fsx"
; SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
$oRest.SetAuthAws($oAuthAws)
; URL: https://fsx.us-west-2.amazonaws.com/
; Use the same region as specified above.
$bSuccess = $oRest.Connect("fsx.us-west-2.amazonaws.com",443,True,True)
If ($bSuccess <> True) Then
ConsoleWrite("ConnectFailReason: " & $oRest.ConnectFailReason & @CRLF)
ConsoleWrite($oRest.LastErrorText & @CRLF)
Exit
EndIf
; The following code creates the JSON request body.
; The JSON created by this code is shown below.
; Use this online tool to generate code from sample JSON:
; Generate Code to Create JSON
$oJson = ObjCreate("Chilkat_9_5_0.JsonObject")
$oJson.UpdateString("ClientRequestToken","string")
$oJson.UpdateString("FileSystemId","string")
; The JSON request body created by the above code:
; {
; "ClientRequestToken": "string",
; "FileSystemId": "string"
; }
$oRest.AddHeader("Content-Type","application/x-amz-json-1.1")
$oRest.AddHeader("X-Amz-Target","AWSSimbaAPIService_v20180301.ReleaseFileSystemNfsV3Locks")
$oSbRequestBody = ObjCreate("Chilkat_9_5_0.StringBuilder")
$oJson.EmitSb($oSbRequestBody)
$oSbResponseBody = ObjCreate("Chilkat_9_5_0.StringBuilder")
$bSuccess = $oRest.FullRequestSb("POST","/",$oSbRequestBody,$oSbResponseBody)
If ($bSuccess <> True) Then
ConsoleWrite($oRest.LastErrorText & @CRLF)
Exit
EndIf
Local $iRespStatusCode = $oRest.ResponseStatusCode
ConsoleWrite("response status code = " & $iRespStatusCode & @CRLF)
If ($iRespStatusCode <> 200) Then
ConsoleWrite("Response Header:" & @CRLF)
ConsoleWrite($oRest.ResponseHeader & @CRLF)
ConsoleWrite("Response Body:" & @CRLF)
ConsoleWrite($oSbResponseBody.GetAsString() & @CRLF)
Exit
EndIf
$oJResp = ObjCreate("Chilkat_9_5_0.JsonObject")
$oJResp.LoadSb($oSbResponseBody)
; The following code parses the JSON response.
; A sample JSON response is shown below the sample code.
; Use this online tool to generate parsing code from sample JSON:
; Generate Parsing Code from JSON
Local $sAdministrativeActionType
Local $iProgressPercent
Local $iRequestTime
Local $sStatus
Local $sTargetFileSystemValues
Local $iTargetSnapshotValuesCreationTime
Local $sTargetSnapshotValuesLifecycle
Local $sLifecycleTransitionReasonMessage
Local $sName
Local $sTargetSnapshotValuesResourceARN
Local $sSnapshotId
Local $sVolumeId
Local $iTargetVolumeValuesCreationTime
Local $sTargetVolumeValuesFileSystemId
Local $sTargetVolumeValuesLifecycle
Local $sTargetVolumeValuesName
Local $sFlexCacheEndpointType
Local $sJunctionPath
Local $sOntapVolumeType
Local $sSecurityStyle
Local $iSizeInMegabytes
Local $iStorageEfficiencyEnabled
Local $sStorageVirtualMachineId
Local $iStorageVirtualMachineRoot
Local $iCoolingPeriod
Local $sTieringPolicyName
Local $sUUID
Local $iCopyTagsToSnapshots
Local $sOpenZFSConfigurationDataCompressionType
Local $sCopyStrategy
Local $sSnapshotARN
Local $sParentVolumeId
Local $iReadOnly
Local $iRecordSizeKiB
Local $iStorageCapacityQuotaGiB
Local $iStorageCapacityReservationGiB
Local $sVolumePath
Local $sTargetVolumeValuesResourceARN
Local $sTargetVolumeValuesVolumeId
Local $sVolumeType
Local $iJ
Local $iCount_j
Local $strVal
Local $sKey
Local $sValue
Local $iK
Local $iCount_k
Local $sClients
Local $oJson1
Local $i1
Local $iCount_i1
Local $iId
Local $sV_Type
Local $iCreationTime = $oJResp.IntOf("FileSystem.CreationTime")
Local $sDNSName = $oJResp.StringOf("FileSystem.DNSName")
Local $sMessage = $oJResp.StringOf("FileSystem.FailureDetails.Message")
Local $sFileSystemId = $oJResp.StringOf("FileSystem.FileSystemId")
Local $sFileSystemType = $oJResp.StringOf("FileSystem.FileSystemType")
Local $sFileSystemTypeVersion = $oJResp.StringOf("FileSystem.FileSystemTypeVersion")
Local $sKmsKeyId = $oJResp.StringOf("FileSystem.KmsKeyId")
Local $sLifecycle = $oJResp.StringOf("FileSystem.Lifecycle")
Local $iAutomaticBackupRetentionDays = $oJResp.IntOf("FileSystem.LustreConfiguration.AutomaticBackupRetentionDays")
Local $iCopyTagsToBackups = $oJResp.IntOf("FileSystem.LustreConfiguration.CopyTagsToBackups")
Local $sDailyAutomaticBackupStartTime = $oJResp.StringOf("FileSystem.LustreConfiguration.DailyAutomaticBackupStartTime")
Local $sDataCompressionType = $oJResp.StringOf("FileSystem.LustreConfiguration.DataCompressionType")
Local $sAutoImportPolicy = $oJResp.StringOf("FileSystem.LustreConfiguration.DataRepositoryConfiguration.AutoImportPolicy")
Local $sExportPath = $oJResp.StringOf("FileSystem.LustreConfiguration.DataRepositoryConfiguration.ExportPath")
Local $sFailureDetailsMessage = $oJResp.StringOf("FileSystem.LustreConfiguration.DataRepositoryConfiguration.FailureDetails.Message")
Local $iImportedFileChunkSize = $oJResp.IntOf("FileSystem.LustreConfiguration.DataRepositoryConfiguration.ImportedFileChunkSize")
Local $sImportPath = $oJResp.StringOf("FileSystem.LustreConfiguration.DataRepositoryConfiguration.ImportPath")
Local $sDataRepositoryConfigurationLifecycle = $oJResp.StringOf("FileSystem.LustreConfiguration.DataRepositoryConfiguration.Lifecycle")
Local $sDeploymentType = $oJResp.StringOf("FileSystem.LustreConfiguration.DeploymentType")
Local $sDriveCacheType = $oJResp.StringOf("FileSystem.LustreConfiguration.DriveCacheType")
Local $sDestination = $oJResp.StringOf("FileSystem.LustreConfiguration.LogConfiguration.Destination")
Local $sLevel = $oJResp.StringOf("FileSystem.LustreConfiguration.LogConfiguration.Level")
Local $sMountName = $oJResp.StringOf("FileSystem.LustreConfiguration.MountName")
Local $iPerUnitStorageThroughput = $oJResp.IntOf("FileSystem.LustreConfiguration.PerUnitStorageThroughput")
Local $sWeeklyMaintenanceStartTime = $oJResp.StringOf("FileSystem.LustreConfiguration.WeeklyMaintenanceStartTime")
Local $iOntapConfigurationAutomaticBackupRetentionDays = $oJResp.IntOf("FileSystem.OntapConfiguration.AutomaticBackupRetentionDays")
Local $sOntapConfigurationDailyAutomaticBackupStartTime = $oJResp.StringOf("FileSystem.OntapConfiguration.DailyAutomaticBackupStartTime")
Local $sOntapConfigurationDeploymentType = $oJResp.StringOf("FileSystem.OntapConfiguration.DeploymentType")
Local $iIops = $oJResp.IntOf("FileSystem.OntapConfiguration.DiskIopsConfiguration.Iops")
Local $sMode = $oJResp.StringOf("FileSystem.OntapConfiguration.DiskIopsConfiguration.Mode")
Local $sEndpointIpAddressRange = $oJResp.StringOf("FileSystem.OntapConfiguration.EndpointIpAddressRange")
Local $sInterclusterDNSName = $oJResp.StringOf("FileSystem.OntapConfiguration.Endpoints.Intercluster.DNSName")
Local $sManagementDNSName = $oJResp.StringOf("FileSystem.OntapConfiguration.Endpoints.Management.DNSName")
Local $sPreferredSubnetId = $oJResp.StringOf("FileSystem.OntapConfiguration.PreferredSubnetId")
Local $iThroughputCapacity = $oJResp.IntOf("FileSystem.OntapConfiguration.ThroughputCapacity")
Local $sOntapConfigurationWeeklyMaintenanceStartTime = $oJResp.StringOf("FileSystem.OntapConfiguration.WeeklyMaintenanceStartTime")
Local $iOpenZFSConfigurationAutomaticBackupRetentionDays = $oJResp.IntOf("FileSystem.OpenZFSConfiguration.AutomaticBackupRetentionDays")
Local $iOpenZFSConfigurationCopyTagsToBackups = $oJResp.IntOf("FileSystem.OpenZFSConfiguration.CopyTagsToBackups")
Local $iCopyTagsToVolumes = $oJResp.IntOf("FileSystem.OpenZFSConfiguration.CopyTagsToVolumes")
Local $sOpenZFSConfigurationDailyAutomaticBackupStartTime = $oJResp.StringOf("FileSystem.OpenZFSConfiguration.DailyAutomaticBackupStartTime")
Local $sOpenZFSConfigurationDeploymentType = $oJResp.StringOf("FileSystem.OpenZFSConfiguration.DeploymentType")
Local $iDiskIopsConfigurationIops = $oJResp.IntOf("FileSystem.OpenZFSConfiguration.DiskIopsConfiguration.Iops")
Local $sDiskIopsConfigurationMode = $oJResp.StringOf("FileSystem.OpenZFSConfiguration.DiskIopsConfiguration.Mode")
Local $sRootVolumeId = $oJResp.StringOf("FileSystem.OpenZFSConfiguration.RootVolumeId")
Local $iOpenZFSConfigurationThroughputCapacity = $oJResp.IntOf("FileSystem.OpenZFSConfiguration.ThroughputCapacity")
Local $sOpenZFSConfigurationWeeklyMaintenanceStartTime = $oJResp.StringOf("FileSystem.OpenZFSConfiguration.WeeklyMaintenanceStartTime")
Local $sOwnerId = $oJResp.StringOf("FileSystem.OwnerId")
Local $sResourceARN = $oJResp.StringOf("FileSystem.ResourceARN")
Local $iStorageCapacity = $oJResp.IntOf("FileSystem.StorageCapacity")
Local $sStorageType = $oJResp.StringOf("FileSystem.StorageType")
Local $sVpcId = $oJResp.StringOf("FileSystem.VpcId")
Local $sActiveDirectoryId = $oJResp.StringOf("FileSystem.WindowsConfiguration.ActiveDirectoryId")
Local $sAuditLogDestination = $oJResp.StringOf("FileSystem.WindowsConfiguration.AuditLogConfiguration.AuditLogDestination")
Local $sFileAccessAuditLogLevel = $oJResp.StringOf("FileSystem.WindowsConfiguration.AuditLogConfiguration.FileAccessAuditLogLevel")
Local $sFileShareAccessAuditLogLevel = $oJResp.StringOf("FileSystem.WindowsConfiguration.AuditLogConfiguration.FileShareAccessAuditLogLevel")
Local $iWindowsConfigurationAutomaticBackupRetentionDays = $oJResp.IntOf("FileSystem.WindowsConfiguration.AutomaticBackupRetentionDays")
Local $iWindowsConfigurationCopyTagsToBackups = $oJResp.IntOf("FileSystem.WindowsConfiguration.CopyTagsToBackups")
Local $sWindowsConfigurationDailyAutomaticBackupStartTime = $oJResp.StringOf("FileSystem.WindowsConfiguration.DailyAutomaticBackupStartTime")
Local $sWindowsConfigurationDeploymentType = $oJResp.StringOf("FileSystem.WindowsConfiguration.DeploymentType")
Local $sPreferredFileServerIp = $oJResp.StringOf("FileSystem.WindowsConfiguration.PreferredFileServerIp")
Local $sWindowsConfigurationPreferredSubnetId = $oJResp.StringOf("FileSystem.WindowsConfiguration.PreferredSubnetId")
Local $sRemoteAdministrationEndpoint = $oJResp.StringOf("FileSystem.WindowsConfiguration.RemoteAdministrationEndpoint")
Local $sDomainName = $oJResp.StringOf("FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DomainName")
Local $sFileSystemAdministratorsGroup = $oJResp.StringOf("FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.FileSystemAdministratorsGroup")
Local $sOrganizationalUnitDistinguishedName = $oJResp.StringOf("FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.OrganizationalUnitDistinguishedName")
Local $sUserName = $oJResp.StringOf("FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.UserName")
Local $iWindowsConfigurationThroughputCapacity = $oJResp.IntOf("FileSystem.WindowsConfiguration.ThroughputCapacity")
Local $sWindowsConfigurationWeeklyMaintenanceStartTime = $oJResp.StringOf("FileSystem.WindowsConfiguration.WeeklyMaintenanceStartTime")
Local $i = 0
Local $iCount_i = $oJResp.SizeOfArray("FileSystem.AdministrativeActions")
While $i < $iCount_i
$oJResp.I = $i
$sAdministrativeActionType = $oJResp.StringOf("FileSystem.AdministrativeActions[i].AdministrativeActionType")
$sFailureDetailsMessage = $oJResp.StringOf("FileSystem.AdministrativeActions[i].FailureDetails.Message")
$iProgressPercent = $oJResp.IntOf("FileSystem.AdministrativeActions[i].ProgressPercent")
$iRequestTime = $oJResp.IntOf("FileSystem.AdministrativeActions[i].RequestTime")
$sStatus = $oJResp.StringOf("FileSystem.AdministrativeActions[i].Status")
$sTargetFileSystemValues = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetFileSystemValues")
$iTargetSnapshotValuesCreationTime = $oJResp.IntOf("FileSystem.AdministrativeActions[i].TargetSnapshotValues.CreationTime")
$sTargetSnapshotValuesLifecycle = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetSnapshotValues.Lifecycle")
$sLifecycleTransitionReasonMessage = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetSnapshotValues.LifecycleTransitionReason.Message")
$sName = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetSnapshotValues.Name")
$sTargetSnapshotValuesResourceARN = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetSnapshotValues.ResourceARN")
$sSnapshotId = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetSnapshotValues.SnapshotId")
$sVolumeId = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetSnapshotValues.VolumeId")
$iTargetVolumeValuesCreationTime = $oJResp.IntOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.CreationTime")
$sTargetVolumeValuesFileSystemId = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.FileSystemId")
$sTargetVolumeValuesLifecycle = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.Lifecycle")
$sLifecycleTransitionReasonMessage = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.LifecycleTransitionReason.Message")
$sTargetVolumeValuesName = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.Name")
$sFlexCacheEndpointType = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.FlexCacheEndpointType")
$sJunctionPath = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.JunctionPath")
$sOntapVolumeType = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.OntapVolumeType")
$sSecurityStyle = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.SecurityStyle")
$iSizeInMegabytes = $oJResp.IntOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.SizeInMegabytes")
$iStorageEfficiencyEnabled = $oJResp.IntOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.StorageEfficiencyEnabled")
$sStorageVirtualMachineId = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.StorageVirtualMachineId")
$iStorageVirtualMachineRoot = $oJResp.IntOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.StorageVirtualMachineRoot")
$iCoolingPeriod = $oJResp.IntOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.TieringPolicy.CoolingPeriod")
$sTieringPolicyName = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.TieringPolicy.Name")
$sUUID = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.UUID")
$iCopyTagsToSnapshots = $oJResp.IntOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.CopyTagsToSnapshots")
$sOpenZFSConfigurationDataCompressionType = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.DataCompressionType")
$sCopyStrategy = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.OriginSnapshot.CopyStrategy")
$sSnapshotARN = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.OriginSnapshot.SnapshotARN")
$sParentVolumeId = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.ParentVolumeId")
$iReadOnly = $oJResp.IntOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.ReadOnly")
$iRecordSizeKiB = $oJResp.IntOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.RecordSizeKiB")
$iStorageCapacityQuotaGiB = $oJResp.IntOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.StorageCapacityQuotaGiB")
$iStorageCapacityReservationGiB = $oJResp.IntOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.StorageCapacityReservationGiB")
$sVolumePath = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.VolumePath")
$sTargetVolumeValuesResourceARN = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.ResourceARN")
$sTargetVolumeValuesVolumeId = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.VolumeId")
$sVolumeType = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.VolumeType")
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("FileSystem.AdministrativeActions[i].TargetSnapshotValues.AdministrativeActions")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetSnapshotValues.AdministrativeActions[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("FileSystem.AdministrativeActions[i].TargetSnapshotValues.Tags")
While $iJ < $iCount_j
$oJResp.J = $iJ
$sKey = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetSnapshotValues.Tags[j].Key")
$sValue = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetSnapshotValues.Tags[j].Value")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("FileSystem.AdministrativeActions[i].TargetVolumeValues.AdministrativeActions")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.AdministrativeActions[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.NfsExports")
While $iJ < $iCount_j
$oJResp.J = $iJ
$iK = 0
$iCount_k = $oJResp.SizeOfArray("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.NfsExports[j].ClientConfigurations")
While $iK < $iCount_k
$oJResp.K = $iK
$sClients = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.NfsExports[j].ClientConfigurations[k].Clients")
$oJson1 = $oJResp.ObjectOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.NfsExports[j].ClientConfigurations[k]")
$i1 = 0
$iCount_i1 = $oJson1.SizeOfArray("Options")
While $i1 < $iCount_i1
$oJson1.I = $i1
$strVal = $oJson1.StringOf("Options[i]")
$i1 = $i1 + 1
Wend
$iK = $iK + 1
Wend
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas")
While $iJ < $iCount_j
$oJResp.J = $iJ
$iId = $oJResp.IntOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas[j].Id")
$iStorageCapacityQuotaGiB = $oJResp.IntOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas[j].StorageCapacityQuotaGiB")
$sV_Type = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas[j].Type")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("FileSystem.AdministrativeActions[i].TargetVolumeValues.Tags")
While $iJ < $iCount_j
$oJResp.J = $iJ
$sKey = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.Tags[j].Key")
$sValue = $oJResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.Tags[j].Value")
$iJ = $iJ + 1
Wend
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("FileSystem.NetworkInterfaceIds")
While $i < $iCount_i
$oJResp.I = $i
$strVal = $oJResp.StringOf("FileSystem.NetworkInterfaceIds[i]")
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("FileSystem.OntapConfiguration.Endpoints.Intercluster.IpAddresses")
While $i < $iCount_i
$oJResp.I = $i
$strVal = $oJResp.StringOf("FileSystem.OntapConfiguration.Endpoints.Intercluster.IpAddresses[i]")
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("FileSystem.OntapConfiguration.Endpoints.Management.IpAddresses")
While $i < $iCount_i
$oJResp.I = $i
$strVal = $oJResp.StringOf("FileSystem.OntapConfiguration.Endpoints.Management.IpAddresses[i]")
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("FileSystem.OntapConfiguration.RouteTableIds")
While $i < $iCount_i
$oJResp.I = $i
$strVal = $oJResp.StringOf("FileSystem.OntapConfiguration.RouteTableIds[i]")
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("FileSystem.SubnetIds")
While $i < $iCount_i
$oJResp.I = $i
$strVal = $oJResp.StringOf("FileSystem.SubnetIds[i]")
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("FileSystem.Tags")
While $i < $iCount_i
$oJResp.I = $i
$sKey = $oJResp.StringOf("FileSystem.Tags[i].Key")
$sValue = $oJResp.StringOf("FileSystem.Tags[i].Value")
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("FileSystem.WindowsConfiguration.Aliases")
While $i < $iCount_i
$oJResp.I = $i
$sLifecycle = $oJResp.StringOf("FileSystem.WindowsConfiguration.Aliases[i].Lifecycle")
$sName = $oJResp.StringOf("FileSystem.WindowsConfiguration.Aliases[i].Name")
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("FileSystem.WindowsConfiguration.MaintenanceOperationsInProgress")
While $i < $iCount_i
$oJResp.I = $i
$strVal = $oJResp.StringOf("FileSystem.WindowsConfiguration.MaintenanceOperationsInProgress[i]")
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DnsIps")
While $i < $iCount_i
$oJResp.I = $i
$strVal = $oJResp.StringOf("FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DnsIps[i]")
$i = $i + 1
Wend
; A sample JSON response body parsed by the above code:
; {
; "FileSystem": {
; "AdministrativeActions": [
; {
; "AdministrativeActionType": "string",
; "FailureDetails": {
; "Message": "string"
; },
; "ProgressPercent": number,
; "RequestTime": number,
; "Status": "string",
; "TargetFileSystemValues": "FileSystem",
; "TargetSnapshotValues": {
; "AdministrativeActions": [
; "AdministrativeAction"
; ],
; "CreationTime": number,
; "Lifecycle": "string",
; "LifecycleTransitionReason": {
; "Message": "string"
; },
; "Name": "string",
; "ResourceARN": "string",
; "SnapshotId": "string",
; "Tags": [
; {
; "Key": "string",
; "Value": "string"
; }
; ],
; "VolumeId": "string"
; },
; "TargetVolumeValues": {
; "AdministrativeActions": [
; "AdministrativeAction"
; ],
; "CreationTime": number,
; "FileSystemId": "string",
; "Lifecycle": "string",
; "LifecycleTransitionReason": {
; "Message": "string"
; },
; "Name": "string",
; "OntapConfiguration": {
; "FlexCacheEndpointType": "string",
; "JunctionPath": "string",
; "OntapVolumeType": "string",
; "SecurityStyle": "string",
; "SizeInMegabytes": number,
; "StorageEfficiencyEnabled": boolean,
; "StorageVirtualMachineId": "string",
; "StorageVirtualMachineRoot": boolean,
; "TieringPolicy": {
; "CoolingPeriod": number,
; "Name": "string"
; },
; "UUID": "string"
; },
; "OpenZFSConfiguration": {
; "CopyTagsToSnapshots": boolean,
; "DataCompressionType": "string",
; "NfsExports": [
; {
; "ClientConfigurations": [
; {
; "Clients": "string",
; "Options": [
; "string"
; ]
; }
; ]
; }
; ],
; "OriginSnapshot": {
; "CopyStrategy": "string",
; "SnapshotARN": "string"
; },
; "ParentVolumeId": "string",
; "ReadOnly": boolean,
; "RecordSizeKiB": number,
; "StorageCapacityQuotaGiB": number,
; "StorageCapacityReservationGiB": number,
; "UserAndGroupQuotas": [
; {
; "Id": number,
; "StorageCapacityQuotaGiB": number,
; "Type": "string"
; }
; ],
; "VolumePath": "string"
; },
; "ResourceARN": "string",
; "Tags": [
; {
; "Key": "string",
; "Value": "string"
; }
; ],
; "VolumeId": "string",
; "VolumeType": "string"
; }
; }
; ],
; "CreationTime": number,
; "DNSName": "string",
; "FailureDetails": {
; "Message": "string"
; },
; "FileSystemId": "string",
; "FileSystemType": "string",
; "FileSystemTypeVersion": "string",
; "KmsKeyId": "string",
; "Lifecycle": "string",
; "LustreConfiguration": {
; "AutomaticBackupRetentionDays": number,
; "CopyTagsToBackups": boolean,
; "DailyAutomaticBackupStartTime": "string",
; "DataCompressionType": "string",
; "DataRepositoryConfiguration": {
; "AutoImportPolicy": "string",
; "ExportPath": "string",
; "FailureDetails": {
; "Message": "string"
; },
; "ImportedFileChunkSize": number,
; "ImportPath": "string",
; "Lifecycle": "string"
; },
; "DeploymentType": "string",
; "DriveCacheType": "string",
; "LogConfiguration": {
; "Destination": "string",
; "Level": "string"
; },
; "MountName": "string",
; "PerUnitStorageThroughput": number,
; "WeeklyMaintenanceStartTime": "string"
; },
; "NetworkInterfaceIds": [
; "string"
; ],
; "OntapConfiguration": {
; "AutomaticBackupRetentionDays": number,
; "DailyAutomaticBackupStartTime": "string",
; "DeploymentType": "string",
; "DiskIopsConfiguration": {
; "Iops": number,
; "Mode": "string"
; },
; "EndpointIpAddressRange": "string",
; "Endpoints": {
; "Intercluster": {
; "DNSName": "string",
; "IpAddresses": [
; "string"
; ]
; },
; "Management": {
; "DNSName": "string",
; "IpAddresses": [
; "string"
; ]
; }
; },
; "PreferredSubnetId": "string",
; "RouteTableIds": [
; "string"
; ],
; "ThroughputCapacity": number,
; "WeeklyMaintenanceStartTime": "string"
; },
; "OpenZFSConfiguration": {
; "AutomaticBackupRetentionDays": number,
; "CopyTagsToBackups": boolean,
; "CopyTagsToVolumes": boolean,
; "DailyAutomaticBackupStartTime": "string",
; "DeploymentType": "string",
; "DiskIopsConfiguration": {
; "Iops": number,
; "Mode": "string"
; },
; "RootVolumeId": "string",
; "ThroughputCapacity": number,
; "WeeklyMaintenanceStartTime": "string"
; },
; "OwnerId": "string",
; "ResourceARN": "string",
; "StorageCapacity": number,
; "StorageType": "string",
; "SubnetIds": [
; "string"
; ],
; "Tags": [
; {
; "Key": "string",
; "Value": "string"
; }
; ],
; "VpcId": "string",
; "WindowsConfiguration": {
; "ActiveDirectoryId": "string",
; "Aliases": [
; {
; "Lifecycle": "string",
; "Name": "string"
; }
; ],
; "AuditLogConfiguration": {
; "AuditLogDestination": "string",
; "FileAccessAuditLogLevel": "string",
; "FileShareAccessAuditLogLevel": "string"
; },
; "AutomaticBackupRetentionDays": number,
; "CopyTagsToBackups": boolean,
; "DailyAutomaticBackupStartTime": "string",
; "DeploymentType": "string",
; "MaintenanceOperationsInProgress": [
; "string"
; ],
; "PreferredFileServerIp": "string",
; "PreferredSubnetId": "string",
; "RemoteAdministrationEndpoint": "string",
; "SelfManagedActiveDirectoryConfiguration": {
; "DnsIps": [
; "string"
; ],
; "DomainName": "string",
; "FileSystemAdministratorsGroup": "string",
; "OrganizationalUnitDistinguishedName": "string",
; "UserName": "string"
; },
; "ThroughputCapacity": number,
; "WeeklyMaintenanceStartTime": "string"
; }
; }
; }