public static async Task<ImageExportType> ExportCustomerImage( this IComputeApiClient client, ImagesWithDiskSpeedImage image, string ovfPrefix) { return await client.ImportExportCustomerImage.ExportCustomerImage(image, ovfPrefix); }
/// <summary> /// Exports the customer image to the FTPS store /// </summary> /// <param name="client"> /// The <see cref="ComputeApiClient"/> object /// </param> /// <param name="image"> /// The image to export. /// </param> /// <param name="ovfPrefix"> /// Required; 1-90 characters in length. Used to name each of the constituent files of the /// resulting OVF Package. The permitted character set is (within and excluding the /// quotes): “a-zA-Z0-9_+=#.,:;()-“. Note that the “space” character is not permitted. /// </param> /// <returns> /// The image export record, with the target names. /// </returns> public static async Task<ImageExportType> ExportCustomerImage( this IComputeApiClient client, ImagesWithDiskSpeedImage image, string ovfPrefix) { return await client.WebApi.ApiPostAsync<NewImageExport, ImageExportType>( ApiUris.ExportCustomerImage(client.Account.OrganizationId), new NewImageExport { ovfPackagePrefix = ovfPrefix, imageId = image.id } ); }
/// <summary> /// The export customer image. /// </summary> /// <param name="image"> /// The image. /// </param> /// <param name="ovfPrefix"> /// The ovf prefix. /// </param> /// <returns> /// The <see cref="Task"/>. /// </returns> public async Task<ImageExportType> ExportCustomerImage(ImagesWithDiskSpeedImage image, string ovfPrefix) { return await _apiClient.PostAsync<NewImageExport, ImageExportType>( ApiUris.ExportCustomerImage(_apiClient.OrganizationId), new NewImageExport { ovfPackagePrefix = ovfPrefix, imageId = image.id }); }