CreateFileSystemFromBackup 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
integer li_ProgressPercent
integer li_RequestTime
string ls_Status
string ls_TargetFileSystemValues
integer li_TargetSnapshotValuesCreationTime
string ls_TargetSnapshotValuesLifecycle
string ls_LifecycleTransitionReasonMessage
string ls_Name
string ls_TargetSnapshotValuesResourceARN
string ls_SnapshotId
string ls_VolumeId
integer li_TargetVolumeValuesCreationTime
string ls_TargetVolumeValuesFileSystemId
string ls_TargetVolumeValuesLifecycle
string ls_TargetVolumeValuesName
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_OpenZFSConfigurationDataCompressionType
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_TargetVolumeValuesResourceARN
string ls_TargetVolumeValuesVolumeId
string ls_VolumeType
integer j
integer li_Count_j
string ls_StrVal
string ls_Key
string ls_Value
integer k
integer li_Count_k
string ls_Clients
oleobject loo_Json1
integer li_I1
integer li_Count_i1
integer li_Id
string ls_V_Type
integer li_CreationTime
string ls_DNSName
string ls_Message
string ls_FileSystemId
string ls_FileSystemType
string ls_FileSystemTypeVersion
string ls_KmsKeyId
string ls_Lifecycle
integer li_AutomaticBackupRetentionDays
integer li_CopyTagsToBackups
string ls_DailyAutomaticBackupStartTime
string ls_DataCompressionType
string ls_AutoImportPolicy
string ls_ExportPath
string ls_FailureDetailsMessage
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_ResourceARN
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 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("BackupId","string")
loo_Json.UpdateString("ClientRequestToken","string")
loo_Json.UpdateString("FileSystemTypeVersion","string")
loo_Json.UpdateString("KmsKeyId","string")
loo_Json.UpdateString("LustreConfiguration.AutoImportPolicy","string")
loo_Json.UpdateInt("LustreConfiguration.AutomaticBackupRetentionDays",123)
loo_Json.UpdateInt("LustreConfiguration.CopyTagsToBackups",123)
loo_Json.UpdateString("LustreConfiguration.DailyAutomaticBackupStartTime","string")
loo_Json.UpdateString("LustreConfiguration.DataCompressionType","string")
loo_Json.UpdateString("LustreConfiguration.DeploymentType","string")
loo_Json.UpdateString("LustreConfiguration.DriveCacheType","string")
loo_Json.UpdateString("LustreConfiguration.ExportPath","string")
loo_Json.UpdateInt("LustreConfiguration.ImportedFileChunkSize",123)
loo_Json.UpdateString("LustreConfiguration.ImportPath","string")
loo_Json.UpdateString("LustreConfiguration.LogConfiguration.Destination","string")
loo_Json.UpdateString("LustreConfiguration.LogConfiguration.Level","string")
loo_Json.UpdateInt("LustreConfiguration.PerUnitStorageThroughput",123)
loo_Json.UpdateString("LustreConfiguration.WeeklyMaintenanceStartTime","string")
loo_Json.UpdateInt("OpenZFSConfiguration.AutomaticBackupRetentionDays",123)
loo_Json.UpdateInt("OpenZFSConfiguration.CopyTagsToBackups",123)
loo_Json.UpdateInt("OpenZFSConfiguration.CopyTagsToVolumes",123)
loo_Json.UpdateString("OpenZFSConfiguration.DailyAutomaticBackupStartTime","string")
loo_Json.UpdateString("OpenZFSConfiguration.DeploymentType","string")
loo_Json.UpdateInt("OpenZFSConfiguration.DiskIopsConfiguration.Iops",123)
loo_Json.UpdateString("OpenZFSConfiguration.DiskIopsConfiguration.Mode","string")
loo_Json.UpdateInt("OpenZFSConfiguration.RootVolumeConfiguration.CopyTagsToSnapshots",123)
loo_Json.UpdateString("OpenZFSConfiguration.RootVolumeConfiguration.DataCompressionType","string")
loo_Json.UpdateString("OpenZFSConfiguration.RootVolumeConfiguration.NfsExports[0].ClientConfigurations[0].Clients","string")
loo_Json.UpdateString("OpenZFSConfiguration.RootVolumeConfiguration.NfsExports[0].ClientConfigurations[0].Options[0]","string")
loo_Json.UpdateInt("OpenZFSConfiguration.RootVolumeConfiguration.ReadOnly",123)
loo_Json.UpdateInt("OpenZFSConfiguration.RootVolumeConfiguration.RecordSizeKiB",123)
loo_Json.UpdateInt("OpenZFSConfiguration.RootVolumeConfiguration.UserAndGroupQuotas[0].Id",123)
loo_Json.UpdateInt("OpenZFSConfiguration.RootVolumeConfiguration.UserAndGroupQuotas[0].StorageCapacityQuotaGiB",123)
loo_Json.UpdateString("OpenZFSConfiguration.RootVolumeConfiguration.UserAndGroupQuotas[0].Type","string")
loo_Json.UpdateInt("OpenZFSConfiguration.ThroughputCapacity",123)
loo_Json.UpdateString("OpenZFSConfiguration.WeeklyMaintenanceStartTime","string")
loo_Json.UpdateString("SecurityGroupIds[0]","string")
loo_Json.UpdateString("StorageType","string")
loo_Json.UpdateString("SubnetIds[0]","string")
loo_Json.UpdateString("Tags[0].Key","string")
loo_Json.UpdateString("Tags[0].Value","string")
loo_Json.UpdateString("WindowsConfiguration.ActiveDirectoryId","string")
loo_Json.UpdateString("WindowsConfiguration.Aliases[0]","string")
loo_Json.UpdateString("WindowsConfiguration.AuditLogConfiguration.AuditLogDestination","string")
loo_Json.UpdateString("WindowsConfiguration.AuditLogConfiguration.FileAccessAuditLogLevel","string")
loo_Json.UpdateString("WindowsConfiguration.AuditLogConfiguration.FileShareAccessAuditLogLevel","string")
loo_Json.UpdateInt("WindowsConfiguration.AutomaticBackupRetentionDays",123)
loo_Json.UpdateInt("WindowsConfiguration.CopyTagsToBackups",123)
loo_Json.UpdateString("WindowsConfiguration.DailyAutomaticBackupStartTime","string")
loo_Json.UpdateString("WindowsConfiguration.DeploymentType","string")
loo_Json.UpdateString("WindowsConfiguration.PreferredSubnetId","string")
loo_Json.UpdateString("WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DnsIps[0]","string")
loo_Json.UpdateString("WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DomainName","string")
loo_Json.UpdateString("WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.FileSystemAdministratorsGroup","string")
loo_Json.UpdateString("WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.OrganizationalUnitDistinguishedName","string")
loo_Json.UpdateString("WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.Password","string")
loo_Json.UpdateString("WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.UserName","string")
loo_Json.UpdateInt("WindowsConfiguration.ThroughputCapacity",123)
loo_Json.UpdateString("WindowsConfiguration.WeeklyMaintenanceStartTime","string")
// The JSON request body created by the above code:
// {
// "BackupId": "string",
// "ClientRequestToken": "string",
// "FileSystemTypeVersion": "string",
// "KmsKeyId": "string",
// "LustreConfiguration": {
// "AutoImportPolicy": "string",
// "AutomaticBackupRetentionDays": number,
// "CopyTagsToBackups": boolean,
// "DailyAutomaticBackupStartTime": "string",
// "DataCompressionType": "string",
// "DeploymentType": "string",
// "DriveCacheType": "string",
// "ExportPath": "string",
// "ImportedFileChunkSize": number,
// "ImportPath": "string",
// "LogConfiguration": {
// "Destination": "string",
// "Level": "string"
// },
// "PerUnitStorageThroughput": number,
// "WeeklyMaintenanceStartTime": "string"
// },
// "OpenZFSConfiguration": {
// "AutomaticBackupRetentionDays": number,
// "CopyTagsToBackups": boolean,
// "CopyTagsToVolumes": boolean,
// "DailyAutomaticBackupStartTime": "string",
// "DeploymentType": "string",
// "DiskIopsConfiguration": {
// "Iops": number,
// "Mode": "string"
// },
// "RootVolumeConfiguration": {
// "CopyTagsToSnapshots": boolean,
// "DataCompressionType": "string",
// "NfsExports": [
// {
// "ClientConfigurations": [
// {
// "Clients": "string",
// "Options": [
// "string"
// ]
// }
// ]
// }
// ],
// "ReadOnly": boolean,
// "RecordSizeKiB": number,
// "UserAndGroupQuotas": [
// {
// "Id": number,
// "StorageCapacityQuotaGiB": number,
// "Type": "string"
// }
// ]
// },
// "ThroughputCapacity": number,
// "WeeklyMaintenanceStartTime": "string"
// },
// "SecurityGroupIds": [
// "string"
// ],
// "StorageType": "string",
// "SubnetIds": [
// "string"
// ],
// "Tags": [
// {
// "Key": "string",
// "Value": "string"
// }
// ],
// "WindowsConfiguration": {
// "ActiveDirectoryId": "string",
// "Aliases": [
// "string"
// ],
// "AuditLogConfiguration": {
// "AuditLogDestination": "string",
// "FileAccessAuditLogLevel": "string",
// "FileShareAccessAuditLogLevel": "string"
// },
// "AutomaticBackupRetentionDays": number,
// "CopyTagsToBackups": boolean,
// "DailyAutomaticBackupStartTime": "string",
// "DeploymentType": "string",
// "PreferredSubnetId": "string",
// "SelfManagedActiveDirectoryConfiguration": {
// "DnsIps": [
// "string"
// ],
// "DomainName": "string",
// "FileSystemAdministratorsGroup": "string",
// "OrganizationalUnitDistinguishedName": "string",
// "Password": "string",
// "UserName": "string"
// },
// "ThroughputCapacity": number,
// "WeeklyMaintenanceStartTime": "string"
// }
// }
loo_Rest.AddHeader("Content-Type","application/x-amz-json-1.1")
loo_Rest.AddHeader("X-Amz-Target","AWSSimbaAPIService_v20180301.CreateFileSystemFromBackup")
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("FileSystem.CreationTime")
ls_DNSName = loo_JResp.StringOf("FileSystem.DNSName")
ls_Message = loo_JResp.StringOf("FileSystem.FailureDetails.Message")
ls_FileSystemId = loo_JResp.StringOf("FileSystem.FileSystemId")
ls_FileSystemType = loo_JResp.StringOf("FileSystem.FileSystemType")
ls_FileSystemTypeVersion = loo_JResp.StringOf("FileSystem.FileSystemTypeVersion")
ls_KmsKeyId = loo_JResp.StringOf("FileSystem.KmsKeyId")
ls_Lifecycle = loo_JResp.StringOf("FileSystem.Lifecycle")
li_AutomaticBackupRetentionDays = loo_JResp.IntOf("FileSystem.LustreConfiguration.AutomaticBackupRetentionDays")
li_CopyTagsToBackups = loo_JResp.IntOf("FileSystem.LustreConfiguration.CopyTagsToBackups")
ls_DailyAutomaticBackupStartTime = loo_JResp.StringOf("FileSystem.LustreConfiguration.DailyAutomaticBackupStartTime")
ls_DataCompressionType = loo_JResp.StringOf("FileSystem.LustreConfiguration.DataCompressionType")
ls_AutoImportPolicy = loo_JResp.StringOf("FileSystem.LustreConfiguration.DataRepositoryConfiguration.AutoImportPolicy")
ls_ExportPath = loo_JResp.StringOf("FileSystem.LustreConfiguration.DataRepositoryConfiguration.ExportPath")
ls_FailureDetailsMessage = loo_JResp.StringOf("FileSystem.LustreConfiguration.DataRepositoryConfiguration.FailureDetails.Message")
li_ImportedFileChunkSize = loo_JResp.IntOf("FileSystem.LustreConfiguration.DataRepositoryConfiguration.ImportedFileChunkSize")
ls_ImportPath = loo_JResp.StringOf("FileSystem.LustreConfiguration.DataRepositoryConfiguration.ImportPath")
ls_DataRepositoryConfigurationLifecycle = loo_JResp.StringOf("FileSystem.LustreConfiguration.DataRepositoryConfiguration.Lifecycle")
ls_DeploymentType = loo_JResp.StringOf("FileSystem.LustreConfiguration.DeploymentType")
ls_DriveCacheType = loo_JResp.StringOf("FileSystem.LustreConfiguration.DriveCacheType")
ls_Destination = loo_JResp.StringOf("FileSystem.LustreConfiguration.LogConfiguration.Destination")
ls_Level = loo_JResp.StringOf("FileSystem.LustreConfiguration.LogConfiguration.Level")
ls_MountName = loo_JResp.StringOf("FileSystem.LustreConfiguration.MountName")
li_PerUnitStorageThroughput = loo_JResp.IntOf("FileSystem.LustreConfiguration.PerUnitStorageThroughput")
ls_WeeklyMaintenanceStartTime = loo_JResp.StringOf("FileSystem.LustreConfiguration.WeeklyMaintenanceStartTime")
li_OntapConfigurationAutomaticBackupRetentionDays = loo_JResp.IntOf("FileSystem.OntapConfiguration.AutomaticBackupRetentionDays")
ls_OntapConfigurationDailyAutomaticBackupStartTime = loo_JResp.StringOf("FileSystem.OntapConfiguration.DailyAutomaticBackupStartTime")
ls_OntapConfigurationDeploymentType = loo_JResp.StringOf("FileSystem.OntapConfiguration.DeploymentType")
li_Iops = loo_JResp.IntOf("FileSystem.OntapConfiguration.DiskIopsConfiguration.Iops")
ls_Mode = loo_JResp.StringOf("FileSystem.OntapConfiguration.DiskIopsConfiguration.Mode")
ls_EndpointIpAddressRange = loo_JResp.StringOf("FileSystem.OntapConfiguration.EndpointIpAddressRange")
ls_InterclusterDNSName = loo_JResp.StringOf("FileSystem.OntapConfiguration.Endpoints.Intercluster.DNSName")
ls_ManagementDNSName = loo_JResp.StringOf("FileSystem.OntapConfiguration.Endpoints.Management.DNSName")
ls_PreferredSubnetId = loo_JResp.StringOf("FileSystem.OntapConfiguration.PreferredSubnetId")
li_ThroughputCapacity = loo_JResp.IntOf("FileSystem.OntapConfiguration.ThroughputCapacity")
ls_OntapConfigurationWeeklyMaintenanceStartTime = loo_JResp.StringOf("FileSystem.OntapConfiguration.WeeklyMaintenanceStartTime")
li_OpenZFSConfigurationAutomaticBackupRetentionDays = loo_JResp.IntOf("FileSystem.OpenZFSConfiguration.AutomaticBackupRetentionDays")
li_OpenZFSConfigurationCopyTagsToBackups = loo_JResp.IntOf("FileSystem.OpenZFSConfiguration.CopyTagsToBackups")
li_CopyTagsToVolumes = loo_JResp.IntOf("FileSystem.OpenZFSConfiguration.CopyTagsToVolumes")
ls_OpenZFSConfigurationDailyAutomaticBackupStartTime = loo_JResp.StringOf("FileSystem.OpenZFSConfiguration.DailyAutomaticBackupStartTime")
ls_OpenZFSConfigurationDeploymentType = loo_JResp.StringOf("FileSystem.OpenZFSConfiguration.DeploymentType")
li_DiskIopsConfigurationIops = loo_JResp.IntOf("FileSystem.OpenZFSConfiguration.DiskIopsConfiguration.Iops")
ls_DiskIopsConfigurationMode = loo_JResp.StringOf("FileSystem.OpenZFSConfiguration.DiskIopsConfiguration.Mode")
ls_RootVolumeId = loo_JResp.StringOf("FileSystem.OpenZFSConfiguration.RootVolumeId")
li_OpenZFSConfigurationThroughputCapacity = loo_JResp.IntOf("FileSystem.OpenZFSConfiguration.ThroughputCapacity")
ls_OpenZFSConfigurationWeeklyMaintenanceStartTime = loo_JResp.StringOf("FileSystem.OpenZFSConfiguration.WeeklyMaintenanceStartTime")
ls_OwnerId = loo_JResp.StringOf("FileSystem.OwnerId")
ls_ResourceARN = loo_JResp.StringOf("FileSystem.ResourceARN")
li_StorageCapacity = loo_JResp.IntOf("FileSystem.StorageCapacity")
ls_StorageType = loo_JResp.StringOf("FileSystem.StorageType")
ls_VpcId = loo_JResp.StringOf("FileSystem.VpcId")
ls_ActiveDirectoryId = loo_JResp.StringOf("FileSystem.WindowsConfiguration.ActiveDirectoryId")
ls_AuditLogDestination = loo_JResp.StringOf("FileSystem.WindowsConfiguration.AuditLogConfiguration.AuditLogDestination")
ls_FileAccessAuditLogLevel = loo_JResp.StringOf("FileSystem.WindowsConfiguration.AuditLogConfiguration.FileAccessAuditLogLevel")
ls_FileShareAccessAuditLogLevel = loo_JResp.StringOf("FileSystem.WindowsConfiguration.AuditLogConfiguration.FileShareAccessAuditLogLevel")
li_WindowsConfigurationAutomaticBackupRetentionDays = loo_JResp.IntOf("FileSystem.WindowsConfiguration.AutomaticBackupRetentionDays")
li_WindowsConfigurationCopyTagsToBackups = loo_JResp.IntOf("FileSystem.WindowsConfiguration.CopyTagsToBackups")
ls_WindowsConfigurationDailyAutomaticBackupStartTime = loo_JResp.StringOf("FileSystem.WindowsConfiguration.DailyAutomaticBackupStartTime")
ls_WindowsConfigurationDeploymentType = loo_JResp.StringOf("FileSystem.WindowsConfiguration.DeploymentType")
ls_PreferredFileServerIp = loo_JResp.StringOf("FileSystem.WindowsConfiguration.PreferredFileServerIp")
ls_WindowsConfigurationPreferredSubnetId = loo_JResp.StringOf("FileSystem.WindowsConfiguration.PreferredSubnetId")
ls_RemoteAdministrationEndpoint = loo_JResp.StringOf("FileSystem.WindowsConfiguration.RemoteAdministrationEndpoint")
ls_DomainName = loo_JResp.StringOf("FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DomainName")
ls_FileSystemAdministratorsGroup = loo_JResp.StringOf("FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.FileSystemAdministratorsGroup")
ls_OrganizationalUnitDistinguishedName = loo_JResp.StringOf("FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.OrganizationalUnitDistinguishedName")
ls_UserName = loo_JResp.StringOf("FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.UserName")
li_WindowsConfigurationThroughputCapacity = loo_JResp.IntOf("FileSystem.WindowsConfiguration.ThroughputCapacity")
ls_WindowsConfigurationWeeklyMaintenanceStartTime = loo_JResp.StringOf("FileSystem.WindowsConfiguration.WeeklyMaintenanceStartTime")
i = 0
li_Count_i = loo_JResp.SizeOfArray("FileSystem.AdministrativeActions")
do while i < li_Count_i
loo_JResp.I = i
ls_AdministrativeActionType = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].AdministrativeActionType")
ls_FailureDetailsMessage = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].FailureDetails.Message")
li_ProgressPercent = loo_JResp.IntOf("FileSystem.AdministrativeActions[i].ProgressPercent")
li_RequestTime = loo_JResp.IntOf("FileSystem.AdministrativeActions[i].RequestTime")
ls_Status = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].Status")
ls_TargetFileSystemValues = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetFileSystemValues")
li_TargetSnapshotValuesCreationTime = loo_JResp.IntOf("FileSystem.AdministrativeActions[i].TargetSnapshotValues.CreationTime")
ls_TargetSnapshotValuesLifecycle = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetSnapshotValues.Lifecycle")
ls_LifecycleTransitionReasonMessage = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetSnapshotValues.LifecycleTransitionReason.Message")
ls_Name = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetSnapshotValues.Name")
ls_TargetSnapshotValuesResourceARN = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetSnapshotValues.ResourceARN")
ls_SnapshotId = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetSnapshotValues.SnapshotId")
ls_VolumeId = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetSnapshotValues.VolumeId")
li_TargetVolumeValuesCreationTime = loo_JResp.IntOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.CreationTime")
ls_TargetVolumeValuesFileSystemId = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.FileSystemId")
ls_TargetVolumeValuesLifecycle = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.Lifecycle")
ls_LifecycleTransitionReasonMessage = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.LifecycleTransitionReason.Message")
ls_TargetVolumeValuesName = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.Name")
ls_FlexCacheEndpointType = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.FlexCacheEndpointType")
ls_JunctionPath = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.JunctionPath")
ls_OntapVolumeType = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.OntapVolumeType")
ls_SecurityStyle = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.SecurityStyle")
li_SizeInMegabytes = loo_JResp.IntOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.SizeInMegabytes")
li_StorageEfficiencyEnabled = loo_JResp.IntOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.StorageEfficiencyEnabled")
ls_StorageVirtualMachineId = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.StorageVirtualMachineId")
li_StorageVirtualMachineRoot = loo_JResp.IntOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.StorageVirtualMachineRoot")
li_CoolingPeriod = loo_JResp.IntOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.TieringPolicy.CoolingPeriod")
ls_TieringPolicyName = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.TieringPolicy.Name")
ls_UUID = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.UUID")
li_CopyTagsToSnapshots = loo_JResp.IntOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.CopyTagsToSnapshots")
ls_OpenZFSConfigurationDataCompressionType = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.DataCompressionType")
ls_CopyStrategy = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.OriginSnapshot.CopyStrategy")
ls_SnapshotARN = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.OriginSnapshot.SnapshotARN")
ls_ParentVolumeId = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.ParentVolumeId")
li_ReadOnly = loo_JResp.IntOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.ReadOnly")
li_RecordSizeKiB = loo_JResp.IntOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.RecordSizeKiB")
li_StorageCapacityQuotaGiB = loo_JResp.IntOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.StorageCapacityQuotaGiB")
li_StorageCapacityReservationGiB = loo_JResp.IntOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.StorageCapacityReservationGiB")
ls_VolumePath = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.VolumePath")
ls_TargetVolumeValuesResourceARN = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.ResourceARN")
ls_TargetVolumeValuesVolumeId = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.VolumeId")
ls_VolumeType = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.VolumeType")
j = 0
li_Count_j = loo_JResp.SizeOfArray("FileSystem.AdministrativeActions[i].TargetSnapshotValues.AdministrativeActions")
do while j < li_Count_j
loo_JResp.J = j
ls_StrVal = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetSnapshotValues.AdministrativeActions[j]")
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("FileSystem.AdministrativeActions[i].TargetSnapshotValues.Tags")
do while j < li_Count_j
loo_JResp.J = j
ls_Key = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetSnapshotValues.Tags[j].Key")
ls_Value = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetSnapshotValues.Tags[j].Value")
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("FileSystem.AdministrativeActions[i].TargetVolumeValues.AdministrativeActions")
do while j < li_Count_j
loo_JResp.J = j
ls_StrVal = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.AdministrativeActions[j]")
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.NfsExports")
do while j < li_Count_j
loo_JResp.J = j
k = 0
li_Count_k = loo_JResp.SizeOfArray("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.NfsExports[j].ClientConfigurations")
do while k < li_Count_k
loo_JResp.K = k
ls_Clients = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.NfsExports[j].ClientConfigurations[k].Clients")
loo_Json1 = loo_JResp.ObjectOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.NfsExports[j].ClientConfigurations[k]")
li_I1 = 0
li_Count_i1 = loo_Json1.SizeOfArray("Options")
do while li_I1 < li_Count_i1
loo_Json1.I = li_I1
ls_StrVal = loo_Json1.StringOf("Options[i]")
li_I1 = li_I1 + 1
loop
destroy loo_Json1
k = k + 1
loop
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas")
do while j < li_Count_j
loo_JResp.J = j
li_Id = loo_JResp.IntOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas[j].Id")
li_StorageCapacityQuotaGiB = loo_JResp.IntOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas[j].StorageCapacityQuotaGiB")
ls_V_Type = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas[j].Type")
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("FileSystem.AdministrativeActions[i].TargetVolumeValues.Tags")
do while j < li_Count_j
loo_JResp.J = j
ls_Key = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.Tags[j].Key")
ls_Value = loo_JResp.StringOf("FileSystem.AdministrativeActions[i].TargetVolumeValues.Tags[j].Value")
j = j + 1
loop
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("FileSystem.NetworkInterfaceIds")
do while i < li_Count_i
loo_JResp.I = i
ls_StrVal = loo_JResp.StringOf("FileSystem.NetworkInterfaceIds[i]")
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("FileSystem.OntapConfiguration.Endpoints.Intercluster.IpAddresses")
do while i < li_Count_i
loo_JResp.I = i
ls_StrVal = loo_JResp.StringOf("FileSystem.OntapConfiguration.Endpoints.Intercluster.IpAddresses[i]")
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("FileSystem.OntapConfiguration.Endpoints.Management.IpAddresses")
do while i < li_Count_i
loo_JResp.I = i
ls_StrVal = loo_JResp.StringOf("FileSystem.OntapConfiguration.Endpoints.Management.IpAddresses[i]")
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("FileSystem.OntapConfiguration.RouteTableIds")
do while i < li_Count_i
loo_JResp.I = i
ls_StrVal = loo_JResp.StringOf("FileSystem.OntapConfiguration.RouteTableIds[i]")
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("FileSystem.SubnetIds")
do while i < li_Count_i
loo_JResp.I = i
ls_StrVal = loo_JResp.StringOf("FileSystem.SubnetIds[i]")
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("FileSystem.Tags")
do while i < li_Count_i
loo_JResp.I = i
ls_Key = loo_JResp.StringOf("FileSystem.Tags[i].Key")
ls_Value = loo_JResp.StringOf("FileSystem.Tags[i].Value")
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("FileSystem.WindowsConfiguration.Aliases")
do while i < li_Count_i
loo_JResp.I = i
ls_Lifecycle = loo_JResp.StringOf("FileSystem.WindowsConfiguration.Aliases[i].Lifecycle")
ls_Name = loo_JResp.StringOf("FileSystem.WindowsConfiguration.Aliases[i].Name")
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("FileSystem.WindowsConfiguration.MaintenanceOperationsInProgress")
do while i < li_Count_i
loo_JResp.I = i
ls_StrVal = loo_JResp.StringOf("FileSystem.WindowsConfiguration.MaintenanceOperationsInProgress[i]")
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DnsIps")
do while i < li_Count_i
loo_JResp.I = i
ls_StrVal = loo_JResp.StringOf("FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DnsIps[i]")
i = i + 1
loop
// 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"
// }
// }
// }
destroy loo_Rest
destroy loo_AuthAws
destroy loo_Json
destroy loo_SbRequestBody
destroy loo_SbResponseBody
destroy loo_JResp