UpdateVolume PowerBuilder Example
integer li_rc
oleobject loo_Rest
integer li_Success
oleobject loo_AuthAws
oleobject loo_Json
oleobject loo_SbRequestBody
oleobject loo_SbResponseBody
integer li_RespStatusCode
oleobject loo_JResp
string ls_AdministrativeActionType
string ls_FailureDetailsMessage
integer li_ProgressPercent
integer li_RequestTime
string ls_Status
integer li_TargetFileSystemValuesCreationTime
string ls_DNSName
string ls_TargetFileSystemValuesFileSystemId
string ls_FileSystemType
string ls_FileSystemTypeVersion
string ls_KmsKeyId
string ls_TargetFileSystemValuesLifecycle
integer li_AutomaticBackupRetentionDays
integer li_CopyTagsToBackups
string ls_DailyAutomaticBackupStartTime
string ls_LustreConfigurationDataCompressionType
string ls_AutoImportPolicy
string ls_ExportPath
integer li_ImportedFileChunkSize
string ls_ImportPath
string ls_DataRepositoryConfigurationLifecycle
string ls_DeploymentType
string ls_DriveCacheType
string ls_Destination
string ls_Level
string ls_MountName
integer li_PerUnitStorageThroughput
string ls_WeeklyMaintenanceStartTime
integer li_OntapConfigurationAutomaticBackupRetentionDays
string ls_OntapConfigurationDailyAutomaticBackupStartTime
string ls_OntapConfigurationDeploymentType
integer li_Iops
string ls_Mode
string ls_EndpointIpAddressRange
string ls_InterclusterDNSName
string ls_ManagementDNSName
string ls_PreferredSubnetId
integer li_ThroughputCapacity
string ls_OntapConfigurationWeeklyMaintenanceStartTime
integer li_OpenZFSConfigurationAutomaticBackupRetentionDays
integer li_OpenZFSConfigurationCopyTagsToBackups
integer li_CopyTagsToVolumes
string ls_OpenZFSConfigurationDailyAutomaticBackupStartTime
string ls_OpenZFSConfigurationDeploymentType
integer li_DiskIopsConfigurationIops
string ls_DiskIopsConfigurationMode
string ls_RootVolumeId
integer li_OpenZFSConfigurationThroughputCapacity
string ls_OpenZFSConfigurationWeeklyMaintenanceStartTime
string ls_OwnerId
string ls_TargetFileSystemValuesResourceARN
integer li_StorageCapacity
string ls_StorageType
string ls_VpcId
string ls_ActiveDirectoryId
string ls_AuditLogDestination
string ls_FileAccessAuditLogLevel
string ls_FileShareAccessAuditLogLevel
integer li_WindowsConfigurationAutomaticBackupRetentionDays
integer li_WindowsConfigurationCopyTagsToBackups
string ls_WindowsConfigurationDailyAutomaticBackupStartTime
string ls_WindowsConfigurationDeploymentType
string ls_PreferredFileServerIp
string ls_WindowsConfigurationPreferredSubnetId
string ls_RemoteAdministrationEndpoint
string ls_DomainName
string ls_FileSystemAdministratorsGroup
string ls_OrganizationalUnitDistinguishedName
string ls_UserName
integer li_WindowsConfigurationThroughputCapacity
string ls_WindowsConfigurationWeeklyMaintenanceStartTime
integer li_TargetSnapshotValuesCreationTime
string ls_TargetSnapshotValuesLifecycle
string ls_LifecycleTransitionReasonMessage
string ls_TargetSnapshotValuesName
string ls_TargetSnapshotValuesResourceARN
string ls_SnapshotId
string ls_TargetSnapshotValuesVolumeId
string ls_TargetVolumeValues
integer j
integer li_Count_j
string ls_StrVal
string ls_Key
string ls_Value
string ls_Clients
integer k
integer li_Count_k
integer li_Id
string ls_V_Type
integer li_CreationTime
string ls_FileSystemId
string ls_Lifecycle
string ls_Message
string ls_Name
string ls_FlexCacheEndpointType
string ls_JunctionPath
string ls_OntapVolumeType
string ls_SecurityStyle
integer li_SizeInMegabytes
integer li_StorageEfficiencyEnabled
string ls_StorageVirtualMachineId
integer li_StorageVirtualMachineRoot
integer li_CoolingPeriod
string ls_TieringPolicyName
string ls_UUID
integer li_CopyTagsToSnapshots
string ls_DataCompressionType
string ls_CopyStrategy
string ls_SnapshotARN
string ls_ParentVolumeId
integer li_ReadOnly
integer li_RecordSizeKiB
integer li_StorageCapacityQuotaGiB
integer li_StorageCapacityReservationGiB
string ls_VolumePath
string ls_ResourceARN
string ls_VolumeId
string ls_VolumeType
integer i
integer li_Count_i
// This example requires the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
loo_Rest = create oleobject
li_rc = loo_Rest.ConnectToNewObject("Chilkat_9_5_0.Rest")
if li_rc < 0 then
destroy loo_Rest
MessageBox("Error","Connecting to COM object failed")
return
end if
loo_AuthAws = create oleobject
li_rc = loo_AuthAws.ConnectToNewObject("Chilkat_9_5_0.AuthAws")
loo_AuthAws.AccessKey = "AWS_ACCESS_KEY"
loo_AuthAws.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.)
loo_AuthAws.Region = "us-west-2"
loo_AuthAws.ServiceName = "fsx"
// SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
loo_Rest.SetAuthAws(loo_AuthAws)
// URL: https://fsx.us-west-2.amazonaws.com/
// Use the same region as specified above.
li_Success = loo_Rest.Connect("fsx.us-west-2.amazonaws.com",443,1,1)
if li_Success <> 1 then
Write-Debug "ConnectFailReason: " + string(loo_Rest.ConnectFailReason)
Write-Debug loo_Rest.LastErrorText
destroy loo_Rest
destroy loo_AuthAws
return
end if
// 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
loo_Json = create oleobject
li_rc = loo_Json.ConnectToNewObject("Chilkat_9_5_0.JsonObject")
loo_Json.UpdateString("ClientRequestToken","string")
loo_Json.UpdateString("Name","string")
loo_Json.UpdateString("OntapConfiguration.JunctionPath","string")
loo_Json.UpdateString("OntapConfiguration.SecurityStyle","string")
loo_Json.UpdateInt("OntapConfiguration.SizeInMegabytes",123)
loo_Json.UpdateInt("OntapConfiguration.StorageEfficiencyEnabled",123)
loo_Json.UpdateInt("OntapConfiguration.TieringPolicy.CoolingPeriod",123)
loo_Json.UpdateString("OntapConfiguration.TieringPolicy.Name","string")
loo_Json.UpdateString("OpenZFSConfiguration.DataCompressionType","string")
loo_Json.UpdateString("OpenZFSConfiguration.NfsExports[0].ClientConfigurations[0].Clients","string")
loo_Json.UpdateString("OpenZFSConfiguration.NfsExports[0].ClientConfigurations[0].Options[0]","string")
loo_Json.UpdateInt("OpenZFSConfiguration.ReadOnly",123)
loo_Json.UpdateInt("OpenZFSConfiguration.RecordSizeKiB",123)
loo_Json.UpdateInt("OpenZFSConfiguration.StorageCapacityQuotaGiB",123)
loo_Json.UpdateInt("OpenZFSConfiguration.StorageCapacityReservationGiB",123)
loo_Json.UpdateInt("OpenZFSConfiguration.UserAndGroupQuotas[0].Id",123)
loo_Json.UpdateInt("OpenZFSConfiguration.UserAndGroupQuotas[0].StorageCapacityQuotaGiB",123)
loo_Json.UpdateString("OpenZFSConfiguration.UserAndGroupQuotas[0].Type","string")
loo_Json.UpdateString("VolumeId","string")
// The JSON request body created by the above code:
// {
// "ClientRequestToken": "string",
// "Name": "string",
// "OntapConfiguration": {
// "JunctionPath": "string",
// "SecurityStyle": "string",
// "SizeInMegabytes": number,
// "StorageEfficiencyEnabled": boolean,
// "TieringPolicy": {
// "CoolingPeriod": number,
// "Name": "string"
// }
// },
// "OpenZFSConfiguration": {
// "DataCompressionType": "string",
// "NfsExports": [
// {
// "ClientConfigurations": [
// {
// "Clients": "string",
// "Options": [
// "string"
// ]
// }
// ]
// }
// ],
// "ReadOnly": boolean,
// "RecordSizeKiB": number,
// "StorageCapacityQuotaGiB": number,
// "StorageCapacityReservationGiB": number,
// "UserAndGroupQuotas": [
// {
// "Id": number,
// "StorageCapacityQuotaGiB": number,
// "Type": "string"
// }
// ]
// },
// "VolumeId": "string"
// }
loo_Rest.AddHeader("Content-Type","application/x-amz-json-1.1")
loo_Rest.AddHeader("X-Amz-Target","AWSSimbaAPIService_v20180301.UpdateVolume")
loo_SbRequestBody = create oleobject
li_rc = loo_SbRequestBody.ConnectToNewObject("Chilkat_9_5_0.StringBuilder")
loo_Json.EmitSb(loo_SbRequestBody)
loo_SbResponseBody = create oleobject
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat_9_5_0.StringBuilder")
li_Success = loo_Rest.FullRequestSb("POST","/",loo_SbRequestBody,loo_SbResponseBody)
if li_Success <> 1 then
Write-Debug loo_Rest.LastErrorText
destroy loo_Rest
destroy loo_AuthAws
destroy loo_Json
destroy loo_SbRequestBody
destroy loo_SbResponseBody
return
end if
li_RespStatusCode = loo_Rest.ResponseStatusCode
Write-Debug "response status code = " + string(li_RespStatusCode)
if li_RespStatusCode <> 200 then
Write-Debug "Response Header:"
Write-Debug loo_Rest.ResponseHeader
Write-Debug "Response Body:"
Write-Debug loo_SbResponseBody.GetAsString()
destroy loo_Rest
destroy loo_AuthAws
destroy loo_Json
destroy loo_SbRequestBody
destroy loo_SbResponseBody
return
end if
loo_JResp = create oleobject
li_rc = loo_JResp.ConnectToNewObject("Chilkat_9_5_0.JsonObject")
loo_JResp.LoadSb(loo_SbResponseBody)
// 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
li_CreationTime = loo_JResp.IntOf("Volume.CreationTime")
ls_FileSystemId = loo_JResp.StringOf("Volume.FileSystemId")
ls_Lifecycle = loo_JResp.StringOf("Volume.Lifecycle")
ls_Message = loo_JResp.StringOf("Volume.LifecycleTransitionReason.Message")
ls_Name = loo_JResp.StringOf("Volume.Name")
ls_FlexCacheEndpointType = loo_JResp.StringOf("Volume.OntapConfiguration.FlexCacheEndpointType")
ls_JunctionPath = loo_JResp.StringOf("Volume.OntapConfiguration.JunctionPath")
ls_OntapVolumeType = loo_JResp.StringOf("Volume.OntapConfiguration.OntapVolumeType")
ls_SecurityStyle = loo_JResp.StringOf("Volume.OntapConfiguration.SecurityStyle")
li_SizeInMegabytes = loo_JResp.IntOf("Volume.OntapConfiguration.SizeInMegabytes")
li_StorageEfficiencyEnabled = loo_JResp.IntOf("Volume.OntapConfiguration.StorageEfficiencyEnabled")
ls_StorageVirtualMachineId = loo_JResp.StringOf("Volume.OntapConfiguration.StorageVirtualMachineId")
li_StorageVirtualMachineRoot = loo_JResp.IntOf("Volume.OntapConfiguration.StorageVirtualMachineRoot")
li_CoolingPeriod = loo_JResp.IntOf("Volume.OntapConfiguration.TieringPolicy.CoolingPeriod")
ls_TieringPolicyName = loo_JResp.StringOf("Volume.OntapConfiguration.TieringPolicy.Name")
ls_UUID = loo_JResp.StringOf("Volume.OntapConfiguration.UUID")
li_CopyTagsToSnapshots = loo_JResp.IntOf("Volume.OpenZFSConfiguration.CopyTagsToSnapshots")
ls_DataCompressionType = loo_JResp.StringOf("Volume.OpenZFSConfiguration.DataCompressionType")
ls_CopyStrategy = loo_JResp.StringOf("Volume.OpenZFSConfiguration.OriginSnapshot.CopyStrategy")
ls_SnapshotARN = loo_JResp.StringOf("Volume.OpenZFSConfiguration.OriginSnapshot.SnapshotARN")
ls_ParentVolumeId = loo_JResp.StringOf("Volume.OpenZFSConfiguration.ParentVolumeId")
li_ReadOnly = loo_JResp.IntOf("Volume.OpenZFSConfiguration.ReadOnly")
li_RecordSizeKiB = loo_JResp.IntOf("Volume.OpenZFSConfiguration.RecordSizeKiB")
li_StorageCapacityQuotaGiB = loo_JResp.IntOf("Volume.OpenZFSConfiguration.StorageCapacityQuotaGiB")
li_StorageCapacityReservationGiB = loo_JResp.IntOf("Volume.OpenZFSConfiguration.StorageCapacityReservationGiB")
ls_VolumePath = loo_JResp.StringOf("Volume.OpenZFSConfiguration.VolumePath")
ls_ResourceARN = loo_JResp.StringOf("Volume.ResourceARN")
ls_VolumeId = loo_JResp.StringOf("Volume.VolumeId")
ls_VolumeType = loo_JResp.StringOf("Volume.VolumeType")
i = 0
li_Count_i = loo_JResp.SizeOfArray("Volume.AdministrativeActions")
do while i < li_Count_i
loo_JResp.I = i
ls_AdministrativeActionType = loo_JResp.StringOf("Volume.AdministrativeActions[i].AdministrativeActionType")
ls_FailureDetailsMessage = loo_JResp.StringOf("Volume.AdministrativeActions[i].FailureDetails.Message")
li_ProgressPercent = loo_JResp.IntOf("Volume.AdministrativeActions[i].ProgressPercent")
li_RequestTime = loo_JResp.IntOf("Volume.AdministrativeActions[i].RequestTime")
ls_Status = loo_JResp.StringOf("Volume.AdministrativeActions[i].Status")
li_TargetFileSystemValuesCreationTime = loo_JResp.IntOf("Volume.AdministrativeActions[i].TargetFileSystemValues.CreationTime")
ls_DNSName = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.DNSName")
ls_FailureDetailsMessage = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.FailureDetails.Message")
ls_TargetFileSystemValuesFileSystemId = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.FileSystemId")
ls_FileSystemType = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.FileSystemType")
ls_FileSystemTypeVersion = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.FileSystemTypeVersion")
ls_KmsKeyId = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.KmsKeyId")
ls_TargetFileSystemValuesLifecycle = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.Lifecycle")
li_AutomaticBackupRetentionDays = loo_JResp.IntOf("Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.AutomaticBackupRetentionDays")
li_CopyTagsToBackups = loo_JResp.IntOf("Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.CopyTagsToBackups")
ls_DailyAutomaticBackupStartTime = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DailyAutomaticBackupStartTime")
ls_LustreConfigurationDataCompressionType = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DataCompressionType")
ls_AutoImportPolicy = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.AutoImportPolicy")
ls_ExportPath = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.ExportPath")
ls_FailureDetailsMessage = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.FailureDetails.Message")
li_ImportedFileChunkSize = loo_JResp.IntOf("Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.ImportedFileChunkSize")
ls_ImportPath = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.ImportPath")
ls_DataRepositoryConfigurationLifecycle = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.Lifecycle")
ls_DeploymentType = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DeploymentType")
ls_DriveCacheType = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DriveCacheType")
ls_Destination = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.LogConfiguration.Destination")
ls_Level = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.LogConfiguration.Level")
ls_MountName = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.MountName")
li_PerUnitStorageThroughput = loo_JResp.IntOf("Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.PerUnitStorageThroughput")
ls_WeeklyMaintenanceStartTime = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.WeeklyMaintenanceStartTime")
li_OntapConfigurationAutomaticBackupRetentionDays = loo_JResp.IntOf("Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.AutomaticBackupRetentionDays")
ls_OntapConfigurationDailyAutomaticBackupStartTime = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.DailyAutomaticBackupStartTime")
ls_OntapConfigurationDeploymentType = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.DeploymentType")
li_Iops = loo_JResp.IntOf("Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.DiskIopsConfiguration.Iops")
ls_Mode = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.DiskIopsConfiguration.Mode")
ls_EndpointIpAddressRange = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.EndpointIpAddressRange")
ls_InterclusterDNSName = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.Endpoints.Intercluster.DNSName")
ls_ManagementDNSName = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.Endpoints.Management.DNSName")
ls_PreferredSubnetId = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.PreferredSubnetId")
li_ThroughputCapacity = loo_JResp.IntOf("Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.ThroughputCapacity")
ls_OntapConfigurationWeeklyMaintenanceStartTime = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.WeeklyMaintenanceStartTime")
li_OpenZFSConfigurationAutomaticBackupRetentionDays = loo_JResp.IntOf("Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.AutomaticBackupRetentionDays")
li_OpenZFSConfigurationCopyTagsToBackups = loo_JResp.IntOf("Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.CopyTagsToBackups")
li_CopyTagsToVolumes = loo_JResp.IntOf("Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.CopyTagsToVolumes")
ls_OpenZFSConfigurationDailyAutomaticBackupStartTime = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.DailyAutomaticBackupStartTime")
ls_OpenZFSConfigurationDeploymentType = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.DeploymentType")
li_DiskIopsConfigurationIops = loo_JResp.IntOf("Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.DiskIopsConfiguration.Iops")
ls_DiskIopsConfigurationMode = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.DiskIopsConfiguration.Mode")
ls_RootVolumeId = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.RootVolumeId")
li_OpenZFSConfigurationThroughputCapacity = loo_JResp.IntOf("Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.ThroughputCapacity")
ls_OpenZFSConfigurationWeeklyMaintenanceStartTime = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.WeeklyMaintenanceStartTime")
ls_OwnerId = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.OwnerId")
ls_TargetFileSystemValuesResourceARN = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.ResourceARN")
li_StorageCapacity = loo_JResp.IntOf("Volume.AdministrativeActions[i].TargetFileSystemValues.StorageCapacity")
ls_StorageType = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.StorageType")
ls_VpcId = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.VpcId")
ls_ActiveDirectoryId = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.ActiveDirectoryId")
ls_AuditLogDestination = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.AuditLogConfiguration.AuditLogDestination")
ls_FileAccessAuditLogLevel = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.AuditLogConfiguration.FileAccessAuditLogLevel")
ls_FileShareAccessAuditLogLevel = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.AuditLogConfiguration.FileShareAccessAuditLogLevel")
li_WindowsConfigurationAutomaticBackupRetentionDays = loo_JResp.IntOf("Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.AutomaticBackupRetentionDays")
li_WindowsConfigurationCopyTagsToBackups = loo_JResp.IntOf("Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.CopyTagsToBackups")
ls_WindowsConfigurationDailyAutomaticBackupStartTime = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.DailyAutomaticBackupStartTime")
ls_WindowsConfigurationDeploymentType = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.DeploymentType")
ls_PreferredFileServerIp = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.PreferredFileServerIp")
ls_WindowsConfigurationPreferredSubnetId = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.PreferredSubnetId")
ls_RemoteAdministrationEndpoint = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.RemoteAdministrationEndpoint")
ls_DomainName = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DomainName")
ls_FileSystemAdministratorsGroup = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.FileSystemAdministratorsGroup")
ls_OrganizationalUnitDistinguishedName = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.OrganizationalUnitDistinguishedName")
ls_UserName = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.UserName")
li_WindowsConfigurationThroughputCapacity = loo_JResp.IntOf("Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.ThroughputCapacity")
ls_WindowsConfigurationWeeklyMaintenanceStartTime = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.WeeklyMaintenanceStartTime")
li_TargetSnapshotValuesCreationTime = loo_JResp.IntOf("Volume.AdministrativeActions[i].TargetSnapshotValues.CreationTime")
ls_TargetSnapshotValuesLifecycle = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetSnapshotValues.Lifecycle")
ls_LifecycleTransitionReasonMessage = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetSnapshotValues.LifecycleTransitionReason.Message")
ls_TargetSnapshotValuesName = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetSnapshotValues.Name")
ls_TargetSnapshotValuesResourceARN = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetSnapshotValues.ResourceARN")
ls_SnapshotId = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetSnapshotValues.SnapshotId")
ls_TargetSnapshotValuesVolumeId = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetSnapshotValues.VolumeId")
ls_TargetVolumeValues = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetVolumeValues")
j = 0
li_Count_j = loo_JResp.SizeOfArray("Volume.AdministrativeActions[i].TargetFileSystemValues.AdministrativeActions")
do while j < li_Count_j
loo_JResp.J = j
ls_StrVal = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.AdministrativeActions[j]")
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("Volume.AdministrativeActions[i].TargetFileSystemValues.NetworkInterfaceIds")
do while j < li_Count_j
loo_JResp.J = j
ls_StrVal = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.NetworkInterfaceIds[j]")
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.Endpoints.Intercluster.IpAddresses")
do while j < li_Count_j
loo_JResp.J = j
ls_StrVal = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.Endpoints.Intercluster.IpAddresses[j]")
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.Endpoints.Management.IpAddresses")
do while j < li_Count_j
loo_JResp.J = j
ls_StrVal = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.Endpoints.Management.IpAddresses[j]")
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.RouteTableIds")
do while j < li_Count_j
loo_JResp.J = j
ls_StrVal = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.RouteTableIds[j]")
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("Volume.AdministrativeActions[i].TargetFileSystemValues.SubnetIds")
do while j < li_Count_j
loo_JResp.J = j
ls_StrVal = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.SubnetIds[j]")
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("Volume.AdministrativeActions[i].TargetFileSystemValues.Tags")
do while j < li_Count_j
loo_JResp.J = j
ls_Key = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.Tags[j].Key")
ls_Value = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.Tags[j].Value")
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.Aliases")
do while j < li_Count_j
loo_JResp.J = j
ls_Lifecycle = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.Aliases[j].Lifecycle")
ls_Name = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.Aliases[j].Name")
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.MaintenanceOperationsInProgress")
do while j < li_Count_j
loo_JResp.J = j
ls_StrVal = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.MaintenanceOperationsInProgress[j]")
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DnsIps")
do while j < li_Count_j
loo_JResp.J = j
ls_StrVal = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DnsIps[j]")
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("Volume.AdministrativeActions[i].TargetSnapshotValues.AdministrativeActions")
do while j < li_Count_j
loo_JResp.J = j
ls_StrVal = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetSnapshotValues.AdministrativeActions[j]")
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("Volume.AdministrativeActions[i].TargetSnapshotValues.Tags")
do while j < li_Count_j
loo_JResp.J = j
ls_Key = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetSnapshotValues.Tags[j].Key")
ls_Value = loo_JResp.StringOf("Volume.AdministrativeActions[i].TargetSnapshotValues.Tags[j].Value")
j = j + 1
loop
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("Volume.OpenZFSConfiguration.NfsExports")
do while i < li_Count_i
loo_JResp.I = i
j = 0
li_Count_j = loo_JResp.SizeOfArray("Volume.OpenZFSConfiguration.NfsExports[i].ClientConfigurations")
do while j < li_Count_j
loo_JResp.J = j
ls_Clients = loo_JResp.StringOf("Volume.OpenZFSConfiguration.NfsExports[i].ClientConfigurations[j].Clients")
k = 0
li_Count_k = loo_JResp.SizeOfArray("Volume.OpenZFSConfiguration.NfsExports[i].ClientConfigurations[j].Options")
do while k < li_Count_k
loo_JResp.K = k
ls_StrVal = loo_JResp.StringOf("Volume.OpenZFSConfiguration.NfsExports[i].ClientConfigurations[j].Options[k]")
k = k + 1
loop
j = j + 1
loop
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("Volume.OpenZFSConfiguration.UserAndGroupQuotas")
do while i < li_Count_i
loo_JResp.I = i
li_Id = loo_JResp.IntOf("Volume.OpenZFSConfiguration.UserAndGroupQuotas[i].Id")
li_StorageCapacityQuotaGiB = loo_JResp.IntOf("Volume.OpenZFSConfiguration.UserAndGroupQuotas[i].StorageCapacityQuotaGiB")
ls_V_Type = loo_JResp.StringOf("Volume.OpenZFSConfiguration.UserAndGroupQuotas[i].Type")
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("Volume.Tags")
do while i < li_Count_i
loo_JResp.I = i
ls_Key = loo_JResp.StringOf("Volume.Tags[i].Key")
ls_Value = loo_JResp.StringOf("Volume.Tags[i].Value")
i = i + 1
loop
// A sample JSON response body parsed by the above code:
// {
// "Volume": {
// "AdministrativeActions": [
// {
// "AdministrativeActionType": "string",
// "FailureDetails": {
// "Message": "string"
// },
// "ProgressPercent": number,
// "RequestTime": number,
// "Status": "string",
// "TargetFileSystemValues": {
// "AdministrativeActions": [
// "AdministrativeAction"
// ],
// "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"
// }
// },
// "TargetSnapshotValues": {
// "AdministrativeActions": [
// "AdministrativeAction"
// ],
// "CreationTime": number,
// "Lifecycle": "string",
// "LifecycleTransitionReason": {
// "Message": "string"
// },
// "Name": "string",
// "ResourceARN": "string",
// "SnapshotId": "string",
// "Tags": [
// {
// "Key": "string",
// "Value": "string"
// }
// ],
// "VolumeId": "string"
// },
// "TargetVolumeValues": "Volume"
// }
// ],
// "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"
// }
// }
destroy loo_Rest
destroy loo_AuthAws
destroy loo_Json
destroy loo_SbRequestBody
destroy loo_SbResponseBody
destroy loo_JResp