comet_backup_ruby_sdk 2.43.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +0 -0
- data/CHANGELOG.md +35 -0
- data/Gemfile +0 -0
- data/LICENSE +0 -0
- data/README.md +0 -0
- data/RELEASING.md +7 -7
- data/Rakefile +0 -0
- data/comet_backup_ruby_sdk.gemspec +2 -3
- data/lib/comet/api_response_error.rb +1 -1
- data/lib/comet/comet_server.rb +824 -90
- data/lib/comet/definitions.rb +409 -125
- data/lib/comet/models/add_bucket_response_message.rb +1 -1
- data/lib/comet/models/admin_account_apitoken_create_response.rb +102 -0
- data/lib/comet/models/admin_account_apitoken_list_response.rb +98 -0
- data/lib/comet/models/admin_account_properties_response.rb +38 -1
- data/lib/comet/models/admin_apitoken.rb +139 -0
- data/lib/comet/models/admin_apitoken_info.rb +117 -0
- data/lib/comet/models/admin_email_options.rb +1 -1
- data/lib/comet/models/admin_options.rb +1 -1
- data/lib/comet/models/admin_resource_response.rb +1 -1
- data/lib/comet/models/admin_security_options.rb +1 -1
- data/lib/comet/models/admin_u2fregistration.rb +1 -1
- data/lib/comet/models/admin_user_permissions.rb +20 -1
- data/lib/comet/models/admin_web_authn_registration.rb +1 -1
- data/lib/comet/models/allowed_admin_user.rb +19 -1
- data/lib/comet/models/amazon_awsvirtual_storage_role_settings.rb +1 -1
- data/lib/comet/models/attributed_content_measurement.rb +146 -0
- data/lib/comet/models/attributed_content_measurement_component.rb +105 -0
- data/lib/comet/models/authentication_role_options.rb +2 -4
- data/lib/comet/models/available_download.rb +1 -1
- data/lib/comet/models/azure_destination_location.rb +1 -1
- data/lib/comet/models/b2destination_location.rb +1 -1
- data/lib/comet/models/b2storage_extra_info.rb +1 -1
- data/lib/comet/models/b2transaction_totals.rb +1 -1
- data/lib/comet/models/b2virtual_storage_role_settings.rb +1 -1
- data/lib/comet/models/backup_job_advanced_options.rb +15 -1
- data/lib/comet/models/backup_job_detail.rb +14 -2
- data/lib/comet/models/backup_job_progress.rb +1 -1
- data/lib/comet/models/backup_rule_config.rb +43 -1
- data/lib/comet/models/backup_rule_event_triggers.rb +1 -1
- data/lib/comet/models/branding_options.rb +184 -1
- data/lib/comet/models/branding_properties.rb +184 -1
- data/lib/comet/models/browse_disk_drives_response.rb +1 -1
- data/lib/comet/models/browse_edbresponse.rb +1 -1
- data/lib/comet/models/browse_hvresponse.rb +1 -1
- data/lib/comet/models/browse_office_365list_virtual_accounts_response.rb +1 -1
- data/lib/comet/models/browse_office_365objects_response.rb +1 -1
- data/lib/comet/models/browse_proxmox_nodes_response.rb +1 -1
- data/lib/comet/models/browse_proxmox_response.rb +16 -1
- data/lib/comet/models/browse_proxmox_storage_response.rb +1 -1
- data/lib/comet/models/browse_sqlserver_response.rb +1 -1
- data/lib/comet/models/browse_vmware_datacenters_response.rb +1 -1
- data/lib/comet/models/browse_vmware_datastores_response.rb +1 -1
- data/lib/comet/models/browse_vmware_hosts_response.rb +1 -1
- data/lib/comet/models/browse_vmware_networks_response.rb +1 -1
- data/lib/comet/models/browse_vmware_response.rb +1 -1
- data/lib/comet/models/browse_vssresponse.rb +1 -1
- data/lib/comet/models/bucket_properties.rb +1 -1
- data/lib/comet/models/bucket_usage_info.rb +1 -1
- data/lib/comet/models/comet_apiresponse_message.rb +1 -1
- data/lib/comet/models/comet_destination_location.rb +1 -1
- data/lib/comet/models/constellation_check_report.rb +1 -1
- data/lib/comet/models/constellation_role_options.rb +1 -1
- data/lib/comet/models/constellation_stats.rb +1 -1
- data/lib/comet/models/constellation_status_apiresponse.rb +1 -1
- data/lib/comet/models/content_measurement.rb +1 -1
- data/lib/comet/models/content_measurement_component.rb +3 -3
- data/lib/comet/models/count_jobs_response.rb +1 -1
- data/lib/comet/models/create_group_policy_response.rb +1 -1
- data/lib/comet/models/create_user_group_response.rb +1 -1
- data/lib/comet/models/custom_branding_item.rb +143 -0
- data/lib/comet/models/custom_branding_options.rb +79 -0
- data/lib/comet/models/custom_branding_origin.rb +76 -0
- data/lib/comet/models/custom_remote_bucket_settings.rb +1 -1
- data/lib/comet/models/days_of_week_config.rb +1 -1
- data/lib/comet/models/default_email_report_policy.rb +1 -1
- data/lib/comet/models/default_source_with_osrestriction.rb +1 -1
- data/lib/comet/models/destination_config.rb +43 -5
- data/lib/comet/models/destination_location.rb +11 -2
- data/lib/comet/models/destination_statistics.rb +1 -1
- data/lib/comet/models/device_config.rb +42 -1
- data/lib/comet/models/device_identity_response.rb +82 -0
- data/lib/comet/models/disk_drive.rb +1 -1
- data/lib/comet/models/dispatch_with_job_idresponse.rb +1 -1
- data/lib/comet/models/dispatcher_admin_sources_response.rb +1 -1
- data/lib/comet/models/dispatcher_list_snapshot_virtual_machines_response.rb +1 -1
- data/lib/comet/models/dispatcher_stored_objects_response.rb +1 -1
- data/lib/comet/models/dispatcher_vault_snapshots_response.rb +1 -1
- data/lib/comet/models/dispatcher_windisk_snapshot_response.rb +1 -1
- data/lib/comet/models/dnscache_options.rb +94 -0
- data/lib/comet/models/edbfile_info.rb +1 -1
- data/lib/comet/models/email_options.rb +14 -1
- data/lib/comet/models/email_report_config.rb +15 -1
- data/lib/comet/models/email_report_generated_preview.rb +1 -1
- data/lib/comet/models/email_reporting_option.rb +1 -1
- data/lib/comet/models/external_authentication_source.rb +1 -1
- data/lib/comet/models/external_authentication_source_display.rb +1 -1
- data/lib/comet/models/external_authentication_source_response.rb +1 -1
- data/lib/comet/models/external_ldapauthentication_source_server.rb +1 -1
- data/lib/comet/models/external_ldapauthentication_source_settings.rb +1 -1
- data/lib/comet/models/extra_file_exclusion.rb +1 -1
- data/lib/comet/models/file_option.rb +1 -1
- data/lib/comet/models/ftpdestination_location.rb +1 -1
- data/lib/comet/models/get_group_policy_response.rb +1 -1
- data/lib/comet/models/get_profile_and_hash_response_message.rb +1 -1
- data/lib/comet/models/get_profile_hash_response_message.rb +1 -1
- data/lib/comet/models/get_shared_storage_quota_response.rb +110 -0
- data/lib/comet/models/get_user_group_response.rb +1 -1
- data/lib/comet/models/get_user_group_with_users_response.rb +1 -1
- data/lib/comet/models/global_override_options.rb +1 -1
- data/lib/comet/models/group_policy.rb +1 -1
- data/lib/comet/models/hour_sched_config.rb +1 -1
- data/lib/comet/models/httpconnector_options.rb +1 -1
- data/lib/comet/models/hyper_vmachine_info.rb +1 -1
- data/lib/comet/models/hyper_vrestore_target_options.rb +1 -1
- data/lib/comet/models/impossible_cloud_iamtemplate_settings.rb +1 -1
- data/lib/comet/models/impossible_cloud_partner_template_settings.rb +1 -1
- data/lib/comet/models/install_creds.rb +1 -1
- data/lib/comet/models/install_token.rb +8 -8
- data/lib/comet/models/install_token_response.rb +1 -1
- data/lib/comet/models/job_entry.rb +1 -1
- data/lib/comet/models/license_limits.rb +1 -1
- data/lib/comet/models/license_options.rb +1 -1
- data/lib/comet/models/linux_rpm_code_sign_properties.rb +115 -0
- data/lib/comet/models/list_shared_storage_quota_response.rb +98 -0
- data/lib/comet/models/live_user_connection.rb +1 -1
- data/lib/comet/models/local_destination_location.rb +2 -2
- data/lib/comet/models/local_storage_directory.rb +1 -1
- data/lib/comet/models/login_protection_options.rb +1 -1
- data/lib/comet/models/mac_oscode_sign_properties.rb +1 -1
- data/lib/comet/models/mongo_dbconnection.rb +4 -1
- data/lib/comet/models/mssqlconnection.rb +1 -1
- data/lib/comet/models/mssqllogin_args.rb +1 -1
- data/lib/comet/models/my_sqlconnection.rb +1 -1
- data/lib/comet/models/new_bucket_detail.rb +1 -1
- data/lib/comet/models/news_entry.rb +1 -1
- data/lib/comet/models/nfsdestination_location.rb +132 -0
- data/lib/comet/models/ninja_one_auth_callback_response.rb +82 -0
- data/lib/comet/models/ninja_one_config.rb +130 -0
- data/lib/comet/models/ninja_one_organization.rb +91 -0
- data/lib/comet/models/node.rb +80 -0
- data/lib/comet/models/object_lock_storage_template_settings.rb +1 -1
- data/lib/comet/models/office_365connection.rb +1 -1
- data/lib/comet/models/office_365convert_selection_response.rb +102 -0
- data/lib/comet/models/office_365credential.rb +1 -1
- data/lib/comet/models/office_365custom_setting.rb +1 -1
- data/lib/comet/models/office_365custom_setting_v2.rb +23 -1
- data/lib/comet/models/office_365effective_selection.rb +109 -0
- data/lib/comet/models/office_365effective_selection_account.rb +101 -0
- data/lib/comet/models/office_365evaluate_selection_rules_response.rb +95 -0
- data/lib/comet/models/office_365mixed_virtual_account.rb +1 -1
- data/lib/comet/models/office_365object_info.rb +1 -1
- data/lib/comet/models/office_365selection_rule.rb +182 -0
- data/lib/comet/models/office_365service_rule_decision.rb +93 -0
- data/lib/comet/models/oidc_claim.rb +1 -1
- data/lib/comet/models/oidc_config.rb +1 -1
- data/lib/comet/models/organization.rb +1 -1
- data/lib/comet/models/organization_login_urlresponse.rb +1 -1
- data/lib/comet/models/organization_response.rb +1 -1
- data/lib/comet/models/osinfo.rb +1 -1
- data/lib/comet/models/partition.rb +1 -1
- data/lib/comet/models/partition_conflict.rb +1 -1
- data/lib/comet/models/pkcs_11allowed_driver.rb +75 -0
- data/lib/comet/models/pkcs_11allowlist_options.rb +90 -0
- data/lib/comet/models/policy_options.rb +1 -1
- data/lib/comet/models/postgre_sqlconnection.rb +151 -0
- data/lib/comet/models/private_branding_properties.rb +184 -1
- data/lib/comet/models/protected_item_engine_type_policy.rb +1 -1
- data/lib/comet/models/protected_item_with_backup_rules_response.rb +1 -1
- data/lib/comet/models/proxmox_connection.rb +1 -1
- data/lib/comet/models/proxmox_restore_target_options.rb +1 -1
- data/lib/comet/models/psaconfig.rb +26 -1
- data/lib/comet/models/psaconfig_connect_wise.rb +130 -0
- data/lib/comet/models/psagrouped_by.rb +1 -1
- data/lib/comet/models/public_branding_properties.rb +1 -1
- data/lib/comet/models/pvebackup_disk.rb +1 -1
- data/lib/comet/models/pvebackup_node.rb +1 -1
- data/lib/comet/models/pvebackup_vm.rb +1 -1
- data/lib/comet/models/pvedisk.rb +1 -1
- data/lib/comet/models/pveparams.rb +2 -4
- data/lib/comet/models/pvestorage_name.rb +17 -1
- data/lib/comet/models/pvevm.rb +8 -1
- data/lib/comet/models/ratelimit_options.rb +1 -1
- data/lib/comet/models/ratelimit_rule.rb +1 -1
- data/lib/comet/models/register_office_application_begin_response.rb +1 -1
- data/lib/comet/models/register_office_application_check_response.rb +1 -1
- data/lib/comet/models/registration_lobby_connection.rb +1 -1
- data/lib/comet/models/remote_server_address.rb +1 -1
- data/lib/comet/models/remote_storage_option.rb +10 -1
- data/lib/comet/models/replica_server.rb +1 -1
- data/lib/comet/models/replicator_state_apiresponse.rb +1 -1
- data/lib/comet/models/request_storage_vault_response_message.rb +1 -1
- data/lib/comet/models/restore_job_advanced_options.rb +66 -10
- data/lib/comet/models/retention_policy.rb +1 -1
- data/lib/comet/models/retention_range.rb +1 -1
- data/lib/comet/models/s3destination_location.rb +1 -1
- data/lib/comet/models/s3generic_virtual_storage_role.rb +1 -1
- data/lib/comet/models/schedule_config.rb +1 -1
- data/lib/comet/models/search_clause.rb +1 -1
- data/lib/comet/models/search_result_file_info.rb +1 -1
- data/lib/comet/models/search_snapshots_response.rb +1 -1
- data/lib/comet/models/self_backup_event_data.rb +135 -0
- data/lib/comet/models/self_backup_export_options.rb +1 -1
- data/lib/comet/models/self_backup_options.rb +1 -1
- data/lib/comet/models/self_backup_statistics.rb +1 -1
- data/lib/comet/models/self_backup_target.rb +1 -1
- data/lib/comet/models/server_config_options.rb +76 -1
- data/lib/comet/models/server_config_options_and_hash_response.rb +103 -0
- data/lib/comet/models/server_config_options_branding_fragment.rb +1 -1
- data/lib/comet/models/server_config_options_hash_response.rb +95 -0
- data/lib/comet/models/server_config_options_software_build_role_fragment.rb +1 -1
- data/lib/comet/models/server_meta_branding_properties.rb +20 -1
- data/lib/comet/models/server_meta_version_info.rb +1 -1
- data/lib/comet/models/session_key_regenerated_response.rb +1 -1
- data/lib/comet/models/session_options.rb +1 -1
- data/lib/comet/models/set_shared_storage_quota_response.rb +92 -0
- data/lib/comet/models/sftpdestination_location.rb +1 -1
- data/lib/comet/models/shared_storage_quota.rb +94 -0
- data/lib/comet/models/single_field_source.rb +2 -2
- data/lib/comet/models/size_measurement.rb +1 -1
- data/lib/comet/models/smbdestination_location.rb +1 -1
- data/lib/comet/models/smtpoauth_options.rb +154 -0
- data/lib/comet/models/software_build_role_options.rb +1 -1
- data/lib/comet/models/software_update_news_response.rb +1 -1
- data/lib/comet/models/source_basic_info.rb +10 -1
- data/lib/comet/models/source_config.rb +69 -4
- data/lib/comet/models/source_include_pattern.rb +1 -1
- data/lib/comet/models/source_statistics.rb +1 -1
- data/lib/comet/models/spanned_destination_location.rb +1 -1
- data/lib/comet/models/spanned_storage_extra_info.rb +1 -1
- data/lib/comet/models/speed_limit_time_window.rb +114 -0
- data/lib/comet/models/sshconnection.rb +1 -1
- data/lib/comet/models/stat_result.rb +1 -1
- data/lib/comet/models/storage_free_space_info.rb +1 -1
- data/lib/comet/models/storage_role_options.rb +1 -1
- data/lib/comet/models/storage_vault_provider_policy.rb +1 -1
- data/lib/comet/models/stored_object.rb +1 -1
- data/lib/comet/models/storj_destination_location.rb +1 -1
- data/lib/comet/models/storj_virtual_storage_role_setting.rb +1 -1
- data/lib/comet/models/streamable_event.rb +1 -1
- data/lib/comet/models/swift_destination_location.rb +1 -1
- data/lib/comet/models/test_response.rb +1 -1
- data/lib/comet/models/time_span.rb +1 -1
- data/lib/comet/models/totp_regenerated_response.rb +1 -1
- data/lib/comet/models/u2fregister_request.rb +1 -1
- data/lib/comet/models/u2fregistered_key.rb +1 -1
- data/lib/comet/models/u2fregistration_challenge_response.rb +1 -1
- data/lib/comet/models/u2fsign_request.rb +1 -1
- data/lib/comet/models/u2fsign_response.rb +1 -1
- data/lib/comet/models/uninstall_config.rb +1 -1
- data/lib/comet/models/update_campaign_device_status.rb +9 -1
- data/lib/comet/models/update_campaign_options.rb +1 -1
- data/lib/comet/models/update_campaign_properties.rb +1 -1
- data/lib/comet/models/update_campaign_skip_detail.rb +100 -0
- data/lib/comet/models/update_campaign_status.rb +1 -1
- data/lib/comet/models/update_campaign_status_device_entry.rb +9 -1
- data/lib/comet/models/user_custom_email_settings.rb +1 -1
- data/lib/comet/models/user_group.rb +1 -1
- data/lib/comet/models/user_on_server.rb +1 -1
- data/lib/comet/models/user_policy.rb +18 -1
- data/lib/comet/models/user_profile_config.rb +82 -8
- data/lib/comet/models/user_profile_fragment.rb +1 -1
- data/lib/comet/models/user_server_config.rb +1 -1
- data/lib/comet/models/vault_snapshot.rb +1 -1
- data/lib/comet/models/vmdisk_info.rb +1 -1
- data/lib/comet/models/vmdksnapshot_view_options.rb +1 -1
- data/lib/comet/models/vminfo.rb +1 -1
- data/lib/comet/models/vminfo_list.rb +1 -1
- data/lib/comet/models/vmware_connection.rb +1 -1
- data/lib/comet/models/vmware_datacenter_info.rb +1 -1
- data/lib/comet/models/vmware_datastore_info.rb +1 -1
- data/lib/comet/models/vmware_host_info.rb +1 -1
- data/lib/comet/models/vmware_machine_info.rb +1 -1
- data/lib/comet/models/vmware_network_info.rb +1 -1
- data/lib/comet/models/vmware_restore_target_options.rb +1 -1
- data/lib/comet/models/vsphere_connection.rb +1 -1
- data/lib/comet/models/vsscomponent.rb +1 -1
- data/lib/comet/models/vsswriter_info.rb +1 -1
- data/lib/comet/models/wasabi_virtual_storage_role_settings.rb +1 -1
- data/lib/comet/models/web_authn_authenticator_selection.rb +1 -1
- data/lib/comet/models/web_authn_credential.rb +1 -1
- data/lib/comet/models/web_authn_credential_assertion.rb +1 -1
- data/lib/comet/models/web_authn_credential_descriptor.rb +1 -1
- data/lib/comet/models/web_authn_credential_entity.rb +1 -1
- data/lib/comet/models/web_authn_credential_parameter.rb +1 -1
- data/lib/comet/models/web_authn_public_key_credential_creation_options.rb +2 -4
- data/lib/comet/models/web_authn_public_key_credential_request_options.rb +1 -1
- data/lib/comet/models/web_authn_registration_challenge_response.rb +1 -1
- data/lib/comet/models/web_authn_relying_party_entity.rb +1 -1
- data/lib/comet/models/web_authn_sign_request.rb +1 -1
- data/lib/comet/models/web_authn_sign_response.rb +1 -1
- data/lib/comet/models/web_authn_user_entity.rb +1 -1
- data/lib/comet/models/web_dav_destination_location.rb +1 -1
- data/lib/comet/models/web_interface_branding_properties.rb +1 -1
- data/lib/comet/models/webhook_awsoptions.rb +96 -0
- data/lib/comet/models/webhook_option.rb +49 -2
- data/lib/comet/models/win_smbauth.rb +3 -3
- data/lib/comet/models/windows_code_sign_properties.rb +176 -1
- data/lib/comet_backup_ruby_sdk.rb +39 -1
- metadata +43 -23
- data/Gemfile.lock +0 -43
data/lib/comet/comet_server.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2020-
|
|
3
|
+
# Copyright (c) 2020-2026 Comet Licensing Ltd.
|
|
4
4
|
# Please see the LICENSE file for usage information.
|
|
5
5
|
#
|
|
6
6
|
# SPDX-License-Identifier: MIT
|
|
@@ -38,12 +38,89 @@ module Comet
|
|
|
38
38
|
@server_address += '/' unless server_address.end_with?('/')
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
+
# AdminAccountApiTokenCreate
|
|
42
|
+
#
|
|
43
|
+
# Create a new personal API token for the current admin account.
|
|
44
|
+
# The response contains the plaintext token. It is shown exactly once and cannot be retrieved again - store it securely.
|
|
45
|
+
# The token inherits the current permissions of the admin account that created it, evaluated live on each request; it does not capture a fixed snapshot of permissions.
|
|
46
|
+
# To authenticate with the token, send it in the Token field with AuthType=Token, or in the Password field with AuthType=Password. The latter lets SDKs and integrations that only support password authentication use a token without needing to handle 2FA.
|
|
47
|
+
# Creating a token requires you to supply your current password, unless the request is already authenticated with a password, or the account is managed by an external authentication source. Check AdminAccountProperties.APITokenCreateRequiresPassword to know whether it is needed.
|
|
48
|
+
#
|
|
49
|
+
# You must supply administrator authentication credentials to use this API.
|
|
50
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
51
|
+
#
|
|
52
|
+
# @param [String] description Human-readable label for this token
|
|
53
|
+
# @param [Number] expire_time (Optional) Unix timestamp, in seconds, when the token stops working. Must be in the future. If this parameter is omitted entirely, the token expires after 90 days. Pass zero explicitly for a token that never expires
|
|
54
|
+
# @return [Comet::AdminAccountAPITokenCreateResponse]
|
|
55
|
+
def admin_account_api_token_create(description, expire_time = nil)
|
|
56
|
+
submit_params = {}
|
|
57
|
+
raise TypeError, "'description' expected String, got #{description.class}" unless description.is_a? String
|
|
58
|
+
|
|
59
|
+
submit_params['Description'] = description
|
|
60
|
+
unless expire_time.nil?
|
|
61
|
+
raise TypeError, "'expire_time' expected Numeric, got #{expire_time.class}" unless expire_time.is_a? Numeric
|
|
62
|
+
|
|
63
|
+
submit_params['ExpireTime'] = expire_time
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
body = perform_request('api/v1/admin/account/api-token/create', submit_params)
|
|
67
|
+
json_body = JSON.parse body
|
|
68
|
+
check_status json_body
|
|
69
|
+
ret = Comet::AdminAccountAPITokenCreateResponse.new
|
|
70
|
+
ret.from_hash(json_body)
|
|
71
|
+
ret
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# AdminAccountApiTokenList
|
|
75
|
+
#
|
|
76
|
+
# List the metadata for all API tokens of the current admin account.
|
|
77
|
+
# This does not include the token itself, which is only returned once when the token is created.
|
|
78
|
+
#
|
|
79
|
+
# You must supply administrator authentication credentials to use this API.
|
|
80
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
81
|
+
#
|
|
82
|
+
# @return [Comet::AdminAccountAPITokenListResponse]
|
|
83
|
+
def admin_account_api_token_list
|
|
84
|
+
body = perform_request('api/v1/admin/account/api-token/list')
|
|
85
|
+
json_body = JSON.parse body
|
|
86
|
+
check_status json_body
|
|
87
|
+
ret = Comet::AdminAccountAPITokenListResponse.new
|
|
88
|
+
ret.from_hash(json_body)
|
|
89
|
+
ret
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# AdminAccountApiTokenRevoke
|
|
93
|
+
#
|
|
94
|
+
# Revoke a personal API token of the current admin account.
|
|
95
|
+
# An admin may always revoke their own tokens, even if API tokens have since been disabled for their account or this server.
|
|
96
|
+
#
|
|
97
|
+
# You must supply administrator authentication credentials to use this API.
|
|
98
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
99
|
+
#
|
|
100
|
+
# @param [String] token_id The token identifier, as shown in the token list
|
|
101
|
+
# @return [Comet::CometAPIResponseMessage]
|
|
102
|
+
def admin_account_api_token_revoke(token_id)
|
|
103
|
+
submit_params = {}
|
|
104
|
+
raise TypeError, "'token_id' expected String, got #{token_id.class}" unless token_id.is_a? String
|
|
105
|
+
|
|
106
|
+
submit_params['TokenID'] = token_id
|
|
107
|
+
|
|
108
|
+
body = perform_request('api/v1/admin/account/api-token/revoke', submit_params)
|
|
109
|
+
json_body = JSON.parse body
|
|
110
|
+
check_status json_body
|
|
111
|
+
ret = Comet::CometAPIResponseMessage.new
|
|
112
|
+
ret.from_hash(json_body)
|
|
113
|
+
ret
|
|
114
|
+
end
|
|
115
|
+
|
|
41
116
|
# AdminAccountProperties
|
|
42
117
|
#
|
|
43
118
|
# Retrieve properties about the current admin account.
|
|
44
119
|
# Some key parameters are obscured, but the obscured values are safely recognised by the corresponding AdminAccountSetProperties API.
|
|
120
|
+
# In Comet 26.8.4 and later, when authenticating with an admin API token, the account's password hash is additionally obscured.
|
|
45
121
|
#
|
|
46
122
|
# You must supply administrator authentication credentials to use this API.
|
|
123
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
47
124
|
#
|
|
48
125
|
# @return [Comet::AdminAccountPropertiesResponse]
|
|
49
126
|
def admin_account_properties
|
|
@@ -61,6 +138,7 @@ module Comet
|
|
|
61
138
|
# The secret is returned as a `data-uri` image of a QR code. The new secret is immediately applied to the current admin account.
|
|
62
139
|
#
|
|
63
140
|
# You must supply administrator authentication credentials to use this API.
|
|
141
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
64
142
|
#
|
|
65
143
|
# @return [Comet::TotpRegeneratedResponse]
|
|
66
144
|
def admin_account_regenerate_totp
|
|
@@ -77,6 +155,7 @@ module Comet
|
|
|
77
155
|
# Revoke a session key (log out).
|
|
78
156
|
#
|
|
79
157
|
# You must supply administrator authentication credentials to use this API.
|
|
158
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
80
159
|
#
|
|
81
160
|
# @return [Comet::CometAPIResponseMessage]
|
|
82
161
|
def admin_account_session_revoke
|
|
@@ -93,8 +172,9 @@ module Comet
|
|
|
93
172
|
# Generate a session key (log in).
|
|
94
173
|
#
|
|
95
174
|
# You must supply administrator authentication credentials to use this API.
|
|
175
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
96
176
|
#
|
|
97
|
-
# @param [String] self_address (Optional) External URL of this server
|
|
177
|
+
# @param [String] self_address (Optional) External URL of this server (>= 18.9.9)
|
|
98
178
|
# @return [Comet::SessionKeyRegeneratedResponse]
|
|
99
179
|
def admin_account_session_start(self_address = nil)
|
|
100
180
|
submit_params = {}
|
|
@@ -119,6 +199,7 @@ module Comet
|
|
|
119
199
|
# Generate a session key for an end-user (log in as end-user).
|
|
120
200
|
#
|
|
121
201
|
# You must supply administrator authentication credentials to use this API.
|
|
202
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
122
203
|
#
|
|
123
204
|
# @param [String] target_user Target account username
|
|
124
205
|
# @return [Comet::SessionKeyRegeneratedResponse]
|
|
@@ -138,22 +219,17 @@ module Comet
|
|
|
138
219
|
|
|
139
220
|
# AdminAccountSessionUpgrade
|
|
140
221
|
#
|
|
141
|
-
#
|
|
222
|
+
# Exchange an SSO one-time token for a session key.
|
|
142
223
|
#
|
|
143
224
|
# You must supply administrator authentication credentials to use this API.
|
|
225
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
144
226
|
#
|
|
145
|
-
# @
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
submit_params = {}
|
|
149
|
-
raise TypeError, "'session_key' expected String, got #{session_key.class}" unless session_key.is_a? String
|
|
150
|
-
|
|
151
|
-
submit_params['SessionKey'] = session_key
|
|
152
|
-
|
|
153
|
-
body = perform_request('api/v1/admin/account/session-upgrade', submit_params)
|
|
227
|
+
# @return [Comet::SessionKeyRegeneratedResponse]
|
|
228
|
+
def admin_account_session_upgrade
|
|
229
|
+
body = perform_request('api/v1/admin/account/session-upgrade')
|
|
154
230
|
json_body = JSON.parse body
|
|
155
231
|
check_status json_body
|
|
156
|
-
ret = Comet::
|
|
232
|
+
ret = Comet::SessionKeyRegeneratedResponse.new
|
|
157
233
|
ret.from_hash(json_body)
|
|
158
234
|
ret
|
|
159
235
|
end
|
|
@@ -167,6 +243,7 @@ module Comet
|
|
|
167
243
|
# In Comet 24.12.2 and later, this API can change the IPWhitelist field. Prior to this, changes to the IPWhitelist field were ignored.
|
|
168
244
|
#
|
|
169
245
|
# You must supply administrator authentication credentials to use this API.
|
|
246
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
170
247
|
#
|
|
171
248
|
# @param [Comet::AdminSecurityOptions] security Updated account properties
|
|
172
249
|
# @return [Comet::CometAPIResponseMessage]
|
|
@@ -192,6 +269,7 @@ module Comet
|
|
|
192
269
|
# to allow their use with the WebAuthn endpoints.
|
|
193
270
|
#
|
|
194
271
|
# You must supply administrator authentication credentials to use this API.
|
|
272
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
195
273
|
#
|
|
196
274
|
# @param [String] self_address External URL of this server, used as U2F AppID and Facet
|
|
197
275
|
# @return [Comet::U2FRegistrationChallengeResponse]
|
|
@@ -217,6 +295,7 @@ module Comet
|
|
|
217
295
|
# to allow their use with the WebAuthn endpoints.
|
|
218
296
|
#
|
|
219
297
|
# You must supply administrator authentication credentials to use this API.
|
|
298
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
220
299
|
#
|
|
221
300
|
# @param [String] u2fchallenge_id Associated value from AdminAccountU2fRequestRegistrationChallenge API
|
|
222
301
|
# @param [String] u2fclient_data U2F response data supplied by hardware token
|
|
@@ -257,6 +336,7 @@ module Comet
|
|
|
257
336
|
# Validate the TOTP code before turning 2fa(TOTP) on.
|
|
258
337
|
#
|
|
259
338
|
# You must supply administrator authentication credentials to use this API.
|
|
339
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
260
340
|
#
|
|
261
341
|
# @param [String] totpcode Six-digit code after scanning barcode image
|
|
262
342
|
# @return [Comet::CometAPIResponseMessage]
|
|
@@ -279,6 +359,7 @@ module Comet
|
|
|
279
359
|
# Register a new FIDO2 WebAuthn token.
|
|
280
360
|
#
|
|
281
361
|
# You must supply administrator authentication credentials to use this API.
|
|
362
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
282
363
|
#
|
|
283
364
|
# @param [String] self_address External URL of this server, used as WebAuthn ID
|
|
284
365
|
# @return [Comet::WebAuthnRegistrationChallengeResponse]
|
|
@@ -301,6 +382,7 @@ module Comet
|
|
|
301
382
|
# Register a new FIDO2 WebAuthn token.
|
|
302
383
|
#
|
|
303
384
|
# You must supply administrator authentication credentials to use this API.
|
|
385
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
304
386
|
#
|
|
305
387
|
# @param [String] self_address External URL of this server, used as WebAuthn ID
|
|
306
388
|
# @param [String] challenge_id Associated value from AdminAccountWebAuthnRequestRegistrationChallenge API
|
|
@@ -356,14 +438,16 @@ module Comet
|
|
|
356
438
|
#
|
|
357
439
|
# You must supply administrator authentication credentials to use this API.
|
|
358
440
|
# This API requires the Auth Role to be enabled.
|
|
441
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
359
442
|
#
|
|
360
|
-
# @param [String] target_user New account username
|
|
361
|
-
# @param [String] target_password New account password
|
|
443
|
+
# @param [String] target_user New account username (>= 17.2.0)
|
|
444
|
+
# @param [String] target_password New account password (>= 17.2.0)
|
|
362
445
|
# @param [Number] store_recovery_code (Optional) If set to 1, store and keep a password recovery code for the generated user (>= 18.3.9)
|
|
363
446
|
# @param [Number] require_password_change (Optional) If set to 1, require to reset password at the first login for the generated user (>= 20.3.4)
|
|
364
|
-
# @param [String] target_organization (Optional) If present, create the user account on behalf of another organization. Only allowed for administrator accounts in the top-level organization. (>= 22.
|
|
447
|
+
# @param [String] target_organization (Optional) If present, create the user account on behalf of another organization. Only allowed for administrator accounts in the top-level organization. (>= 22.5.0)
|
|
448
|
+
# @param [Number] store_data_recovery_code (Optional) If set to 1, store and keep a data recovery code for the generated user (>= 26.8.10)
|
|
365
449
|
# @return [Comet::CometAPIResponseMessage]
|
|
366
|
-
def admin_add_user(target_user, target_password, store_recovery_code = nil, require_password_change = nil, target_organization = nil)
|
|
450
|
+
def admin_add_user(target_user, target_password, store_recovery_code = nil, require_password_change = nil, target_organization = nil, store_data_recovery_code = nil)
|
|
367
451
|
submit_params = {}
|
|
368
452
|
raise TypeError, "'target_user' expected String, got #{target_user.class}" unless target_user.is_a? String
|
|
369
453
|
|
|
@@ -386,6 +470,11 @@ module Comet
|
|
|
386
470
|
|
|
387
471
|
submit_params['TargetOrganization'] = target_organization
|
|
388
472
|
end
|
|
473
|
+
unless store_data_recovery_code.nil?
|
|
474
|
+
raise TypeError, "'store_data_recovery_code' expected Numeric, got #{store_data_recovery_code.class}" unless store_data_recovery_code.is_a? Numeric
|
|
475
|
+
|
|
476
|
+
submit_params['StoreDataRecoveryCode'] = store_data_recovery_code
|
|
477
|
+
end
|
|
389
478
|
|
|
390
479
|
body = perform_request('api/v1/admin/add-user', submit_params)
|
|
391
480
|
json_body = JSON.parse body
|
|
@@ -402,10 +491,11 @@ module Comet
|
|
|
402
491
|
#
|
|
403
492
|
# You must supply administrator authentication credentials to use this API.
|
|
404
493
|
# This API requires the Auth Role to be enabled.
|
|
494
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
405
495
|
#
|
|
406
|
-
# @param [String] target_user New account username
|
|
407
|
-
# @param [Comet::UserProfileConfig] profile_data New account profile
|
|
408
|
-
# @param [String] target_organization (Optional) If present, create the user account on behalf of another organization. Only allowed for administrator accounts in the top-level organization. (>= 22.
|
|
496
|
+
# @param [String] target_user New account username (>= 17.2.0)
|
|
497
|
+
# @param [Comet::UserProfileConfig] profile_data New account profile (>= 17.2.0)
|
|
498
|
+
# @param [String] target_organization (Optional) If present, create the user account on behalf of another organization. Only allowed for administrator accounts in the top-level organization. (>= 22.5.0)
|
|
409
499
|
# @return [Comet::CometAPIResponseMessage]
|
|
410
500
|
def admin_add_user_from_profile(target_user, profile_data, target_organization = nil)
|
|
411
501
|
submit_params = {}
|
|
@@ -436,14 +526,21 @@ module Comet
|
|
|
436
526
|
# You must supply administrator authentication credentials to use this API.
|
|
437
527
|
# Access to this API may be prevented on a per-administrator basis.
|
|
438
528
|
# This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
|
|
529
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
439
530
|
#
|
|
440
531
|
# @param [String] target_user the username of the admin to be deleted
|
|
532
|
+
# @param [String] target_org_id (Optional) the organization ID of the admin to be deleted. If omitted, defaults to the top-level organization. (>= 26.11.0)
|
|
441
533
|
# @return [Comet::CometAPIResponseMessage]
|
|
442
|
-
def admin_admin_user_delete(target_user)
|
|
534
|
+
def admin_admin_user_delete(target_user, target_org_id = nil)
|
|
443
535
|
submit_params = {}
|
|
444
536
|
raise TypeError, "'target_user' expected String, got #{target_user.class}" unless target_user.is_a? String
|
|
445
537
|
|
|
446
538
|
submit_params['TargetUser'] = target_user
|
|
539
|
+
unless target_org_id.nil?
|
|
540
|
+
raise TypeError, "'target_org_id' expected String, got #{target_org_id.class}" unless target_org_id.is_a? String
|
|
541
|
+
|
|
542
|
+
submit_params['TargetOrgID'] = target_org_id
|
|
543
|
+
end
|
|
447
544
|
|
|
448
545
|
body = perform_request('api/v1/admin/admin-user/delete', submit_params)
|
|
449
546
|
json_body = JSON.parse body
|
|
@@ -460,10 +557,19 @@ module Comet
|
|
|
460
557
|
# You must supply administrator authentication credentials to use this API.
|
|
461
558
|
# Access to this API may be prevented on a per-administrator basis.
|
|
462
559
|
# This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
|
|
560
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
463
561
|
#
|
|
562
|
+
# @param [String] target_org_id (Optional) If present, only list the administrators belonging to this organization. Otherwise, administrators from all organizations are listed. (>= 26.11.0)
|
|
464
563
|
# @return [Array<Comet::AllowedAdminUser>]
|
|
465
|
-
def admin_admin_user_list
|
|
466
|
-
|
|
564
|
+
def admin_admin_user_list(target_org_id = nil)
|
|
565
|
+
submit_params = {}
|
|
566
|
+
unless target_org_id.nil?
|
|
567
|
+
raise TypeError, "'target_org_id' expected String, got #{target_org_id.class}" unless target_org_id.is_a? String
|
|
568
|
+
|
|
569
|
+
submit_params['TargetOrgID'] = target_org_id
|
|
570
|
+
end
|
|
571
|
+
|
|
572
|
+
body = perform_request('api/v1/admin/admin-user/list', submit_params)
|
|
467
573
|
json_body = JSON.parse body
|
|
468
574
|
check_status json_body
|
|
469
575
|
if json_body.nil?
|
|
@@ -485,10 +591,11 @@ module Comet
|
|
|
485
591
|
# You must supply administrator authentication credentials to use this API.
|
|
486
592
|
# Access to this API may be prevented on a per-administrator basis.
|
|
487
593
|
# This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
|
|
594
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
488
595
|
#
|
|
489
596
|
# @param [String] target_user the username for this new admin
|
|
490
597
|
# @param [String] target_password the password for this new admin user
|
|
491
|
-
# @param [String] target_org_id (Optional) provide the organization ID for this user, it will default to the
|
|
598
|
+
# @param [String] target_org_id (Optional) provide the organization ID for this user, it will default to the top-level organization otherwise.
|
|
492
599
|
# @return [Comet::CometAPIResponseMessage]
|
|
493
600
|
def admin_admin_user_new(target_user, target_password, target_org_id = nil)
|
|
494
601
|
submit_params = {}
|
|
@@ -512,6 +619,47 @@ module Comet
|
|
|
512
619
|
ret
|
|
513
620
|
end
|
|
514
621
|
|
|
622
|
+
# AdminAdminUserSet
|
|
623
|
+
#
|
|
624
|
+
# Update another administrator.
|
|
625
|
+
# This API cannot update your own administrator account. Use the AdminAccountSetProperties API instead.
|
|
626
|
+
# The supplied Profile replaces the stored administrator account as-is, with the following exceptions:
|
|
627
|
+
# - The Username and OrganizationID fields must either be empty or match the target administrator. This API cannot rename an administrator or move it to another organization.
|
|
628
|
+
# - To set a new plaintext password, use a password format of 0 (PASSWORD_FORMAT_PLAINTEXT); it must be at least 8 characters. A password format of 4 (PASSWORD_FORMAT_UNVERIFIABLE) leaves the password unchanged.
|
|
629
|
+
# - APITokens may only be removed, or have their Description changed. New tokens must be created by the administrator themselves. Other fields of retained tokens are ignored.
|
|
630
|
+
# - IPWhitelist is cleared if the server license does not permit it.
|
|
631
|
+
#
|
|
632
|
+
# You must supply administrator authentication credentials to use this API.
|
|
633
|
+
# Access to this API may be prevented on a per-administrator basis.
|
|
634
|
+
# This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
|
|
635
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
636
|
+
#
|
|
637
|
+
# @param [String] target_user the username of the admin to be updated (>= 26.11.0)
|
|
638
|
+
# @param [Comet::AllowedAdminUser] profile the updated administrator account (>= 26.11.0)
|
|
639
|
+
# @param [String] target_org_id (Optional) the organization ID of the admin to be updated. If omitted, defaults to the top-level organization. (>= 26.11.0)
|
|
640
|
+
# @return [Comet::CometAPIResponseMessage]
|
|
641
|
+
def admin_admin_user_set(target_user, profile, target_org_id = nil)
|
|
642
|
+
submit_params = {}
|
|
643
|
+
raise TypeError, "'target_user' expected String, got #{target_user.class}" unless target_user.is_a? String
|
|
644
|
+
|
|
645
|
+
submit_params['TargetUser'] = target_user
|
|
646
|
+
raise TypeError, "'profile' expected Comet::AllowedAdminUser, got #{profile.class}" unless profile.is_a? Comet::AllowedAdminUser
|
|
647
|
+
|
|
648
|
+
submit_params['Profile'] = profile.to_json
|
|
649
|
+
unless target_org_id.nil?
|
|
650
|
+
raise TypeError, "'target_org_id' expected String, got #{target_org_id.class}" unless target_org_id.is_a? String
|
|
651
|
+
|
|
652
|
+
submit_params['TargetOrgID'] = target_org_id
|
|
653
|
+
end
|
|
654
|
+
|
|
655
|
+
body = perform_request('api/v1/admin/admin-user/set', submit_params)
|
|
656
|
+
json_body = JSON.parse body
|
|
657
|
+
check_status json_body
|
|
658
|
+
ret = Comet::CometAPIResponseMessage.new
|
|
659
|
+
ret.from_hash(json_body)
|
|
660
|
+
ret
|
|
661
|
+
end
|
|
662
|
+
|
|
515
663
|
# AdminBrandingAvailablePlatforms
|
|
516
664
|
#
|
|
517
665
|
# List available software download platforms.
|
|
@@ -595,7 +743,7 @@ module Comet
|
|
|
595
743
|
# This API requires the Software Build Role to be enabled.
|
|
596
744
|
# This API requires the Auth Role to be enabled.
|
|
597
745
|
#
|
|
598
|
-
# @param [String] self_address (Optional) The external URL of this server, used to resolve conflicts
|
|
746
|
+
# @param [String] self_address (Optional) The external URL of this server, used to resolve conflicts (>= 17.3.12)
|
|
599
747
|
# @return [String]
|
|
600
748
|
def admin_branding_generate_client_linuxgeneric(self_address = nil)
|
|
601
749
|
submit_params = {}
|
|
@@ -884,9 +1032,10 @@ module Comet
|
|
|
884
1032
|
#
|
|
885
1033
|
# You must supply administrator authentication credentials to use this API.
|
|
886
1034
|
# This API requires the Auth Role to be enabled.
|
|
1035
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
887
1036
|
#
|
|
888
|
-
# @param [String] subject Bulletin subject line
|
|
889
|
-
# @param [String] content Bulletin message content
|
|
1037
|
+
# @param [String] subject Bulletin subject line (>= 17.3.5)
|
|
1038
|
+
# @param [String] content Bulletin message content (>= 17.3.5)
|
|
890
1039
|
# @return [Comet::CometAPIResponseMessage]
|
|
891
1040
|
def admin_bulletin_submit(subject, content)
|
|
892
1041
|
submit_params = {}
|
|
@@ -911,6 +1060,7 @@ module Comet
|
|
|
911
1060
|
#
|
|
912
1061
|
# You must supply administrator authentication credentials to use this API.
|
|
913
1062
|
# This API requires the Constellation Role to be enabled.
|
|
1063
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
914
1064
|
#
|
|
915
1065
|
# @return [Comet::ConstellationCheckReport]
|
|
916
1066
|
def admin_constellation_last_report
|
|
@@ -928,6 +1078,7 @@ module Comet
|
|
|
928
1078
|
#
|
|
929
1079
|
# You must supply administrator authentication credentials to use this API.
|
|
930
1080
|
# This API requires the Constellation Role to be enabled.
|
|
1081
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
931
1082
|
#
|
|
932
1083
|
# @return [Comet::ConstellationCheckReport]
|
|
933
1084
|
def admin_constellation_new_report
|
|
@@ -946,6 +1097,7 @@ module Comet
|
|
|
946
1097
|
# You must supply administrator authentication credentials to use this API.
|
|
947
1098
|
# This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
|
|
948
1099
|
# This API requires the Constellation Role to be enabled.
|
|
1100
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
949
1101
|
#
|
|
950
1102
|
# @return [Comet::CometAPIResponseMessage]
|
|
951
1103
|
def admin_constellation_prune_now
|
|
@@ -963,6 +1115,7 @@ module Comet
|
|
|
963
1115
|
#
|
|
964
1116
|
# You must supply administrator authentication credentials to use this API.
|
|
965
1117
|
# This API requires the Constellation Role to be enabled.
|
|
1118
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
966
1119
|
#
|
|
967
1120
|
# @return [Comet::ConstellationStatusAPIResponse]
|
|
968
1121
|
def admin_constellation_status
|
|
@@ -979,6 +1132,7 @@ module Comet
|
|
|
979
1132
|
# Convert IAM Storage Role vault to its underlying S3 type.
|
|
980
1133
|
#
|
|
981
1134
|
# You must supply administrator authentication credentials to use this API.
|
|
1135
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
982
1136
|
#
|
|
983
1137
|
# @param [String] target_user The user to receive the new Storage Vault
|
|
984
1138
|
# @param [String] destination_id The id of the old storage role destination to convert
|
|
@@ -1006,6 +1160,7 @@ module Comet
|
|
|
1006
1160
|
#
|
|
1007
1161
|
# You must supply administrator authentication credentials to use this API.
|
|
1008
1162
|
# This API requires the Auth Role to be enabled.
|
|
1163
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1009
1164
|
#
|
|
1010
1165
|
# @param [Comet::SearchClause] query (No description available)
|
|
1011
1166
|
# @return [Comet::CountJobsResponse]
|
|
@@ -1032,9 +1187,10 @@ module Comet
|
|
|
1032
1187
|
#
|
|
1033
1188
|
# You must supply administrator authentication credentials to use this API.
|
|
1034
1189
|
# This API requires the Auth Role to be enabled.
|
|
1190
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1035
1191
|
#
|
|
1036
1192
|
# @param [String] target_user Selected account username
|
|
1037
|
-
# @param [String] target_password Selected account password
|
|
1193
|
+
# @param [String] target_password Selected account password (>= 20.9.1)
|
|
1038
1194
|
# @param [String] server (Optional) External URL of the authentication server that is different from the current server
|
|
1039
1195
|
# @return [Comet::InstallTokenResponse]
|
|
1040
1196
|
def admin_create_install_token(target_user, target_password, server = nil)
|
|
@@ -1065,6 +1221,7 @@ module Comet
|
|
|
1065
1221
|
#
|
|
1066
1222
|
# You must supply administrator authentication credentials to use this API.
|
|
1067
1223
|
# This API requires the Auth Role to be enabled.
|
|
1224
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1068
1225
|
#
|
|
1069
1226
|
# @param [String] target_user Selected account username
|
|
1070
1227
|
# @param [String] source_id Selected Protected Item GUID
|
|
@@ -1096,8 +1253,9 @@ module Comet
|
|
|
1096
1253
|
#
|
|
1097
1254
|
# You must supply administrator authentication credentials to use this API.
|
|
1098
1255
|
# This API requires the Auth Role to be enabled.
|
|
1256
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1099
1257
|
#
|
|
1100
|
-
# @param [String] target_user Selected account username
|
|
1258
|
+
# @param [String] target_user Selected account username (>= 17.2.0)
|
|
1101
1259
|
# @param [Comet::UninstallConfig] uninstall_config (Optional) Uninstall software configuration (>= 20.3.5)
|
|
1102
1260
|
# @return [Comet::CometAPIResponseMessage]
|
|
1103
1261
|
def admin_delete_user(target_user, uninstall_config = nil)
|
|
@@ -1125,6 +1283,7 @@ module Comet
|
|
|
1125
1283
|
#
|
|
1126
1284
|
# You must supply administrator authentication credentials to use this API.
|
|
1127
1285
|
# This API requires the Auth Role to be enabled.
|
|
1286
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1128
1287
|
#
|
|
1129
1288
|
# @param [String] target_user Selected account username
|
|
1130
1289
|
# @return [Comet::CometAPIResponseMessage]
|
|
@@ -1149,6 +1308,7 @@ module Comet
|
|
|
1149
1308
|
#
|
|
1150
1309
|
# You must supply administrator authentication credentials to use this API.
|
|
1151
1310
|
# This API requires the Auth Role to be enabled.
|
|
1311
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1152
1312
|
#
|
|
1153
1313
|
# @param [String] target_id The live connection GUID
|
|
1154
1314
|
# @param [String] destination The Storage Vault GUID
|
|
@@ -1176,6 +1336,7 @@ module Comet
|
|
|
1176
1336
|
#
|
|
1177
1337
|
# You must supply administrator authentication credentials to use this API.
|
|
1178
1338
|
# This API requires the Auth Role to be enabled.
|
|
1339
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1179
1340
|
#
|
|
1180
1341
|
# @param [String] target_id The live connection GUID
|
|
1181
1342
|
# @param [String] destination_id The Storage Vault GUID
|
|
@@ -1201,6 +1362,31 @@ module Comet
|
|
|
1201
1362
|
ret
|
|
1202
1363
|
end
|
|
1203
1364
|
|
|
1365
|
+
# AdminDispatcherClearLoginPassword
|
|
1366
|
+
#
|
|
1367
|
+
# Instruct a live connected device to discard its stored login password and return to the login screen.
|
|
1368
|
+
# The device keeps its username and server URL, so only the new password needs to be re-entered. Use this after a server-side password change when the device should not be given the new password automatically. Devices older than 26.11.3 cannot retain the login details and receive the force-login behavior instead, discarding all stored credentials.
|
|
1369
|
+
#
|
|
1370
|
+
# You must supply administrator authentication credentials to use this API.
|
|
1371
|
+
# This API requires the Auth Role to be enabled.
|
|
1372
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1373
|
+
#
|
|
1374
|
+
# @param [String] target_id The live connection GUID
|
|
1375
|
+
# @return [Comet::CometAPIResponseMessage]
|
|
1376
|
+
def admin_dispatcher_clear_login_password(target_id)
|
|
1377
|
+
submit_params = {}
|
|
1378
|
+
raise TypeError, "'target_id' expected String, got #{target_id.class}" unless target_id.is_a? String
|
|
1379
|
+
|
|
1380
|
+
submit_params['TargetID'] = target_id
|
|
1381
|
+
|
|
1382
|
+
body = perform_request('api/v1/admin/dispatcher/clear-login-password', submit_params)
|
|
1383
|
+
json_body = JSON.parse body
|
|
1384
|
+
check_status json_body
|
|
1385
|
+
ret = Comet::CometAPIResponseMessage.new
|
|
1386
|
+
ret.from_hash(json_body)
|
|
1387
|
+
ret
|
|
1388
|
+
end
|
|
1389
|
+
|
|
1204
1390
|
# AdminDispatcherDeepverifyStorageVault
|
|
1205
1391
|
#
|
|
1206
1392
|
# Instruct a live connected device to deeply verify Storage Vault content.
|
|
@@ -1208,6 +1394,7 @@ module Comet
|
|
|
1208
1394
|
#
|
|
1209
1395
|
# You must supply administrator authentication credentials to use this API.
|
|
1210
1396
|
# This API requires the Auth Role to be enabled.
|
|
1397
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1211
1398
|
#
|
|
1212
1399
|
# @param [String] target_id The live connection GUID
|
|
1213
1400
|
# @param [String] destination The Storage Vault GUID
|
|
@@ -1235,6 +1422,7 @@ module Comet
|
|
|
1235
1422
|
#
|
|
1236
1423
|
# You must supply administrator authentication credentials to use this API.
|
|
1237
1424
|
# This API requires the Auth Role to be enabled.
|
|
1425
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1238
1426
|
#
|
|
1239
1427
|
# @param [String] target_id The live connection GUID
|
|
1240
1428
|
# @param [String] destination_id The Storage Vault GUID
|
|
@@ -1267,6 +1455,7 @@ module Comet
|
|
|
1267
1455
|
#
|
|
1268
1456
|
# You must supply administrator authentication credentials to use this API.
|
|
1269
1457
|
# This API requires the Auth Role to be enabled.
|
|
1458
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1270
1459
|
#
|
|
1271
1460
|
# @param [String] target_id The live connection GUID
|
|
1272
1461
|
# @param [String] destination_id The Storage Vault GUID
|
|
@@ -1299,8 +1488,9 @@ module Comet
|
|
|
1299
1488
|
#
|
|
1300
1489
|
# You must supply administrator authentication credentials to use this API.
|
|
1301
1490
|
# This API requires the Auth Role to be enabled.
|
|
1491
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1302
1492
|
#
|
|
1303
|
-
# @param [String] target_id The live connection GUID
|
|
1493
|
+
# @param [String] target_id The live connection GUID (>= 17.2.0)
|
|
1304
1494
|
# @return [Comet::CometAPIResponseMessage]
|
|
1305
1495
|
def admin_dispatcher_drop_connection(target_id)
|
|
1306
1496
|
submit_params = {}
|
|
@@ -1323,6 +1513,7 @@ module Comet
|
|
|
1323
1513
|
#
|
|
1324
1514
|
# You must supply administrator authentication credentials to use this API.
|
|
1325
1515
|
# This API requires the Auth Role to be enabled.
|
|
1516
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1326
1517
|
#
|
|
1327
1518
|
# @param [String] target_id The live connection GUID
|
|
1328
1519
|
# @param [String] snapshot where the email belongs to
|
|
@@ -1359,6 +1550,7 @@ module Comet
|
|
|
1359
1550
|
#
|
|
1360
1551
|
# You must supply administrator authentication credentials to use this API.
|
|
1361
1552
|
# This API requires the Auth Role to be enabled.
|
|
1553
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1362
1554
|
#
|
|
1363
1555
|
# @param [String] target_id The live connection GUID
|
|
1364
1556
|
# @return [Comet::CometAPIResponseMessage]
|
|
@@ -1383,6 +1575,7 @@ module Comet
|
|
|
1383
1575
|
# You must supply administrator authentication credentials to use this API.
|
|
1384
1576
|
# This API requires the Auth Role to be enabled.
|
|
1385
1577
|
# This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
|
|
1578
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1386
1579
|
#
|
|
1387
1580
|
# @param [String] organization_id Target organization
|
|
1388
1581
|
# @return [Comet::OrganizationLoginURLResponse]
|
|
@@ -1407,6 +1600,7 @@ module Comet
|
|
|
1407
1600
|
#
|
|
1408
1601
|
# You must supply administrator authentication credentials to use this API.
|
|
1409
1602
|
# This API requires the Auth Role to be enabled.
|
|
1603
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1410
1604
|
#
|
|
1411
1605
|
# @param [String] target_id The live connection GUID
|
|
1412
1606
|
# @param [String] import_source_id The selected import source, as found by the AdminDispatcherRequestImportSources API
|
|
@@ -1435,8 +1629,9 @@ module Comet
|
|
|
1435
1629
|
#
|
|
1436
1630
|
# You must supply administrator authentication credentials to use this API.
|
|
1437
1631
|
# This API requires the Auth Role to be enabled.
|
|
1632
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1438
1633
|
#
|
|
1439
|
-
# @param [String] target_id The live connection GUID
|
|
1634
|
+
# @param [String] target_id The live connection GUID (>= 17.2.0)
|
|
1440
1635
|
# @return [Comet::CometAPIResponseMessage]
|
|
1441
1636
|
def admin_dispatcher_kill_process(target_id)
|
|
1442
1637
|
submit_params = {}
|
|
@@ -1458,8 +1653,9 @@ module Comet
|
|
|
1458
1653
|
#
|
|
1459
1654
|
# You must supply administrator authentication credentials to use this API.
|
|
1460
1655
|
# This API requires the Auth Role to be enabled.
|
|
1656
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1461
1657
|
#
|
|
1462
|
-
# @param [String] user_name_filter (Optional) User name filter string
|
|
1658
|
+
# @param [String] user_name_filter (Optional) User name filter string (>= 22.6.5)
|
|
1463
1659
|
# @return [Hash{String => Comet::LiveUserConnection}]
|
|
1464
1660
|
def admin_dispatcher_list_active(user_name_filter = nil)
|
|
1465
1661
|
submit_params = {}
|
|
@@ -1491,6 +1687,7 @@ module Comet
|
|
|
1491
1687
|
#
|
|
1492
1688
|
# You must supply administrator authentication credentials to use this API.
|
|
1493
1689
|
# This API requires the Auth Role to be enabled.
|
|
1690
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1494
1691
|
#
|
|
1495
1692
|
# @param [String] target_id The live connection GUID
|
|
1496
1693
|
# @param [Comet::Office365Credential] credentials The Office365 account credential
|
|
@@ -1518,6 +1715,7 @@ module Comet
|
|
|
1518
1715
|
#
|
|
1519
1716
|
# You must supply administrator authentication credentials to use this API.
|
|
1520
1717
|
# This API requires the Auth Role to be enabled.
|
|
1718
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1521
1719
|
#
|
|
1522
1720
|
# @param [String] target_id The live connection GUID
|
|
1523
1721
|
# @param [Comet::DestinationLocation] extra_data The destination location settings
|
|
@@ -1542,12 +1740,13 @@ module Comet
|
|
|
1542
1740
|
# AdminDispatcherRefetchProfile
|
|
1543
1741
|
#
|
|
1544
1742
|
# Instruct a live connected device to refresh their profile.
|
|
1545
|
-
# This command is understood by Comet Backup 17.
|
|
1743
|
+
# This command is understood by Comet Backup 17.2.0 and newer.
|
|
1546
1744
|
#
|
|
1547
1745
|
# You must supply administrator authentication credentials to use this API.
|
|
1548
1746
|
# This API requires the Auth Role to be enabled.
|
|
1747
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1549
1748
|
#
|
|
1550
|
-
# @param [String] target_id The live connection GUID
|
|
1749
|
+
# @param [String] target_id The live connection GUID (>= 17.2.0)
|
|
1551
1750
|
# @return [Comet::CometAPIResponseMessage]
|
|
1552
1751
|
def admin_dispatcher_refetch_profile(target_id)
|
|
1553
1752
|
submit_params = {}
|
|
@@ -1570,6 +1769,7 @@ module Comet
|
|
|
1570
1769
|
#
|
|
1571
1770
|
# You must supply administrator authentication credentials to use this API.
|
|
1572
1771
|
# This API requires the Auth Role to be enabled.
|
|
1772
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1573
1773
|
#
|
|
1574
1774
|
# @param [String] target_id The live connection GUID
|
|
1575
1775
|
# @param [String] email_address The email address of the Azure AD administrator
|
|
@@ -1598,6 +1798,7 @@ module Comet
|
|
|
1598
1798
|
#
|
|
1599
1799
|
# You must supply administrator authentication credentials to use this API.
|
|
1600
1800
|
# This API requires the Auth Role to be enabled.
|
|
1801
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1601
1802
|
#
|
|
1602
1803
|
# @param [String] target_id The live connection GUID
|
|
1603
1804
|
# @param [String] continuation The ID returned from the AdminDispatcherRegisterOfficeApplicationBegin endpoint
|
|
@@ -1626,6 +1827,7 @@ module Comet
|
|
|
1626
1827
|
#
|
|
1627
1828
|
# You must supply administrator authentication credentials to use this API.
|
|
1628
1829
|
# This API requires the Auth Role to be enabled.
|
|
1830
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1629
1831
|
#
|
|
1630
1832
|
# @param [String] target_id The live connection GUID
|
|
1631
1833
|
# @param [String] destination The Storage Vault GUID
|
|
@@ -1653,6 +1855,7 @@ module Comet
|
|
|
1653
1855
|
#
|
|
1654
1856
|
# You must supply administrator authentication credentials to use this API.
|
|
1655
1857
|
# This API requires the Auth Role to be enabled.
|
|
1858
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1656
1859
|
#
|
|
1657
1860
|
# @param [String] target_id The live connection GUID
|
|
1658
1861
|
# @return [Comet::BrowseDiskDrivesResponse]
|
|
@@ -1676,6 +1879,7 @@ module Comet
|
|
|
1676
1879
|
#
|
|
1677
1880
|
# You must supply administrator authentication credentials to use this API.
|
|
1678
1881
|
# This API requires the Auth Role to be enabled.
|
|
1882
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1679
1883
|
#
|
|
1680
1884
|
# @param [String] target_id The live connection GUID
|
|
1681
1885
|
# @return [Comet::BrowseEDBResponse]
|
|
@@ -1699,6 +1903,7 @@ module Comet
|
|
|
1699
1903
|
#
|
|
1700
1904
|
# You must supply administrator authentication credentials to use this API.
|
|
1701
1905
|
# This API requires the Auth Role to be enabled.
|
|
1906
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1702
1907
|
#
|
|
1703
1908
|
# @param [String] target_id The live connection GUID
|
|
1704
1909
|
# @return [Comet::BrowseHVResponse]
|
|
@@ -1723,6 +1928,7 @@ module Comet
|
|
|
1723
1928
|
#
|
|
1724
1929
|
# You must supply administrator authentication credentials to use this API.
|
|
1725
1930
|
# This API requires the Auth Role to be enabled.
|
|
1931
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1726
1932
|
#
|
|
1727
1933
|
# @param [String] target_id The live connection GUID
|
|
1728
1934
|
# @param [Comet::MongoDBConnection] credentials The Mongo database authentication settings
|
|
@@ -1751,6 +1957,7 @@ module Comet
|
|
|
1751
1957
|
#
|
|
1752
1958
|
# You must supply administrator authentication credentials to use this API.
|
|
1753
1959
|
# This API requires the Auth Role to be enabled.
|
|
1960
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1754
1961
|
#
|
|
1755
1962
|
# @param [String] target_id The live connection GUID
|
|
1756
1963
|
# @param [Comet::MSSQLConnection] credentials The MSSQL database authentication settings
|
|
@@ -1779,6 +1986,7 @@ module Comet
|
|
|
1779
1986
|
#
|
|
1780
1987
|
# You must supply administrator authentication credentials to use this API.
|
|
1781
1988
|
# This API requires the Auth Role to be enabled.
|
|
1989
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1782
1990
|
#
|
|
1783
1991
|
# @param [String] target_id The live connection GUID
|
|
1784
1992
|
# @param [Comet::MySQLConnection] credentials The MySQL database authentication settings
|
|
@@ -1800,12 +2008,42 @@ module Comet
|
|
|
1800
2008
|
ret
|
|
1801
2009
|
end
|
|
1802
2010
|
|
|
2011
|
+
# AdminDispatcherRequestBrowsePostgresql
|
|
2012
|
+
#
|
|
2013
|
+
# Request a list of databases in a PostgreSQL server.
|
|
2014
|
+
# The remote device must have given consent for an MSP to browse their files.
|
|
2015
|
+
#
|
|
2016
|
+
# You must supply administrator authentication credentials to use this API.
|
|
2017
|
+
# This API requires the Auth Role to be enabled.
|
|
2018
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2019
|
+
#
|
|
2020
|
+
# @param [String] target_id The live connection GUID (>= 26.11.0)
|
|
2021
|
+
# @param [Comet::PostgreSQLConnection] credentials The PostgreSQL database authentication settings (>= 26.11.0)
|
|
2022
|
+
# @return [Comet::BrowseSQLServerResponse]
|
|
2023
|
+
def admin_dispatcher_request_browse_postgresql(target_id, credentials)
|
|
2024
|
+
submit_params = {}
|
|
2025
|
+
raise TypeError, "'target_id' expected String, got #{target_id.class}" unless target_id.is_a? String
|
|
2026
|
+
|
|
2027
|
+
submit_params['TargetID'] = target_id
|
|
2028
|
+
raise TypeError, "'credentials' expected Comet::PostgreSQLConnection, got #{credentials.class}" unless credentials.is_a? Comet::PostgreSQLConnection
|
|
2029
|
+
|
|
2030
|
+
submit_params['Credentials'] = credentials.to_json
|
|
2031
|
+
|
|
2032
|
+
body = perform_request('api/v1/admin/dispatcher/request-browse-postgresql', submit_params)
|
|
2033
|
+
json_body = JSON.parse body
|
|
2034
|
+
check_status json_body
|
|
2035
|
+
ret = Comet::BrowseSQLServerResponse.new
|
|
2036
|
+
ret.from_hash(json_body)
|
|
2037
|
+
ret
|
|
2038
|
+
end
|
|
2039
|
+
|
|
1803
2040
|
# AdminDispatcherRequestBrowseProxmox
|
|
1804
2041
|
#
|
|
1805
2042
|
# Request a list of Proxmox virtual machines and containers.
|
|
1806
2043
|
#
|
|
1807
2044
|
# You must supply administrator authentication credentials to use this API.
|
|
1808
2045
|
# This API requires the Auth Role to be enabled.
|
|
2046
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1809
2047
|
#
|
|
1810
2048
|
# @param [String] target_id The live connection GUID
|
|
1811
2049
|
# @param [Comet::ProxmoxConnection] credentials The Proxmox connection settings
|
|
@@ -1833,6 +2071,7 @@ module Comet
|
|
|
1833
2071
|
#
|
|
1834
2072
|
# You must supply administrator authentication credentials to use this API.
|
|
1835
2073
|
# This API requires the Auth Role to be enabled.
|
|
2074
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1836
2075
|
#
|
|
1837
2076
|
# @param [String] target_id The live connection GUID
|
|
1838
2077
|
# @param [Comet::SSHConnection] credentials The SSH connection settings
|
|
@@ -1860,11 +2099,13 @@ module Comet
|
|
|
1860
2099
|
#
|
|
1861
2100
|
# You must supply administrator authentication credentials to use this API.
|
|
1862
2101
|
# This API requires the Auth Role to be enabled.
|
|
2102
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1863
2103
|
#
|
|
1864
2104
|
# @param [String] target_id The live connection GUID
|
|
1865
2105
|
# @param [Comet::SSHConnection] credentials The SSH connection settings
|
|
2106
|
+
# @param [String] node The target node (>= 25.9.7)
|
|
1866
2107
|
# @return [Comet::BrowseProxmoxStorageResponse]
|
|
1867
|
-
def admin_dispatcher_request_browse_proxmox_storage(target_id, credentials)
|
|
2108
|
+
def admin_dispatcher_request_browse_proxmox_storage(target_id, credentials, node)
|
|
1868
2109
|
submit_params = {}
|
|
1869
2110
|
raise TypeError, "'target_id' expected String, got #{target_id.class}" unless target_id.is_a? String
|
|
1870
2111
|
|
|
@@ -1872,6 +2113,9 @@ module Comet
|
|
|
1872
2113
|
raise TypeError, "'credentials' expected Comet::SSHConnection, got #{credentials.class}" unless credentials.is_a? Comet::SSHConnection
|
|
1873
2114
|
|
|
1874
2115
|
submit_params['Credentials'] = credentials.to_json
|
|
2116
|
+
raise TypeError, "'node' expected String, got #{node.class}" unless node.is_a? String
|
|
2117
|
+
|
|
2118
|
+
submit_params['Node'] = node
|
|
1875
2119
|
|
|
1876
2120
|
body = perform_request('api/v1/admin/dispatcher/request-browse-proxmox/storage', submit_params)
|
|
1877
2121
|
json_body = JSON.parse body
|
|
@@ -1888,6 +2132,7 @@ module Comet
|
|
|
1888
2132
|
#
|
|
1889
2133
|
# You must supply administrator authentication credentials to use this API.
|
|
1890
2134
|
# This API requires the Auth Role to be enabled.
|
|
2135
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1891
2136
|
#
|
|
1892
2137
|
# @param [String] target_id The live connection GUID
|
|
1893
2138
|
# @param [Comet::VMwareConnection] credentials The VMware vSphere connection settings
|
|
@@ -1916,6 +2161,7 @@ module Comet
|
|
|
1916
2161
|
#
|
|
1917
2162
|
# You must supply administrator authentication credentials to use this API.
|
|
1918
2163
|
# This API requires the Auth Role to be enabled.
|
|
2164
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1919
2165
|
#
|
|
1920
2166
|
# @param [String] target_id The live connection GUID
|
|
1921
2167
|
# @param [Comet::VMwareConnection] credentials The VMware vSphere connection settings
|
|
@@ -1944,6 +2190,7 @@ module Comet
|
|
|
1944
2190
|
#
|
|
1945
2191
|
# You must supply administrator authentication credentials to use this API.
|
|
1946
2192
|
# This API requires the Auth Role to be enabled.
|
|
2193
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1947
2194
|
#
|
|
1948
2195
|
# @param [String] target_id The live connection GUID
|
|
1949
2196
|
# @param [Comet::VMwareConnection] credentials The VMware vSphere connection settings
|
|
@@ -1976,6 +2223,7 @@ module Comet
|
|
|
1976
2223
|
#
|
|
1977
2224
|
# You must supply administrator authentication credentials to use this API.
|
|
1978
2225
|
# This API requires the Auth Role to be enabled.
|
|
2226
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
1979
2227
|
#
|
|
1980
2228
|
# @param [String] target_id The live connection GUID
|
|
1981
2229
|
# @param [Comet::VMwareConnection] credentials The VMware vSphere connection settings
|
|
@@ -2008,6 +2256,7 @@ module Comet
|
|
|
2008
2256
|
#
|
|
2009
2257
|
# You must supply administrator authentication credentials to use this API.
|
|
2010
2258
|
# This API requires the Auth Role to be enabled.
|
|
2259
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2011
2260
|
#
|
|
2012
2261
|
# @param [String] target_id The live connection GUID
|
|
2013
2262
|
# @param [Comet::VMwareConnection] credentials The VMware vSphere connection settings
|
|
@@ -2039,6 +2288,7 @@ module Comet
|
|
|
2039
2288
|
#
|
|
2040
2289
|
# You must supply administrator authentication credentials to use this API.
|
|
2041
2290
|
# This API requires the Auth Role to be enabled.
|
|
2291
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2042
2292
|
#
|
|
2043
2293
|
# @param [String] target_id The live connection GUID
|
|
2044
2294
|
# @return [Comet::BrowseVSSResponse]
|
|
@@ -2063,6 +2313,7 @@ module Comet
|
|
|
2063
2313
|
#
|
|
2064
2314
|
# You must supply administrator authentication credentials to use this API.
|
|
2065
2315
|
# This API requires the Auth Role to be enabled.
|
|
2316
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2066
2317
|
#
|
|
2067
2318
|
# @param [String] target_id The live connection GUID
|
|
2068
2319
|
# @param [String] path (Optional) Browse objects inside this path. If empty or not present, returns the top-level device paths
|
|
@@ -2092,6 +2343,7 @@ module Comet
|
|
|
2092
2343
|
#
|
|
2093
2344
|
# You must supply administrator authentication credentials to use this API.
|
|
2094
2345
|
# This API requires the Auth Role to be enabled.
|
|
2346
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2095
2347
|
#
|
|
2096
2348
|
# @param [String] target_id The live connection GUID
|
|
2097
2349
|
# @return [Comet::DispatcherAdminSourcesResponse]
|
|
@@ -2117,6 +2369,7 @@ module Comet
|
|
|
2117
2369
|
#
|
|
2118
2370
|
# You must supply administrator authentication credentials to use this API.
|
|
2119
2371
|
# This API requires the Auth Role to be enabled.
|
|
2372
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2120
2373
|
#
|
|
2121
2374
|
# @param [String] target_id The live connection GUID
|
|
2122
2375
|
# @param [Comet::Office365Credential] credentials The Office365 account credential
|
|
@@ -2145,6 +2398,7 @@ module Comet
|
|
|
2145
2398
|
#
|
|
2146
2399
|
# You must supply administrator authentication credentials to use this API.
|
|
2147
2400
|
# This API requires the Auth Role to be enabled.
|
|
2401
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2148
2402
|
#
|
|
2149
2403
|
# @param [String] target_id The live connection GUID
|
|
2150
2404
|
# @param [Comet::Office365Credential] credentials The Office365 account credential
|
|
@@ -2174,12 +2428,13 @@ module Comet
|
|
|
2174
2428
|
#
|
|
2175
2429
|
# You must supply administrator authentication credentials to use this API.
|
|
2176
2430
|
# This API requires the Auth Role to be enabled.
|
|
2431
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2177
2432
|
#
|
|
2178
2433
|
# @param [String] target_id The live connection GUID
|
|
2179
2434
|
# @param [String] destination The Storage Vault ID
|
|
2180
2435
|
# @param [String] snapshot_id The selected backup job snapshot
|
|
2181
2436
|
# @param [String] tree_id (Optional) Browse objects inside subdirectory of backup snapshot. If it is for VMDK single file restore, it should be the disk image's subtree ID.
|
|
2182
|
-
# @param [Comet::VMDKSnapshotViewOptions] options (Optional) Request a list of stored objects in vmdk file
|
|
2437
|
+
# @param [Comet::VMDKSnapshotViewOptions] options (Optional) Request a list of stored objects in vmdk file (>= 21.12.5)
|
|
2183
2438
|
# @return [Comet::DispatcherStoredObjectsResponse]
|
|
2184
2439
|
def admin_dispatcher_request_stored_objects(target_id, destination, snapshot_id, tree_id = nil, options = nil)
|
|
2185
2440
|
submit_params = {}
|
|
@@ -2217,6 +2472,7 @@ module Comet
|
|
|
2217
2472
|
#
|
|
2218
2473
|
# You must supply administrator authentication credentials to use this API.
|
|
2219
2474
|
# This API requires the Auth Role to be enabled.
|
|
2475
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2220
2476
|
#
|
|
2221
2477
|
# @param [String] target_id The live connection GUID
|
|
2222
2478
|
# @param [String] destination The Storage Vault ID
|
|
@@ -2244,6 +2500,7 @@ module Comet
|
|
|
2244
2500
|
#
|
|
2245
2501
|
# You must supply administrator authentication credentials to use this API.
|
|
2246
2502
|
# This API requires the Auth Role to be enabled.
|
|
2503
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2247
2504
|
#
|
|
2248
2505
|
# @param [String] target_id The live connection GUID
|
|
2249
2506
|
# @param [String] destination The Storage Vault ID
|
|
@@ -2275,8 +2532,9 @@ module Comet
|
|
|
2275
2532
|
#
|
|
2276
2533
|
# You must supply administrator authentication credentials to use this API.
|
|
2277
2534
|
# This API requires the Auth Role to be enabled.
|
|
2535
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2278
2536
|
#
|
|
2279
|
-
# @param [String] target_id The live connection GUID
|
|
2537
|
+
# @param [String] target_id The live connection GUID (>= 17.2.0)
|
|
2280
2538
|
# @param [String] backup_rule The schedule GUID
|
|
2281
2539
|
# @return [Comet::DispatchWithJobIDResponse]
|
|
2282
2540
|
def admin_dispatcher_run_backup(target_id, backup_rule)
|
|
@@ -2302,10 +2560,11 @@ module Comet
|
|
|
2302
2560
|
#
|
|
2303
2561
|
# You must supply administrator authentication credentials to use this API.
|
|
2304
2562
|
# This API requires the Auth Role to be enabled.
|
|
2563
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2305
2564
|
#
|
|
2306
|
-
# @param [String] target_id The live connection GUID
|
|
2307
|
-
# @param [String] source The Protected Item GUID
|
|
2308
|
-
# @param [String] destination The Storage Vault GUID
|
|
2565
|
+
# @param [String] target_id The live connection GUID (>= 17.2.0)
|
|
2566
|
+
# @param [String] source The Protected Item GUID (>= 17.2.0)
|
|
2567
|
+
# @param [String] destination The Storage Vault GUID (>= 17.2.0)
|
|
2309
2568
|
# @param [Comet::BackupJobAdvancedOptions] options (Optional) Extra job parameters (>= 19.3.6)
|
|
2310
2569
|
# @return [Comet::DispatchWithJobIDResponse]
|
|
2311
2570
|
def admin_dispatcher_run_backup_custom(target_id, source, destination, options = nil)
|
|
@@ -2340,6 +2599,7 @@ module Comet
|
|
|
2340
2599
|
#
|
|
2341
2600
|
# You must supply administrator authentication credentials to use this API.
|
|
2342
2601
|
# This API requires the Auth Role to be enabled.
|
|
2602
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2343
2603
|
#
|
|
2344
2604
|
# @param [String] target_id The live connection GUID
|
|
2345
2605
|
# @param [String] path The local path to restore to
|
|
@@ -2384,10 +2644,11 @@ module Comet
|
|
|
2384
2644
|
# AdminDispatcherRunRestoreCustom
|
|
2385
2645
|
#
|
|
2386
2646
|
# Instruct a live connected device to perform a local restore.
|
|
2387
|
-
# This command is understood by Comet Backup
|
|
2647
|
+
# This command is understood by Comet Backup 19.6.0 and newer.
|
|
2388
2648
|
#
|
|
2389
2649
|
# You must supply administrator authentication credentials to use this API.
|
|
2390
2650
|
# This API requires the Auth Role to be enabled.
|
|
2651
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2391
2652
|
#
|
|
2392
2653
|
# @param [String] target_id The live connection GUID
|
|
2393
2654
|
# @param [String] source The Protected Item ID
|
|
@@ -2395,9 +2656,9 @@ module Comet
|
|
|
2395
2656
|
# @param [Comet::RestoreJobAdvancedOptions] options Restore targets
|
|
2396
2657
|
# @param [String] snapshot (Optional) If present, restore a specific snapshot. Otherwise, restore the latest snapshot for the selected Protected Item + Storage Vault pair
|
|
2397
2658
|
# @param [Array<String>] paths (Optional) If present, restore these paths only. Otherwise, restore all data
|
|
2398
|
-
# @param [Number] known_file_count (Optional) The number of files to restore, if known. Supplying this means we don't need to walk the entire tree just to find the file count and will speed up the restoration process.
|
|
2399
|
-
# @param [Number] known_byte_count (Optional) The total size in bytes of files to restore, if known. Supplying this means we don't need to walk the entire tree just to find the total file size and will speed up the restoration process.
|
|
2400
|
-
# @param [Number] known_dir_count (Optional) The number of directories to restore, if known. Supplying this means we don't need to walk the entire tree just to find the number of directories and will speed up the restoration process.
|
|
2659
|
+
# @param [Number] known_file_count (Optional) The number of files to restore, if known. Supplying this means we don't need to walk the entire tree just to find the file count and will speed up the restoration process. (>= 23.6.0)
|
|
2660
|
+
# @param [Number] known_byte_count (Optional) The total size in bytes of files to restore, if known. Supplying this means we don't need to walk the entire tree just to find the total file size and will speed up the restoration process. (>= 23.6.0)
|
|
2661
|
+
# @param [Number] known_dir_count (Optional) The number of directories to restore, if known. Supplying this means we don't need to walk the entire tree just to find the number of directories and will speed up the restoration process. (>= 23.6.0)
|
|
2401
2662
|
# @return [Comet::DispatchWithJobIDResponse]
|
|
2402
2663
|
def admin_dispatcher_run_restore_custom(target_id, source, destination, options, snapshot = nil, paths = nil, known_file_count = nil, known_byte_count = nil, known_dir_count = nil)
|
|
2403
2664
|
submit_params = {}
|
|
@@ -2453,6 +2714,7 @@ module Comet
|
|
|
2453
2714
|
#
|
|
2454
2715
|
# You must supply administrator authentication credentials to use this API.
|
|
2455
2716
|
# This API requires the Auth Role to be enabled.
|
|
2717
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2456
2718
|
#
|
|
2457
2719
|
# @param [String] target_id The live connection GUID
|
|
2458
2720
|
# @param [String] destination_id The Storage Vault GUID
|
|
@@ -2482,12 +2744,41 @@ module Comet
|
|
|
2482
2744
|
ret
|
|
2483
2745
|
end
|
|
2484
2746
|
|
|
2747
|
+
# AdminDispatcherTestProxmoxConnection
|
|
2748
|
+
#
|
|
2749
|
+
# Test the connection to a Proxmox cluster node over SSH.
|
|
2750
|
+
#
|
|
2751
|
+
# You must supply administrator authentication credentials to use this API.
|
|
2752
|
+
# This API requires the Auth Role to be enabled.
|
|
2753
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2754
|
+
#
|
|
2755
|
+
# @param [String] target_id The live connection GUID
|
|
2756
|
+
# @param [Comet::SSHConnection] credentials The SSH connection settings
|
|
2757
|
+
# @return [Comet::CometAPIResponseMessage]
|
|
2758
|
+
def admin_dispatcher_test_proxmox_connection(target_id, credentials)
|
|
2759
|
+
submit_params = {}
|
|
2760
|
+
raise TypeError, "'target_id' expected String, got #{target_id.class}" unless target_id.is_a? String
|
|
2761
|
+
|
|
2762
|
+
submit_params['TargetID'] = target_id
|
|
2763
|
+
raise TypeError, "'credentials' expected Comet::SSHConnection, got #{credentials.class}" unless credentials.is_a? Comet::SSHConnection
|
|
2764
|
+
|
|
2765
|
+
submit_params['Credentials'] = credentials.to_json
|
|
2766
|
+
|
|
2767
|
+
body = perform_request('api/v1/admin/dispatcher/test-proxmox-connection', submit_params)
|
|
2768
|
+
json_body = JSON.parse body
|
|
2769
|
+
check_status json_body
|
|
2770
|
+
ret = Comet::CometAPIResponseMessage.new
|
|
2771
|
+
ret.from_hash(json_body)
|
|
2772
|
+
ret
|
|
2773
|
+
end
|
|
2774
|
+
|
|
2485
2775
|
# AdminDispatcherTestSmbAuth
|
|
2486
2776
|
#
|
|
2487
2777
|
# Test a set of Windows SMB credentials.
|
|
2488
2778
|
#
|
|
2489
2779
|
# You must supply administrator authentication credentials to use this API.
|
|
2490
2780
|
# This API requires the Auth Role to be enabled.
|
|
2781
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2491
2782
|
#
|
|
2492
2783
|
# @param [String] target_id The live connection GUID
|
|
2493
2784
|
# @param [Comet::WinSMBAuth] wsa The target credentials to test
|
|
@@ -2515,6 +2806,7 @@ module Comet
|
|
|
2515
2806
|
#
|
|
2516
2807
|
# You must supply administrator authentication credentials to use this API.
|
|
2517
2808
|
# This API requires the Auth Role to be enabled.
|
|
2809
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2518
2810
|
#
|
|
2519
2811
|
# @param [String] target_id The live connection GUID
|
|
2520
2812
|
# @param [Boolean] remove_config_file Determine if the config.dat file will be deleted at the same time
|
|
@@ -2542,10 +2834,11 @@ module Comet
|
|
|
2542
2834
|
#
|
|
2543
2835
|
# You must supply administrator authentication credentials to use this API.
|
|
2544
2836
|
# This API requires the Auth Role to be enabled.
|
|
2837
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2545
2838
|
#
|
|
2546
2839
|
# @param [String] target_id The live connection GUID
|
|
2547
2840
|
# @param [String] destination The Storage Vault GUID
|
|
2548
|
-
# @param [Boolean] allow_unsafe (Optional) Allow legacy Storage Vault unlocking, which is unsafe in some cases.
|
|
2841
|
+
# @param [Boolean] allow_unsafe (Optional) Allow legacy Storage Vault unlocking, which is unsafe in some cases. (>= 25.3.0)
|
|
2549
2842
|
# @return [Comet::CometAPIResponseMessage]
|
|
2550
2843
|
def admin_dispatcher_unlock(target_id, destination, allow_unsafe = nil)
|
|
2551
2844
|
submit_params = {}
|
|
@@ -2570,9 +2863,11 @@ module Comet
|
|
|
2570
2863
|
# AdminDispatcherUpdateLoginPassword
|
|
2571
2864
|
#
|
|
2572
2865
|
# Instruct a live connected device to update its login password.
|
|
2866
|
+
# This does not change the user profile password, it only tells the device to use an updated password.
|
|
2573
2867
|
#
|
|
2574
2868
|
# You must supply administrator authentication credentials to use this API.
|
|
2575
2869
|
# This API requires the Auth Role to be enabled.
|
|
2870
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2576
2871
|
#
|
|
2577
2872
|
# @param [String] target_id The live connection GUID
|
|
2578
2873
|
# @param [String] new_password The new password of this user
|
|
@@ -2601,10 +2896,11 @@ module Comet
|
|
|
2601
2896
|
#
|
|
2602
2897
|
# You must supply administrator authentication credentials to use this API.
|
|
2603
2898
|
# This API requires the Auth Role to be enabled.
|
|
2899
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2604
2900
|
#
|
|
2605
2901
|
# @param [String] target_id The live connection GUID
|
|
2606
2902
|
# @param [String] new_url The new external URL of this server
|
|
2607
|
-
# @param [Boolean] force (Optional) No checks will be done using previous URL
|
|
2903
|
+
# @param [Boolean] force (Optional) No checks will be done using previous URL (>= 22.9.3)
|
|
2608
2904
|
# @return [Comet::CometAPIResponseMessage]
|
|
2609
2905
|
def admin_dispatcher_update_login_url(target_id, new_url, force = nil)
|
|
2610
2906
|
submit_params = {}
|
|
@@ -2629,15 +2925,18 @@ module Comet
|
|
|
2629
2925
|
# AdminDispatcherUpdateSoftware
|
|
2630
2926
|
#
|
|
2631
2927
|
# Instruct a live connected device to download a software update.
|
|
2928
|
+
# By default the request is queued for delivery and this API returns immediately, without waiting for the device. If WaitForConfirmation is true and the device supports confirming update requests, this API instead waits up to ten seconds for the device to confirm that it has accepted the request, and reports the device's response. A device that does not support it is sent the request without waiting, as if WaitForConfirmation were false.
|
|
2632
2929
|
#
|
|
2633
2930
|
# You must supply administrator authentication credentials to use this API.
|
|
2634
2931
|
# This API requires the Auth Role to be enabled.
|
|
2635
2932
|
# This API requires the Software Build Role to be enabled.
|
|
2933
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2636
2934
|
#
|
|
2637
|
-
# @param [String] target_id The live connection GUID
|
|
2935
|
+
# @param [String] target_id The live connection GUID (>= 17.2.0)
|
|
2638
2936
|
# @param [String] self_address (Optional) The external URL of this server, used to resolve conflicts (>= 19.3.11)
|
|
2937
|
+
# @param [Boolean] wait_for_confirmation (Optional) If true, wait for the device to confirm that it accepted the request (>= 26.11.2)
|
|
2639
2938
|
# @return [Comet::CometAPIResponseMessage]
|
|
2640
|
-
def admin_dispatcher_update_software(target_id, self_address = nil)
|
|
2939
|
+
def admin_dispatcher_update_software(target_id, self_address = nil, wait_for_confirmation = nil)
|
|
2641
2940
|
submit_params = {}
|
|
2642
2941
|
raise TypeError, "'target_id' expected String, got #{target_id.class}" unless target_id.is_a? String
|
|
2643
2942
|
|
|
@@ -2649,6 +2948,9 @@ module Comet
|
|
|
2649
2948
|
|
|
2650
2949
|
submit_params['SelfAddress'] = self_address
|
|
2651
2950
|
end
|
|
2951
|
+
unless wait_for_confirmation.nil?
|
|
2952
|
+
submit_params['WaitForConfirmation'] = (wait_for_confirmation ? 1 : 0)
|
|
2953
|
+
end
|
|
2652
2954
|
|
|
2653
2955
|
body = perform_request('api/v1/admin/dispatcher/update-software', submit_params)
|
|
2654
2956
|
json_body = JSON.parse body
|
|
@@ -2663,6 +2965,7 @@ module Comet
|
|
|
2663
2965
|
# Delete an external admin authentication source.
|
|
2664
2966
|
#
|
|
2665
2967
|
# You must supply administrator authentication credentials to use this API.
|
|
2968
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2666
2969
|
#
|
|
2667
2970
|
# @param [String] source_id (No description available)
|
|
2668
2971
|
# @return [Comet::CometAPIResponseMessage]
|
|
@@ -2685,6 +2988,7 @@ module Comet
|
|
|
2685
2988
|
# Get a map of all external admin authentication sources.
|
|
2686
2989
|
#
|
|
2687
2990
|
# You must supply administrator authentication credentials to use this API.
|
|
2991
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2688
2992
|
#
|
|
2689
2993
|
# @return [Hash{String => Comet::ExternalAuthenticationSource}]
|
|
2690
2994
|
def admin_external_auth_sources_get
|
|
@@ -2708,6 +3012,7 @@ module Comet
|
|
|
2708
3012
|
# Create an external admin authentication source.
|
|
2709
3013
|
#
|
|
2710
3014
|
# You must supply administrator authentication credentials to use this API.
|
|
3015
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2711
3016
|
#
|
|
2712
3017
|
# @param [Comet::ExternalAuthenticationSource] source (No description available)
|
|
2713
3018
|
# @param [String] source_id (Optional) (No description available)
|
|
@@ -2737,6 +3042,7 @@ module Comet
|
|
|
2737
3042
|
# sources for the tenant; none will be preserved.
|
|
2738
3043
|
#
|
|
2739
3044
|
# You must supply administrator authentication credentials to use this API.
|
|
3045
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2740
3046
|
#
|
|
2741
3047
|
# @param [Hash{String => Comet::ExternalAuthenticationSource}] sources (No description available)
|
|
2742
3048
|
# @return [Comet::CometAPIResponseMessage]
|
|
@@ -2760,8 +3066,9 @@ module Comet
|
|
|
2760
3066
|
#
|
|
2761
3067
|
# You must supply administrator authentication credentials to use this API.
|
|
2762
3068
|
# This API requires the Auth Role to be enabled.
|
|
3069
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2763
3070
|
#
|
|
2764
|
-
# @param [String] job_id Selected job ID
|
|
3071
|
+
# @param [String] job_id Selected job ID (>= 17.2.0)
|
|
2765
3072
|
# @return [String]
|
|
2766
3073
|
def admin_get_job_log(job_id)
|
|
2767
3074
|
submit_params = {}
|
|
@@ -2778,10 +3085,11 @@ module Comet
|
|
|
2778
3085
|
#
|
|
2779
3086
|
# You must supply administrator authentication credentials to use this API.
|
|
2780
3087
|
# This API requires the Auth Role to be enabled.
|
|
3088
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2781
3089
|
#
|
|
2782
3090
|
# @param [String] job_id Selected job ID
|
|
2783
|
-
# @param [String] min_severity (Optional) Return only job log entries with equal or higher severity
|
|
2784
|
-
# @param [String] message_contains (Optional) Return only job log entries that contain exact string
|
|
3091
|
+
# @param [String] min_severity (Optional) Return only job log entries with equal or higher severity (>= 23.3.1)
|
|
3092
|
+
# @param [String] message_contains (Optional) Return only job log entries that contain exact string (>= 23.3.1)
|
|
2785
3093
|
# @return [Array<Comet::JobEntry>]
|
|
2786
3094
|
def admin_get_job_log_entries(job_id, min_severity = nil, message_contains = nil)
|
|
2787
3095
|
submit_params = {}
|
|
@@ -2820,8 +3128,9 @@ module Comet
|
|
|
2820
3128
|
#
|
|
2821
3129
|
# You must supply administrator authentication credentials to use this API.
|
|
2822
3130
|
# This API requires the Auth Role to be enabled.
|
|
3131
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2823
3132
|
#
|
|
2824
|
-
# @param [String] job_id Selected job ID
|
|
3133
|
+
# @param [String] job_id Selected job ID (>= 17.2.0)
|
|
2825
3134
|
# @return [Comet::BackupJobDetail]
|
|
2826
3135
|
def admin_get_job_properties(job_id)
|
|
2827
3136
|
submit_params = {}
|
|
@@ -2844,6 +3153,7 @@ module Comet
|
|
|
2844
3153
|
#
|
|
2845
3154
|
# You must supply administrator authentication credentials to use this API.
|
|
2846
3155
|
# This API requires the Auth Role to be enabled.
|
|
3156
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2847
3157
|
#
|
|
2848
3158
|
# @return [Array<Comet::BackupJobDetail>]
|
|
2849
3159
|
def admin_get_jobs_all
|
|
@@ -2869,6 +3179,7 @@ module Comet
|
|
|
2869
3179
|
#
|
|
2870
3180
|
# You must supply administrator authentication credentials to use this API.
|
|
2871
3181
|
# This API requires the Auth Role to be enabled.
|
|
3182
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2872
3183
|
#
|
|
2873
3184
|
# @param [Comet::SearchClause] query (No description available)
|
|
2874
3185
|
# @return [Array<Comet::BackupJobDetail>]
|
|
@@ -2908,6 +3219,7 @@ module Comet
|
|
|
2908
3219
|
#
|
|
2909
3220
|
# You must supply administrator authentication credentials to use this API.
|
|
2910
3221
|
# This API requires the Auth Role to be enabled.
|
|
3222
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2911
3223
|
#
|
|
2912
3224
|
# @param [Number] start_value Timestamp (Unix)
|
|
2913
3225
|
# @param [Number] end_value Timestamp (Unix)
|
|
@@ -2943,8 +3255,9 @@ module Comet
|
|
|
2943
3255
|
#
|
|
2944
3256
|
# You must supply administrator authentication credentials to use this API.
|
|
2945
3257
|
# This API requires the Auth Role to be enabled.
|
|
3258
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2946
3259
|
#
|
|
2947
|
-
# @param [String] target_user Selected username
|
|
3260
|
+
# @param [String] target_user Selected username (>= 17.2.0)
|
|
2948
3261
|
# @return [Array<Comet::BackupJobDetail>]
|
|
2949
3262
|
def admin_get_jobs_for_user(target_user)
|
|
2950
3263
|
submit_params = {}
|
|
@@ -2974,6 +3287,7 @@ module Comet
|
|
|
2974
3287
|
#
|
|
2975
3288
|
# You must supply administrator authentication credentials to use this API.
|
|
2976
3289
|
# This API requires the Auth Role to be enabled.
|
|
3290
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
2977
3291
|
#
|
|
2978
3292
|
# @return [Array<Comet::BackupJobDetail>]
|
|
2979
3293
|
def admin_get_jobs_recent
|
|
@@ -2998,6 +3312,7 @@ module Comet
|
|
|
2998
3312
|
#
|
|
2999
3313
|
# You must supply administrator authentication credentials to use this API.
|
|
3000
3314
|
# This API requires the Auth Role to be enabled.
|
|
3315
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3001
3316
|
#
|
|
3002
3317
|
# @param [String] target_user Selected account username
|
|
3003
3318
|
# @param [String] source_id Selected Protected Item GUID
|
|
@@ -3025,8 +3340,9 @@ module Comet
|
|
|
3025
3340
|
#
|
|
3026
3341
|
# You must supply administrator authentication credentials to use this API.
|
|
3027
3342
|
# This API requires the Auth Role to be enabled.
|
|
3343
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3028
3344
|
#
|
|
3029
|
-
# @param [String] target_user Selected account username
|
|
3345
|
+
# @param [String] target_user Selected account username (>= 17.2.0)
|
|
3030
3346
|
# @return [Comet::UserProfileConfig]
|
|
3031
3347
|
def admin_get_user_profile(target_user)
|
|
3032
3348
|
submit_params = {}
|
|
@@ -3050,8 +3366,9 @@ module Comet
|
|
|
3050
3366
|
#
|
|
3051
3367
|
# You must supply administrator authentication credentials to use this API.
|
|
3052
3368
|
# This API requires the Auth Role to be enabled.
|
|
3369
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3053
3370
|
#
|
|
3054
|
-
# @param [String] target_user Selected account username
|
|
3371
|
+
# @param [String] target_user Selected account username (>= 17.2.0)
|
|
3055
3372
|
# @return [Comet::GetProfileAndHashResponseMessage]
|
|
3056
3373
|
def admin_get_user_profile_and_hash(target_user)
|
|
3057
3374
|
submit_params = {}
|
|
@@ -3075,8 +3392,9 @@ module Comet
|
|
|
3075
3392
|
#
|
|
3076
3393
|
# You must supply administrator authentication credentials to use this API.
|
|
3077
3394
|
# This API requires the Auth Role to be enabled.
|
|
3395
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3078
3396
|
#
|
|
3079
|
-
# @param [String] target_user Selected account username
|
|
3397
|
+
# @param [String] target_user Selected account username (>= 17.2.0)
|
|
3080
3398
|
# @return [Comet::GetProfileHashResponseMessage]
|
|
3081
3399
|
def admin_get_user_profile_hash(target_user)
|
|
3082
3400
|
submit_params = {}
|
|
@@ -3099,6 +3417,7 @@ module Comet
|
|
|
3099
3417
|
#
|
|
3100
3418
|
# You must supply administrator authentication credentials to use this API.
|
|
3101
3419
|
# This API requires the Auth Role to be enabled.
|
|
3420
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3102
3421
|
#
|
|
3103
3422
|
# @param [String] device_id The live connection Device GUID
|
|
3104
3423
|
# @return [Comet::CometAPIResponseMessage]
|
|
@@ -3122,13 +3441,13 @@ module Comet
|
|
|
3122
3441
|
#
|
|
3123
3442
|
# You must supply administrator authentication credentials to use this API.
|
|
3124
3443
|
# This API requires the Auth Role to be enabled.
|
|
3444
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3125
3445
|
#
|
|
3126
3446
|
# @param [String] device_id The live connection Device GUID
|
|
3127
3447
|
# @param [String] target_user Selected account username
|
|
3128
3448
|
# @param [String] target_password Selected account password
|
|
3129
|
-
# @param [String] target_totpcode (Optional) Selected account TOTP code
|
|
3130
3449
|
# @return [String]
|
|
3131
|
-
def admin_installation_dispatch_register_device(device_id, target_user, target_password
|
|
3450
|
+
def admin_installation_dispatch_register_device(device_id, target_user, target_password)
|
|
3132
3451
|
submit_params = {}
|
|
3133
3452
|
raise TypeError, "'device_id' expected String, got #{device_id.class}" unless device_id.is_a? String
|
|
3134
3453
|
|
|
@@ -3139,11 +3458,6 @@ module Comet
|
|
|
3139
3458
|
raise TypeError, "'target_password' expected String, got #{target_password.class}" unless target_password.is_a? String
|
|
3140
3459
|
|
|
3141
3460
|
submit_params['TargetPassword'] = target_password
|
|
3142
|
-
unless target_totpcode.nil?
|
|
3143
|
-
raise TypeError, "'target_totpcode' expected String, got #{target_totpcode.class}" unless target_totpcode.is_a? String
|
|
3144
|
-
|
|
3145
|
-
submit_params['TargetTOTPCode'] = target_totpcode
|
|
3146
|
-
end
|
|
3147
3461
|
|
|
3148
3462
|
body = perform_request('api/v1/admin/installation/dispatch/register-device', submit_params)
|
|
3149
3463
|
json_body = JSON.parse body
|
|
@@ -3160,6 +3474,7 @@ module Comet
|
|
|
3160
3474
|
#
|
|
3161
3475
|
# You must supply administrator authentication credentials to use this API.
|
|
3162
3476
|
# This API requires the Auth Role to be enabled.
|
|
3477
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3163
3478
|
#
|
|
3164
3479
|
# @return [Hash{String => Comet::RegistrationLobbyConnection}]
|
|
3165
3480
|
def admin_installation_list_active
|
|
@@ -3186,6 +3501,7 @@ module Comet
|
|
|
3186
3501
|
#
|
|
3187
3502
|
# You must supply administrator authentication credentials to use this API.
|
|
3188
3503
|
# This API requires the Auth Role to be enabled.
|
|
3504
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3189
3505
|
#
|
|
3190
3506
|
# @param [String] target_user Username
|
|
3191
3507
|
# @param [String] job_id Job ID
|
|
@@ -3216,6 +3532,7 @@ module Comet
|
|
|
3216
3532
|
#
|
|
3217
3533
|
# You must supply administrator authentication credentials to use this API.
|
|
3218
3534
|
# This API requires the Auth Role to be enabled.
|
|
3535
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3219
3536
|
#
|
|
3220
3537
|
# @param [String] target_user Username
|
|
3221
3538
|
# @param [String] job_id Job ID
|
|
@@ -3243,6 +3560,7 @@ module Comet
|
|
|
3243
3560
|
#
|
|
3244
3561
|
# You must supply administrator authentication credentials to use this API.
|
|
3245
3562
|
# This API requires the Auth Role to be enabled.
|
|
3563
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3246
3564
|
#
|
|
3247
3565
|
# @return [Array<String>]
|
|
3248
3566
|
def admin_list_users
|
|
@@ -3268,6 +3586,7 @@ module Comet
|
|
|
3268
3586
|
#
|
|
3269
3587
|
# You must supply administrator authentication credentials to use this API.
|
|
3270
3588
|
# This API requires the Auth Role to be enabled.
|
|
3589
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3271
3590
|
#
|
|
3272
3591
|
# @return [Hash{String => Comet::UserProfileConfig}]
|
|
3273
3592
|
def admin_list_users_full
|
|
@@ -3292,6 +3611,7 @@ module Comet
|
|
|
3292
3611
|
#
|
|
3293
3612
|
# You must supply administrator authentication credentials to use this API.
|
|
3294
3613
|
# Access to this API may be prevented on a per-administrator basis.
|
|
3614
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3295
3615
|
#
|
|
3296
3616
|
# @return [Comet::ServerConfigOptionsBrandingFragment]
|
|
3297
3617
|
def admin_meta_branding_config_get
|
|
@@ -3310,6 +3630,7 @@ module Comet
|
|
|
3310
3630
|
#
|
|
3311
3631
|
# You must supply administrator authentication credentials to use this API.
|
|
3312
3632
|
# Access to this API may be prevented on a per-administrator basis.
|
|
3633
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3313
3634
|
#
|
|
3314
3635
|
# @param [Comet::BrandingOptions] branding_config Updated configuration content
|
|
3315
3636
|
# @return [Comet::CometAPIResponseMessage]
|
|
@@ -3333,6 +3654,7 @@ module Comet
|
|
|
3333
3654
|
#
|
|
3334
3655
|
# You must supply administrator authentication credentials to use this API.
|
|
3335
3656
|
# Access to this API may be prevented on a per-administrator basis.
|
|
3657
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3336
3658
|
#
|
|
3337
3659
|
# @return [Comet::ServerConfigOptionsSoftwareBuildRoleFragment]
|
|
3338
3660
|
def admin_meta_build_config_get
|
|
@@ -3350,6 +3672,7 @@ module Comet
|
|
|
3350
3672
|
#
|
|
3351
3673
|
# You must supply administrator authentication credentials to use this API.
|
|
3352
3674
|
# Access to this API may be prevented on a per-administrator basis.
|
|
3675
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3353
3676
|
#
|
|
3354
3677
|
# @param [Comet::SoftwareBuildRoleOptions] software_build_role_config Updated configuration content
|
|
3355
3678
|
# @return [Comet::CometAPIResponseMessage]
|
|
@@ -3373,6 +3696,7 @@ module Comet
|
|
|
3373
3696
|
#
|
|
3374
3697
|
# You must supply administrator authentication credentials to use this API.
|
|
3375
3698
|
# This API requires the Constellation Role to be enabled.
|
|
3699
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3376
3700
|
#
|
|
3377
3701
|
# @return [Comet::ConstellationRoleOptions]
|
|
3378
3702
|
def admin_meta_constellation_config_get
|
|
@@ -3390,6 +3714,7 @@ module Comet
|
|
|
3390
3714
|
#
|
|
3391
3715
|
# You must supply administrator authentication credentials to use this API.
|
|
3392
3716
|
# This API requires the Constellation Role to be enabled.
|
|
3717
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3393
3718
|
#
|
|
3394
3719
|
# @param [Comet::ConstellationRoleOptions] constellation_role_options Constellation role options to set
|
|
3395
3720
|
# @return [Comet::CometAPIResponseMessage]
|
|
@@ -3413,6 +3738,7 @@ module Comet
|
|
|
3413
3738
|
#
|
|
3414
3739
|
# You must supply administrator authentication credentials to use this API.
|
|
3415
3740
|
# Access to this API may be prevented on a per-administrator basis.
|
|
3741
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3416
3742
|
#
|
|
3417
3743
|
# @return [Comet::EmailOptions]
|
|
3418
3744
|
def admin_meta_email_options_get
|
|
@@ -3424,12 +3750,46 @@ module Comet
|
|
|
3424
3750
|
ret
|
|
3425
3751
|
end
|
|
3426
3752
|
|
|
3753
|
+
# AdminMetaEmailOptionsOauthCallback
|
|
3754
|
+
#
|
|
3755
|
+
# Exchange an OAuth 2.0 authorization code for an encrypted SMTP refresh token.
|
|
3756
|
+
# The web interface calls this after the mailbox user grants consent. The response is the supplied SMTPOAuth with the refresh token added and secrets encrypted; store it in EmailOptions.SMTPOAuth and save it with the AdminMetaEmailOptionsSet API.
|
|
3757
|
+
#
|
|
3758
|
+
# You must supply administrator authentication credentials to use this API.
|
|
3759
|
+
# Access to this API may be prevented on a per-administrator basis.
|
|
3760
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3761
|
+
#
|
|
3762
|
+
# @param [Comet::SMTPOAuthOptions] smtpoauth The app registration that requested the authorization code. Flow must be SMTP_OAUTH_FLOW_AUTHORIZATION_CODE. The RefreshToken field is ignored. (>= 26.11.0)
|
|
3763
|
+
# @param [String] code The authorization code returned to the redirect URI (>= 26.11.0)
|
|
3764
|
+
# @param [String] redirect_uri The redirect URI used in the authorization request (>= 26.11.0)
|
|
3765
|
+
# @return [Comet::SMTPOAuthOptions]
|
|
3766
|
+
def admin_meta_email_options_oauth_callback(smtpoauth, code, redirect_uri)
|
|
3767
|
+
submit_params = {}
|
|
3768
|
+
raise TypeError, "'smtpoauth' expected Comet::SMTPOAuthOptions, got #{smtpoauth.class}" unless smtpoauth.is_a? Comet::SMTPOAuthOptions
|
|
3769
|
+
|
|
3770
|
+
submit_params['SMTPOAuth'] = smtpoauth.to_json
|
|
3771
|
+
raise TypeError, "'code' expected String, got #{code.class}" unless code.is_a? String
|
|
3772
|
+
|
|
3773
|
+
submit_params['Code'] = code
|
|
3774
|
+
raise TypeError, "'redirect_uri' expected String, got #{redirect_uri.class}" unless redirect_uri.is_a? String
|
|
3775
|
+
|
|
3776
|
+
submit_params['RedirectURI'] = redirect_uri
|
|
3777
|
+
|
|
3778
|
+
body = perform_request('api/v1/admin/meta/email-options/oauth-callback', submit_params)
|
|
3779
|
+
json_body = JSON.parse body
|
|
3780
|
+
check_status json_body
|
|
3781
|
+
ret = Comet::SMTPOAuthOptions.new
|
|
3782
|
+
ret.from_hash(json_body)
|
|
3783
|
+
ret
|
|
3784
|
+
end
|
|
3785
|
+
|
|
3427
3786
|
# AdminMetaEmailOptionsSet
|
|
3428
3787
|
#
|
|
3429
3788
|
# Set the email options.
|
|
3430
3789
|
#
|
|
3431
3790
|
# You must supply administrator authentication credentials to use this API.
|
|
3432
3791
|
# Access to this API may be prevented on a per-administrator basis.
|
|
3792
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3433
3793
|
#
|
|
3434
3794
|
# @param [Comet::EmailOptions] email_options The replacement email reporting options.
|
|
3435
3795
|
# @return [Comet::CometAPIResponseMessage]
|
|
@@ -3453,6 +3813,7 @@ module Comet
|
|
|
3453
3813
|
#
|
|
3454
3814
|
# You must supply administrator authentication credentials to use this API.
|
|
3455
3815
|
# This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
|
|
3816
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3456
3817
|
#
|
|
3457
3818
|
# @return [Array<Number>]
|
|
3458
3819
|
def admin_meta_list_available_log_days
|
|
@@ -3477,6 +3838,7 @@ module Comet
|
|
|
3477
3838
|
# Get the server PSA configuration.
|
|
3478
3839
|
#
|
|
3479
3840
|
# You must supply administrator authentication credentials to use this API.
|
|
3841
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3480
3842
|
#
|
|
3481
3843
|
# @return [Array<Comet::PSAConfig>]
|
|
3482
3844
|
def admin_meta_psa_config_list_get
|
|
@@ -3500,6 +3862,7 @@ module Comet
|
|
|
3500
3862
|
# Update the server PSA configuration.
|
|
3501
3863
|
#
|
|
3502
3864
|
# You must supply administrator authentication credentials to use this API.
|
|
3865
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3503
3866
|
#
|
|
3504
3867
|
# @param [Array<Comet::PSAConfig>] psaconfig_list The replacement PSA configuration list
|
|
3505
3868
|
# @return [Comet::CometAPIResponseMessage]
|
|
@@ -3524,6 +3887,7 @@ module Comet
|
|
|
3524
3887
|
#
|
|
3525
3888
|
# You must supply administrator authentication credentials to use this API.
|
|
3526
3889
|
# This API requires the Auth Role to be enabled.
|
|
3890
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3527
3891
|
#
|
|
3528
3892
|
# @return [Comet::CometAPIResponseMessage]
|
|
3529
3893
|
def admin_meta_psa_config_list_sync_now
|
|
@@ -3535,6 +3899,77 @@ module Comet
|
|
|
3535
3899
|
ret
|
|
3536
3900
|
end
|
|
3537
3901
|
|
|
3902
|
+
# AdminMetaPsaNinjaoneAuthCallback
|
|
3903
|
+
#
|
|
3904
|
+
# Exchange a NinjaOne OAuth authorization code for an encrypted refresh token.
|
|
3905
|
+
# The frontend should store the returned token on the NinjaOneConfig and persist it via the normal PSA config save flow.
|
|
3906
|
+
#
|
|
3907
|
+
# You must supply administrator authentication credentials to use this API.
|
|
3908
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3909
|
+
#
|
|
3910
|
+
# @param [String] code The authorization code from NinjaOne
|
|
3911
|
+
# @param [String] redirect_uri The callback URI used in the authorization request
|
|
3912
|
+
# @param [String] base_url The NinjaOne base URL
|
|
3913
|
+
# @param [String] client_id The OAuth Client ID
|
|
3914
|
+
# @param [String] client_secret The OAuth Client Secret
|
|
3915
|
+
# @return [Comet::NinjaOneAuthCallbackResponse]
|
|
3916
|
+
def admin_meta_psa_ninjaone_auth_callback(code, redirect_uri, base_url, client_id, client_secret)
|
|
3917
|
+
submit_params = {}
|
|
3918
|
+
raise TypeError, "'code' expected String, got #{code.class}" unless code.is_a? String
|
|
3919
|
+
|
|
3920
|
+
submit_params['Code'] = code
|
|
3921
|
+
raise TypeError, "'redirect_uri' expected String, got #{redirect_uri.class}" unless redirect_uri.is_a? String
|
|
3922
|
+
|
|
3923
|
+
submit_params['RedirectURI'] = redirect_uri
|
|
3924
|
+
raise TypeError, "'base_url' expected String, got #{base_url.class}" unless base_url.is_a? String
|
|
3925
|
+
|
|
3926
|
+
submit_params['BaseURL'] = base_url
|
|
3927
|
+
raise TypeError, "'client_id' expected String, got #{client_id.class}" unless client_id.is_a? String
|
|
3928
|
+
|
|
3929
|
+
submit_params['ClientID'] = client_id
|
|
3930
|
+
raise TypeError, "'client_secret' expected String, got #{client_secret.class}" unless client_secret.is_a? String
|
|
3931
|
+
|
|
3932
|
+
submit_params['ClientSecret'] = client_secret
|
|
3933
|
+
|
|
3934
|
+
body = perform_request('api/v1/admin/meta/psa/ninjaone/auth-callback', submit_params)
|
|
3935
|
+
json_body = JSON.parse body
|
|
3936
|
+
check_status json_body
|
|
3937
|
+
ret = Comet::NinjaOneAuthCallbackResponse.new
|
|
3938
|
+
ret.from_hash(json_body)
|
|
3939
|
+
ret
|
|
3940
|
+
end
|
|
3941
|
+
|
|
3942
|
+
# AdminMetaPsaNinjaoneOrganizations
|
|
3943
|
+
#
|
|
3944
|
+
# List NinjaOne organizations for a given PSA configuration.
|
|
3945
|
+
# Used to populate the NinjaOne Client ID dropdown in the admin UI.
|
|
3946
|
+
#
|
|
3947
|
+
# You must supply administrator authentication credentials to use this API.
|
|
3948
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3949
|
+
#
|
|
3950
|
+
# @param [Comet::PSAConfig] psaconfig The PSA configuration containing NinjaOne credentials
|
|
3951
|
+
# @return [Array<Comet::NinjaOneOrganization>]
|
|
3952
|
+
def admin_meta_psa_ninjaone_organizations(psaconfig)
|
|
3953
|
+
submit_params = {}
|
|
3954
|
+
raise TypeError, "'psaconfig' expected Comet::PSAConfig, got #{psaconfig.class}" unless psaconfig.is_a? Comet::PSAConfig
|
|
3955
|
+
|
|
3956
|
+
submit_params['PSAConfig'] = psaconfig.to_json
|
|
3957
|
+
|
|
3958
|
+
body = perform_request('api/v1/admin/meta/psa/ninjaone/organizations', submit_params)
|
|
3959
|
+
json_body = JSON.parse body
|
|
3960
|
+
check_status json_body
|
|
3961
|
+
if json_body.nil?
|
|
3962
|
+
ret = []
|
|
3963
|
+
else
|
|
3964
|
+
ret = Array.new(json_body.length)
|
|
3965
|
+
json_body.each_with_index do |v, i|
|
|
3966
|
+
ret[i] = Comet::NinjaOneOrganization.new
|
|
3967
|
+
ret[i].from_hash(v)
|
|
3968
|
+
end
|
|
3969
|
+
end
|
|
3970
|
+
ret
|
|
3971
|
+
end
|
|
3972
|
+
|
|
3538
3973
|
# AdminMetaReadAllLogs
|
|
3539
3974
|
#
|
|
3540
3975
|
# Get a ZIP file of all of the server's log files.
|
|
@@ -3543,6 +3978,7 @@ module Comet
|
|
|
3543
3978
|
#
|
|
3544
3979
|
# You must supply administrator authentication credentials to use this API.
|
|
3545
3980
|
# This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
|
|
3981
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3546
3982
|
#
|
|
3547
3983
|
# @return [String]
|
|
3548
3984
|
def admin_meta_read_all_logs
|
|
@@ -3557,8 +3993,9 @@ module Comet
|
|
|
3557
3993
|
#
|
|
3558
3994
|
# You must supply administrator authentication credentials to use this API.
|
|
3559
3995
|
# This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
|
|
3996
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3560
3997
|
#
|
|
3561
|
-
# @param [Number] log A log day, selected from the options returned by the Get Log Files API
|
|
3998
|
+
# @param [Number] log A log day, selected from the options returned by the Get Log Files API (>= 17.2.0)
|
|
3562
3999
|
# @return [String]
|
|
3563
4000
|
def admin_meta_read_logs(log)
|
|
3564
4001
|
submit_params = {}
|
|
@@ -3577,6 +4014,7 @@ module Comet
|
|
|
3577
4014
|
#
|
|
3578
4015
|
# You must supply administrator authentication credentials to use this API.
|
|
3579
4016
|
# This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
|
|
4017
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3580
4018
|
#
|
|
3581
4019
|
# @param [Array<Number>] logs An array of log days, selected from the options returned by the Get Log Files API
|
|
3582
4020
|
# @return [String]
|
|
@@ -3595,6 +4033,7 @@ module Comet
|
|
|
3595
4033
|
#
|
|
3596
4034
|
# You must supply administrator authentication credentials to use this API.
|
|
3597
4035
|
# Access to this API may be prevented on a per-administrator basis.
|
|
4036
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3598
4037
|
#
|
|
3599
4038
|
# @return [Array<Comet::RemoteStorageOption>]
|
|
3600
4039
|
def admin_meta_remote_storage_vault_get
|
|
@@ -3619,9 +4058,10 @@ module Comet
|
|
|
3619
4058
|
#
|
|
3620
4059
|
# You must supply administrator authentication credentials to use this API.
|
|
3621
4060
|
# Access to this API may be prevented on a per-administrator basis.
|
|
4061
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3622
4062
|
#
|
|
3623
4063
|
# @param [Array<Comet::RemoteStorageOption>] remote_storage_options Updated configuration content
|
|
3624
|
-
# @param [String] replacement_auto_vault_id (Optional) Replacement Storage Template ID for auto Storage Vault configurations that use deleted Storage Templates
|
|
4064
|
+
# @param [String] replacement_auto_vault_id (Optional) Replacement Storage Template ID for auto Storage Vault configurations that use deleted Storage Templates (>= 24.12.0)
|
|
3625
4065
|
# @return [Comet::CometAPIResponseMessage]
|
|
3626
4066
|
def admin_meta_remote_storage_vault_set(remote_storage_options, replacement_auto_vault_id = nil)
|
|
3627
4067
|
submit_params = {}
|
|
@@ -3648,6 +4088,7 @@ module Comet
|
|
|
3648
4088
|
#
|
|
3649
4089
|
# You must supply administrator authentication credentials to use this API.
|
|
3650
4090
|
# Access to this API may be prevented on a per-administrator basis.
|
|
4091
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3651
4092
|
#
|
|
3652
4093
|
# @param [Comet::RemoteStorageOption] template_options Storage Template Vault Options
|
|
3653
4094
|
# @return [Comet::CometAPIResponseMessage]
|
|
@@ -3671,6 +4112,7 @@ module Comet
|
|
|
3671
4112
|
# Resources are used to upload files within the server configuration.
|
|
3672
4113
|
#
|
|
3673
4114
|
# You must supply administrator authentication credentials to use this API.
|
|
4115
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3674
4116
|
#
|
|
3675
4117
|
# @param [String] hash The resource identifier
|
|
3676
4118
|
# @return [String]
|
|
@@ -3691,8 +4133,9 @@ module Comet
|
|
|
3691
4133
|
# The lifespan of an uploaded resource is undefined. Resources may be deleted automatically, but it should remain available until the next call to AdminMetaServerConfigSet, and will remain available for as long as it is referenced by the server configuration.
|
|
3692
4134
|
#
|
|
3693
4135
|
# You must supply administrator authentication credentials to use this API.
|
|
4136
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3694
4137
|
#
|
|
3695
|
-
# @param [String] upload The uploaded file contents, as a multipart/form-data part.
|
|
4138
|
+
# @param [String] upload The uploaded file contents, as a multipart/form-data part. (>= 20.11.0)
|
|
3696
4139
|
# @return [Comet::AdminResourceResponse]
|
|
3697
4140
|
def admin_meta_resource_new(upload)
|
|
3698
4141
|
submit_params = {}
|
|
@@ -3718,6 +4161,7 @@ module Comet
|
|
|
3718
4161
|
# You must supply administrator authentication credentials to use this API.
|
|
3719
4162
|
# This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
|
|
3720
4163
|
# Access to this API may be prevented on a per-administrator basis.
|
|
4164
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3721
4165
|
#
|
|
3722
4166
|
# @return [Comet::CometAPIResponseMessage]
|
|
3723
4167
|
def admin_meta_restart_service
|
|
@@ -3736,6 +4180,7 @@ module Comet
|
|
|
3736
4180
|
#
|
|
3737
4181
|
# You must supply administrator authentication credentials to use this API.
|
|
3738
4182
|
# Access to this API may be prevented on a per-administrator basis.
|
|
4183
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3739
4184
|
#
|
|
3740
4185
|
# @param [Comet::EmailOptions] email_options Updated configuration content
|
|
3741
4186
|
# @param [String] recipient Target email address to send test email
|
|
@@ -3764,6 +4209,7 @@ module Comet
|
|
|
3764
4209
|
#
|
|
3765
4210
|
# You must supply administrator authentication credentials to use this API.
|
|
3766
4211
|
# Access to this API may be prevented on a per-administrator basis.
|
|
4212
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3767
4213
|
#
|
|
3768
4214
|
# @param [Comet::EmailReportingOption] email_reporting_option Test email reporting option for sending
|
|
3769
4215
|
# @param [String] target_organization (Optional) If present, Testing email with a target organization. Only allowed for top-level admins. (>= 24.3.0)
|
|
@@ -3793,6 +4239,7 @@ module Comet
|
|
|
3793
4239
|
#
|
|
3794
4240
|
# You must supply administrator authentication credentials to use this API.
|
|
3795
4241
|
# Access to this API may be prevented on a per-administrator basis.
|
|
4242
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3796
4243
|
# This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
|
|
3797
4244
|
#
|
|
3798
4245
|
# @return [Comet::ServerConfigOptions]
|
|
@@ -3805,6 +4252,48 @@ module Comet
|
|
|
3805
4252
|
ret
|
|
3806
4253
|
end
|
|
3807
4254
|
|
|
4255
|
+
# AdminMetaServerConfigGetAndHash
|
|
4256
|
+
#
|
|
4257
|
+
# Get server configuration (atomic).
|
|
4258
|
+
# The resulting hash parameter can be passed to the AdminMetaServerConfigSet API, to atomically ensure that no changes occur between get/set operations.
|
|
4259
|
+
# The hash format is not publicly documented and may change in a future server version. Use server APIs to retrieve current hash values.
|
|
4260
|
+
#
|
|
4261
|
+
# You must supply administrator authentication credentials to use this API.
|
|
4262
|
+
# Access to this API may be prevented on a per-administrator basis.
|
|
4263
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4264
|
+
# This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
|
|
4265
|
+
#
|
|
4266
|
+
# @return [Comet::ServerConfigOptionsAndHashResponse]
|
|
4267
|
+
def admin_meta_server_config_get_and_hash
|
|
4268
|
+
body = perform_request('api/v1/admin/meta/server-config/get-and-hash')
|
|
4269
|
+
json_body = JSON.parse body
|
|
4270
|
+
check_status json_body
|
|
4271
|
+
ret = Comet::ServerConfigOptionsAndHashResponse.new
|
|
4272
|
+
ret.from_hash(json_body)
|
|
4273
|
+
ret
|
|
4274
|
+
end
|
|
4275
|
+
|
|
4276
|
+
# AdminMetaServerConfigGetHash
|
|
4277
|
+
#
|
|
4278
|
+
# Get server configuration (hash).
|
|
4279
|
+
# The hash can be used to determine if the server configuration has changed.
|
|
4280
|
+
# The hash format is not publicly documented and may change in a future server version. Use server APIs to retrieve current hash values.
|
|
4281
|
+
#
|
|
4282
|
+
# You must supply administrator authentication credentials to use this API.
|
|
4283
|
+
# Access to this API may be prevented on a per-administrator basis.
|
|
4284
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4285
|
+
# This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
|
|
4286
|
+
#
|
|
4287
|
+
# @return [Comet::ServerConfigOptionsHashResponse]
|
|
4288
|
+
def admin_meta_server_config_get_hash
|
|
4289
|
+
body = perform_request('api/v1/admin/meta/server-config/get-hash')
|
|
4290
|
+
json_body = JSON.parse body
|
|
4291
|
+
check_status json_body
|
|
4292
|
+
ret = Comet::ServerConfigOptionsHashResponse.new
|
|
4293
|
+
ret.from_hash(json_body)
|
|
4294
|
+
ret
|
|
4295
|
+
end
|
|
4296
|
+
|
|
3808
4297
|
# AdminMetaServerConfigNetworkInterfaces
|
|
3809
4298
|
#
|
|
3810
4299
|
# List the available network interfaces on the PC running Comet Server.
|
|
@@ -3812,6 +4301,7 @@ module Comet
|
|
|
3812
4301
|
#
|
|
3813
4302
|
# You must supply administrator authentication credentials to use this API.
|
|
3814
4303
|
# Access to this API may be prevented on a per-administrator basis.
|
|
4304
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3815
4305
|
# This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
|
|
3816
4306
|
#
|
|
3817
4307
|
# @return [Array<String>]
|
|
@@ -3841,15 +4331,22 @@ module Comet
|
|
|
3841
4331
|
#
|
|
3842
4332
|
# You must supply administrator authentication credentials to use this API.
|
|
3843
4333
|
# Access to this API may be prevented on a per-administrator basis.
|
|
4334
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3844
4335
|
# This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
|
|
3845
4336
|
#
|
|
3846
|
-
# @param [Comet::ServerConfigOptions] config Updated configuration content
|
|
4337
|
+
# @param [Comet::ServerConfigOptions] config Updated configuration content (>= 17.3.8)
|
|
4338
|
+
# @param [String] require_hash (Optional) If present, the change is only applied if the server configuration is unchanged since this hash was retrieved from the AdminMetaServerConfigGetAndHash API. Otherwise, the change is rejected with status 409 and the server does not restart. (>= 26.11.0)
|
|
3847
4339
|
# @return [Comet::CometAPIResponseMessage]
|
|
3848
|
-
def admin_meta_server_config_set(config)
|
|
4340
|
+
def admin_meta_server_config_set(config, require_hash = nil)
|
|
3849
4341
|
submit_params = {}
|
|
3850
4342
|
raise TypeError, "'config' expected Comet::ServerConfigOptions, got #{config.class}" unless config.is_a? Comet::ServerConfigOptions
|
|
3851
4343
|
|
|
3852
4344
|
submit_params['Config'] = config.to_json
|
|
4345
|
+
unless require_hash.nil?
|
|
4346
|
+
raise TypeError, "'require_hash' expected String, got #{require_hash.class}" unless require_hash.is_a? String
|
|
4347
|
+
|
|
4348
|
+
submit_params['RequireHash'] = require_hash
|
|
4349
|
+
end
|
|
3853
4350
|
|
|
3854
4351
|
body = perform_request('api/v1/admin/meta/server-config/set', submit_params)
|
|
3855
4352
|
json_body = JSON.parse body
|
|
@@ -3869,6 +4366,7 @@ module Comet
|
|
|
3869
4366
|
# You must supply administrator authentication credentials to use this API.
|
|
3870
4367
|
# This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
|
|
3871
4368
|
# Access to this API may be prevented on a per-administrator basis.
|
|
4369
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3872
4370
|
#
|
|
3873
4371
|
# @return [Comet::CometAPIResponseMessage]
|
|
3874
4372
|
def admin_meta_shutdown_service
|
|
@@ -3885,6 +4383,7 @@ module Comet
|
|
|
3885
4383
|
# Get software update news from the software provider.
|
|
3886
4384
|
#
|
|
3887
4385
|
# You must supply administrator authentication credentials to use this API.
|
|
4386
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3888
4387
|
#
|
|
3889
4388
|
# @return [Comet::SoftwareUpdateNewsResponse]
|
|
3890
4389
|
def admin_meta_software_update_news
|
|
@@ -3902,8 +4401,9 @@ module Comet
|
|
|
3902
4401
|
# The returned key-value map is not necessarily ordered. Client-side code should sort the result before display.
|
|
3903
4402
|
#
|
|
3904
4403
|
# You must supply administrator authentication credentials to use this API.
|
|
4404
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3905
4405
|
#
|
|
3906
|
-
# @param [Boolean] simple Remove redundant statistics
|
|
4406
|
+
# @param [Boolean] simple Remove redundant statistics (>= 18.9.1)
|
|
3907
4407
|
# @return [Hash{Number => Comet::StatResult}]
|
|
3908
4408
|
def admin_meta_stats(simple)
|
|
3909
4409
|
submit_params = {}
|
|
@@ -3930,6 +4430,7 @@ module Comet
|
|
|
3930
4430
|
# Retrieve the version number and basic properties about the server.
|
|
3931
4431
|
#
|
|
3932
4432
|
# You must supply administrator authentication credentials to use this API.
|
|
4433
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3933
4434
|
#
|
|
3934
4435
|
# @return [Comet::ServerMetaVersionInfo]
|
|
3935
4436
|
def admin_meta_version
|
|
@@ -3947,6 +4448,7 @@ module Comet
|
|
|
3947
4448
|
#
|
|
3948
4449
|
# You must supply administrator authentication credentials to use this API.
|
|
3949
4450
|
# Access to this API may be prevented on a per-administrator basis.
|
|
4451
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3950
4452
|
#
|
|
3951
4453
|
# @return [Hash{String => Comet::WebhookOption}]
|
|
3952
4454
|
def admin_meta_webhook_options_get
|
|
@@ -3972,8 +4474,9 @@ module Comet
|
|
|
3972
4474
|
#
|
|
3973
4475
|
# You must supply administrator authentication credentials to use this API.
|
|
3974
4476
|
# Access to this API may be prevented on a per-administrator basis.
|
|
4477
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3975
4478
|
#
|
|
3976
|
-
# @param [Hash{String => Comet::WebhookOption}] webhook_options The replacement webhook target options.
|
|
4479
|
+
# @param [Hash{String => Comet::WebhookOption}] webhook_options The replacement webhook target options. (>= 20.6.8)
|
|
3977
4480
|
# @return [Comet::CometAPIResponseMessage]
|
|
3978
4481
|
def admin_meta_webhook_options_set(webhook_options)
|
|
3979
4482
|
submit_params = {}
|
|
@@ -3995,6 +4498,7 @@ module Comet
|
|
|
3995
4498
|
#
|
|
3996
4499
|
# You must supply administrator authentication credentials to use this API.
|
|
3997
4500
|
# This API requires the Auth Role to be enabled.
|
|
4501
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
3998
4502
|
#
|
|
3999
4503
|
# @return [Hash{String => Comet::NewsEntry}]
|
|
4000
4504
|
def admin_news_get_all
|
|
@@ -4019,8 +4523,9 @@ module Comet
|
|
|
4019
4523
|
#
|
|
4020
4524
|
# You must supply administrator authentication credentials to use this API.
|
|
4021
4525
|
# This API requires the Auth Role to be enabled.
|
|
4526
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4022
4527
|
#
|
|
4023
|
-
# @param [String] news_item Selected news item GUID
|
|
4528
|
+
# @param [String] news_item Selected news item GUID (>= 17.2.0)
|
|
4024
4529
|
# @return [Comet::CometAPIResponseMessage]
|
|
4025
4530
|
def admin_news_remove(news_item)
|
|
4026
4531
|
submit_params = {}
|
|
@@ -4042,8 +4547,9 @@ module Comet
|
|
|
4042
4547
|
#
|
|
4043
4548
|
# You must supply administrator authentication credentials to use this API.
|
|
4044
4549
|
# This API requires the Auth Role to be enabled.
|
|
4550
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4045
4551
|
#
|
|
4046
|
-
# @param [String] news_content Content of news item
|
|
4552
|
+
# @param [String] news_content Content of news item (>= 17.2.0)
|
|
4047
4553
|
# @return [Comet::CometAPIResponseMessage]
|
|
4048
4554
|
def admin_news_submit(news_content)
|
|
4049
4555
|
submit_params = {}
|
|
@@ -4059,6 +4565,64 @@ module Comet
|
|
|
4059
4565
|
ret
|
|
4060
4566
|
end
|
|
4061
4567
|
|
|
4568
|
+
# AdminOffice365ConvertLegacySelection
|
|
4569
|
+
#
|
|
4570
|
+
# Convert a legacy Office 365 Protected Item selection into an equivalent ordered rule list.
|
|
4571
|
+
# This is a pure computation with no device round-trip. The optional Accounts list is used only to enrich the generated rules' display metadata.
|
|
4572
|
+
#
|
|
4573
|
+
# You must supply administrator authentication credentials to use this API.
|
|
4574
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4575
|
+
#
|
|
4576
|
+
# @param [Comet::Office365CustomSettingV2] selection The legacy selection to convert
|
|
4577
|
+
# @param [Array<Comet::Office365MixedVirtualAccount>] accounts (Optional) The organization's account list, for display-name enrichment
|
|
4578
|
+
# @return [Comet::Office365ConvertSelectionResponse]
|
|
4579
|
+
def admin_office_365convert_legacy_selection(selection, accounts = nil)
|
|
4580
|
+
submit_params = {}
|
|
4581
|
+
raise TypeError, "'selection' expected Comet::Office365CustomSettingV2, got #{selection.class}" unless selection.is_a? Comet::Office365CustomSettingV2
|
|
4582
|
+
|
|
4583
|
+
submit_params['Selection'] = selection.to_json
|
|
4584
|
+
unless accounts.nil?
|
|
4585
|
+
raise TypeError, "'accounts' expected Array, got #{accounts.class}" unless accounts.is_a? Array
|
|
4586
|
+
|
|
4587
|
+
submit_params['Accounts'] = accounts.to_json
|
|
4588
|
+
end
|
|
4589
|
+
|
|
4590
|
+
body = perform_request('api/v1/admin/office365/convert-legacy-selection', submit_params)
|
|
4591
|
+
json_body = JSON.parse body
|
|
4592
|
+
check_status json_body
|
|
4593
|
+
ret = Comet::Office365ConvertSelectionResponse.new
|
|
4594
|
+
ret.from_hash(json_body)
|
|
4595
|
+
ret
|
|
4596
|
+
end
|
|
4597
|
+
|
|
4598
|
+
# AdminOffice365EvaluateSelectionRules
|
|
4599
|
+
#
|
|
4600
|
+
# Evaluate an ordered Office 365 rule list against an organization's accounts.
|
|
4601
|
+
# Returns the effective selection for every account, including per-service rule attribution. This is a pure computation with no device round-trip.
|
|
4602
|
+
#
|
|
4603
|
+
# You must supply administrator authentication credentials to use this API.
|
|
4604
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4605
|
+
#
|
|
4606
|
+
# @param [Array<Comet::Office365SelectionRule>] rules The ordered rule list to evaluate
|
|
4607
|
+
# @param [Array<Comet::Office365MixedVirtualAccount>] accounts The organization's account list
|
|
4608
|
+
# @return [Comet::Office365EvaluateSelectionRulesResponse]
|
|
4609
|
+
def admin_office_365evaluate_selection_rules(rules, accounts)
|
|
4610
|
+
submit_params = {}
|
|
4611
|
+
raise TypeError, "'rules' expected Array, got #{rules.class}" unless rules.is_a? Array
|
|
4612
|
+
|
|
4613
|
+
submit_params['Rules'] = rules.to_json
|
|
4614
|
+
raise TypeError, "'accounts' expected Array, got #{accounts.class}" unless accounts.is_a? Array
|
|
4615
|
+
|
|
4616
|
+
submit_params['Accounts'] = accounts.to_json
|
|
4617
|
+
|
|
4618
|
+
body = perform_request('api/v1/admin/office365/evaluate-selection-rules', submit_params)
|
|
4619
|
+
json_body = JSON.parse body
|
|
4620
|
+
check_status json_body
|
|
4621
|
+
ret = Comet::Office365EvaluateSelectionRulesResponse.new
|
|
4622
|
+
ret.from_hash(json_body)
|
|
4623
|
+
ret
|
|
4624
|
+
end
|
|
4625
|
+
|
|
4062
4626
|
# AdminOrganizationDelete
|
|
4063
4627
|
#
|
|
4064
4628
|
# Delete an organization and all related users.
|
|
@@ -4067,6 +4631,7 @@ module Comet
|
|
|
4067
4631
|
#
|
|
4068
4632
|
# You must supply administrator authentication credentials to use this API.
|
|
4069
4633
|
# This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
|
|
4634
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4070
4635
|
#
|
|
4071
4636
|
# @param [String] organization_id (Optional) (No description available)
|
|
4072
4637
|
# @param [Comet::UninstallConfig] uninstall_config (Optional) Uninstall software configuration
|
|
@@ -4098,6 +4663,7 @@ module Comet
|
|
|
4098
4663
|
#
|
|
4099
4664
|
# You must supply administrator authentication credentials to use this API.
|
|
4100
4665
|
# This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
|
|
4666
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4101
4667
|
#
|
|
4102
4668
|
# @param [Comet::SelfBackupExportOptions] options The export config options
|
|
4103
4669
|
# @return [Comet::CometAPIResponseMessage]
|
|
@@ -4121,6 +4687,7 @@ module Comet
|
|
|
4121
4687
|
#
|
|
4122
4688
|
# You must supply administrator authentication credentials to use this API.
|
|
4123
4689
|
# This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
|
|
4690
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4124
4691
|
#
|
|
4125
4692
|
# @return [Hash{String => Comet::Organization}]
|
|
4126
4693
|
def admin_organization_list
|
|
@@ -4147,6 +4714,7 @@ module Comet
|
|
|
4147
4714
|
#
|
|
4148
4715
|
# You must supply administrator authentication credentials to use this API.
|
|
4149
4716
|
# This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
|
|
4717
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4150
4718
|
#
|
|
4151
4719
|
# @param [String] organization_id (Optional) (No description available)
|
|
4152
4720
|
# @param [Comet::Organization] organization (Optional) (No description available)
|
|
@@ -4178,6 +4746,7 @@ module Comet
|
|
|
4178
4746
|
#
|
|
4179
4747
|
# You must supply administrator authentication credentials to use this API.
|
|
4180
4748
|
# This API requires the Auth Role to be enabled.
|
|
4749
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4181
4750
|
#
|
|
4182
4751
|
# @param [String] policy_id The policy ID to update or create
|
|
4183
4752
|
# @return [Comet::CometAPIResponseMessage]
|
|
@@ -4202,6 +4771,7 @@ module Comet
|
|
|
4202
4771
|
#
|
|
4203
4772
|
# You must supply administrator authentication credentials to use this API.
|
|
4204
4773
|
# This API requires the Auth Role to be enabled.
|
|
4774
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4205
4775
|
#
|
|
4206
4776
|
# @param [String] policy_id The policy ID to retrieve
|
|
4207
4777
|
# @return [Comet::GetGroupPolicyResponse]
|
|
@@ -4226,8 +4796,9 @@ module Comet
|
|
|
4226
4796
|
#
|
|
4227
4797
|
# You must supply administrator authentication credentials to use this API.
|
|
4228
4798
|
# This API requires the Auth Role to be enabled.
|
|
4799
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4229
4800
|
#
|
|
4230
|
-
# @param [String] target_organization (Optional) If present, list the policies belonging to another organization. Only allowed for administrator accounts in the top-level organization. (>= 22.
|
|
4801
|
+
# @param [String] target_organization (Optional) If present, list the policies belonging to another organization. Only allowed for administrator accounts in the top-level organization. (>= 22.5.0)
|
|
4231
4802
|
# @return [Hash{String => String}]
|
|
4232
4803
|
def admin_policies_list(target_organization = nil)
|
|
4233
4804
|
submit_params = {}
|
|
@@ -4260,8 +4831,9 @@ module Comet
|
|
|
4260
4831
|
#
|
|
4261
4832
|
# You must supply administrator authentication credentials to use this API.
|
|
4262
4833
|
# This API requires the Auth Role to be enabled.
|
|
4834
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4263
4835
|
#
|
|
4264
|
-
# @param [String] target_organization (Optional) If present, list the policies belonging to another organization. Only allowed for administrator accounts in the top-level organization. (>= 22.
|
|
4836
|
+
# @param [String] target_organization (Optional) If present, list the policies belonging to another organization. Only allowed for administrator accounts in the top-level organization. (>= 22.5.0)
|
|
4265
4837
|
# @return [Hash{String => Comet::GroupPolicy}]
|
|
4266
4838
|
def admin_policies_list_full(target_organization = nil)
|
|
4267
4839
|
submit_params = {}
|
|
@@ -4292,6 +4864,7 @@ module Comet
|
|
|
4292
4864
|
#
|
|
4293
4865
|
# You must supply administrator authentication credentials to use this API.
|
|
4294
4866
|
# This API requires the Auth Role to be enabled.
|
|
4867
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4295
4868
|
#
|
|
4296
4869
|
# @param [Comet::GroupPolicy] policy The policy data
|
|
4297
4870
|
# @return [Comet::CreateGroupPolicyResponse]
|
|
@@ -4317,11 +4890,12 @@ module Comet
|
|
|
4317
4890
|
#
|
|
4318
4891
|
# You must supply administrator authentication credentials to use this API.
|
|
4319
4892
|
# This API requires the Auth Role to be enabled.
|
|
4893
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4320
4894
|
#
|
|
4321
4895
|
# @param [String] policy_id The policy ID to update or create
|
|
4322
4896
|
# @param [Comet::GroupPolicy] policy The policy data
|
|
4323
4897
|
# @param [String] check_policy_hash (Optional) An atomic verification hash as supplied by the AdminPoliciesGet API
|
|
4324
|
-
# @param [Comet::PolicyOptions] options (Optional) An array of PolicySourceID that will be explicitly deleted.
|
|
4898
|
+
# @param [Comet::PolicyOptions] options (Optional) An array of PolicySourceID that will be explicitly deleted. (>= 24.12.5)
|
|
4325
4899
|
# @return [Comet::CometAPIResponseMessage]
|
|
4326
4900
|
def admin_policies_set(policy_id, policy, check_policy_hash = nil, options = nil)
|
|
4327
4901
|
submit_params = {}
|
|
@@ -4356,6 +4930,7 @@ module Comet
|
|
|
4356
4930
|
#
|
|
4357
4931
|
# You must supply administrator authentication credentials to use this API.
|
|
4358
4932
|
# This API requires the Auth Role to be enabled.
|
|
4933
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4359
4934
|
#
|
|
4360
4935
|
# @param [String] target_user Selected account username
|
|
4361
4936
|
# @param [Comet::EmailReportConfig] email_report_config Email report configuration to preview
|
|
@@ -4389,6 +4964,7 @@ module Comet
|
|
|
4389
4964
|
#
|
|
4390
4965
|
# You must supply administrator authentication credentials to use this API.
|
|
4391
4966
|
# This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
|
|
4967
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4392
4968
|
#
|
|
4393
4969
|
# @return [Array<Comet::ReplicatorStateAPIResponse>]
|
|
4394
4970
|
def admin_replication_state
|
|
@@ -4416,12 +4992,13 @@ module Comet
|
|
|
4416
4992
|
#
|
|
4417
4993
|
# You must supply administrator authentication credentials to use this API.
|
|
4418
4994
|
# This API requires the Auth Role to be enabled.
|
|
4995
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4419
4996
|
#
|
|
4420
4997
|
# @param [String] target_user The user to receive the new Storage Vault
|
|
4421
4998
|
# @param [String] storage_provider ID for the storage template destination
|
|
4422
4999
|
# @param [String] self_address (Optional) The external URL for this server. Used to resolve conflicts
|
|
4423
|
-
# @param [String] device_id (Optional) The ID of the device to be added as a associated device of the Storage Vault
|
|
4424
|
-
# @param [String] profile_hash (Optional) The profile hash of the user profile
|
|
5000
|
+
# @param [String] device_id (Optional) The ID of the device to be added as a associated device of the Storage Vault (>= 24.12.0)
|
|
5001
|
+
# @param [String] profile_hash (Optional) The profile hash of the user profile (>= 25.3.2)
|
|
4425
5002
|
# @return [Comet::RequestStorageVaultResponseMessage]
|
|
4426
5003
|
def admin_request_storage_vault(target_user, storage_provider, self_address = nil, device_id = nil, profile_hash = nil)
|
|
4427
5004
|
submit_params = {}
|
|
@@ -4463,8 +5040,9 @@ module Comet
|
|
|
4463
5040
|
#
|
|
4464
5041
|
# You must supply administrator authentication credentials to use this API.
|
|
4465
5042
|
# This API requires the Auth Role to be enabled.
|
|
5043
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4466
5044
|
#
|
|
4467
|
-
# @param [String] target_organization (Optional) If present, list the storage template options belonging to another organization. Only allowed for administrator accounts in the top-level organization. (>= 22.
|
|
5045
|
+
# @param [String] target_organization (Optional) If present, list the storage template options belonging to another organization. Only allowed for administrator accounts in the top-level organization. (>= 22.5.0)
|
|
4468
5046
|
# @return [Hash{String => String}]
|
|
4469
5047
|
def admin_request_storage_vault_providers(target_organization = nil)
|
|
4470
5048
|
submit_params = {}
|
|
@@ -4497,10 +5075,11 @@ module Comet
|
|
|
4497
5075
|
#
|
|
4498
5076
|
# You must supply administrator authentication credentials to use this API.
|
|
4499
5077
|
# This API requires the Auth Role to be enabled.
|
|
5078
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4500
5079
|
#
|
|
4501
5080
|
# @param [String] target_user Selected account username
|
|
4502
5081
|
# @param [String] new_password New account password
|
|
4503
|
-
# @param [String] old_password (Optional) Old account password. Required if no recovery code is present for the user account.
|
|
5082
|
+
# @param [String] old_password (Optional) Old account password. Required if no recovery code is present for the user account. (>= 20.3.2)
|
|
4504
5083
|
# @return [Comet::CometAPIResponseMessage]
|
|
4505
5084
|
def admin_reset_user_password(target_user, new_password, old_password = nil)
|
|
4506
5085
|
submit_params = {}
|
|
@@ -4531,6 +5110,7 @@ module Comet
|
|
|
4531
5110
|
#
|
|
4532
5111
|
# You must supply administrator authentication credentials to use this API.
|
|
4533
5112
|
# This API requires the Auth Role to be enabled.
|
|
5113
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4534
5114
|
#
|
|
4535
5115
|
# @param [String] target_user Selected account username
|
|
4536
5116
|
# @param [String] target_device Selected Device ID
|
|
@@ -4558,6 +5138,7 @@ module Comet
|
|
|
4558
5138
|
#
|
|
4559
5139
|
# You must supply administrator authentication credentials to use this API.
|
|
4560
5140
|
# This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
|
|
5141
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4561
5142
|
#
|
|
4562
5143
|
# @return [Comet::CometAPIResponseMessage]
|
|
4563
5144
|
def admin_self_backup_start
|
|
@@ -4575,6 +5156,7 @@ module Comet
|
|
|
4575
5156
|
#
|
|
4576
5157
|
# You must supply administrator authentication credentials to use this API.
|
|
4577
5158
|
# This API requires the Auth Role to be enabled.
|
|
5159
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4578
5160
|
#
|
|
4579
5161
|
# @param [String] target_user Selected account username
|
|
4580
5162
|
# @param [String] source_id Selected Protected Item GUID
|
|
@@ -4620,11 +5202,13 @@ module Comet
|
|
|
4620
5202
|
#
|
|
4621
5203
|
# You must supply administrator authentication credentials to use this API.
|
|
4622
5204
|
# This API requires the Auth Role to be enabled.
|
|
5205
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4623
5206
|
#
|
|
4624
|
-
# @param [String] target_user Selected account username
|
|
4625
|
-
# @param [Comet::UserProfileConfig] profile_data Modified user profile
|
|
5207
|
+
# @param [String] target_user Selected account username (>= 17.2.0)
|
|
5208
|
+
# @param [Comet::UserProfileConfig] profile_data Modified user profile (>= 17.2.0)
|
|
5209
|
+
# @param [Comet::AdminOptions] admin_options (Optional) Instructions for modifying user profile (>= 24.12.5)
|
|
4626
5210
|
# @return [Comet::CometAPIResponseMessage]
|
|
4627
|
-
def admin_set_user_profile(target_user, profile_data)
|
|
5211
|
+
def admin_set_user_profile(target_user, profile_data, admin_options = nil)
|
|
4628
5212
|
submit_params = {}
|
|
4629
5213
|
raise TypeError, "'target_user' expected String, got #{target_user.class}" unless target_user.is_a? String
|
|
4630
5214
|
|
|
@@ -4632,6 +5216,11 @@ module Comet
|
|
|
4632
5216
|
raise TypeError, "'profile_data' expected Comet::UserProfileConfig, got #{profile_data.class}" unless profile_data.is_a? Comet::UserProfileConfig
|
|
4633
5217
|
|
|
4634
5218
|
submit_params['ProfileData'] = profile_data.to_json
|
|
5219
|
+
unless admin_options.nil?
|
|
5220
|
+
raise TypeError, "'admin_options' expected Comet::AdminOptions, got #{admin_options.class}" unless admin_options.is_a? Comet::AdminOptions
|
|
5221
|
+
|
|
5222
|
+
submit_params['AdminOptions'] = admin_options.to_json
|
|
5223
|
+
end
|
|
4635
5224
|
|
|
4636
5225
|
body = perform_request('api/v1/admin/set-user-profile', submit_params)
|
|
4637
5226
|
json_body = JSON.parse body
|
|
@@ -4649,11 +5238,12 @@ module Comet
|
|
|
4649
5238
|
#
|
|
4650
5239
|
# You must supply administrator authentication credentials to use this API.
|
|
4651
5240
|
# This API requires the Auth Role to be enabled.
|
|
5241
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4652
5242
|
#
|
|
4653
|
-
# @param [String] target_user Selected account username
|
|
4654
|
-
# @param [Comet::UserProfileConfig] profile_data Modified user profile
|
|
4655
|
-
# @param [String] require_hash Previous hash parameter
|
|
4656
|
-
# @param [Comet::AdminOptions] admin_options (Optional) Instructions for modifying user profile
|
|
5243
|
+
# @param [String] target_user Selected account username (>= 17.2.0)
|
|
5244
|
+
# @param [Comet::UserProfileConfig] profile_data Modified user profile (>= 17.2.0)
|
|
5245
|
+
# @param [String] require_hash Previous hash parameter (>= 17.2.0)
|
|
5246
|
+
# @param [Comet::AdminOptions] admin_options (Optional) Instructions for modifying user profile (>= 24.12.5)
|
|
4657
5247
|
# @return [Comet::GetProfileAndHashResponseMessage]
|
|
4658
5248
|
def admin_set_user_profile_hash(target_user, profile_data, require_hash, admin_options = nil)
|
|
4659
5249
|
submit_params = {}
|
|
@@ -4680,6 +5270,106 @@ module Comet
|
|
|
4680
5270
|
ret
|
|
4681
5271
|
end
|
|
4682
5272
|
|
|
5273
|
+
# AdminSquotaDelete
|
|
5274
|
+
#
|
|
5275
|
+
# Delete a shared storage quota and detach all users.
|
|
5276
|
+
#
|
|
5277
|
+
# You must supply administrator authentication credentials to use this API.
|
|
5278
|
+
# This API requires the Auth Role to be enabled.
|
|
5279
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
5280
|
+
#
|
|
5281
|
+
# @param [String] shared_storage_quota_id (No description available)
|
|
5282
|
+
# @return [Comet::CometAPIResponseMessage]
|
|
5283
|
+
def admin_squota_delete(shared_storage_quota_id)
|
|
5284
|
+
submit_params = {}
|
|
5285
|
+
raise TypeError, "'shared_storage_quota_id' expected String, got #{shared_storage_quota_id.class}" unless shared_storage_quota_id.is_a? String
|
|
5286
|
+
|
|
5287
|
+
submit_params['SharedStorageQuotaID'] = shared_storage_quota_id
|
|
5288
|
+
|
|
5289
|
+
body = perform_request('api/v1/admin/squota/delete', submit_params)
|
|
5290
|
+
json_body = JSON.parse body
|
|
5291
|
+
check_status json_body
|
|
5292
|
+
ret = Comet::CometAPIResponseMessage.new
|
|
5293
|
+
ret.from_hash(json_body)
|
|
5294
|
+
ret
|
|
5295
|
+
end
|
|
5296
|
+
|
|
5297
|
+
# AdminSquotaGetWithHash
|
|
5298
|
+
#
|
|
5299
|
+
# Get properties for a shared storage quota.
|
|
5300
|
+
#
|
|
5301
|
+
# You must supply administrator authentication credentials to use this API.
|
|
5302
|
+
# This API requires the Auth Role to be enabled.
|
|
5303
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
5304
|
+
#
|
|
5305
|
+
# @param [String] shared_storage_quota_id (No description available)
|
|
5306
|
+
# @return [Comet::GetSharedStorageQuotaResponse]
|
|
5307
|
+
def admin_squota_get_with_hash(shared_storage_quota_id)
|
|
5308
|
+
submit_params = {}
|
|
5309
|
+
raise TypeError, "'shared_storage_quota_id' expected String, got #{shared_storage_quota_id.class}" unless shared_storage_quota_id.is_a? String
|
|
5310
|
+
|
|
5311
|
+
submit_params['SharedStorageQuotaID'] = shared_storage_quota_id
|
|
5312
|
+
|
|
5313
|
+
body = perform_request('api/v1/admin/squota/get-with-hash', submit_params)
|
|
5314
|
+
json_body = JSON.parse body
|
|
5315
|
+
check_status json_body
|
|
5316
|
+
ret = Comet::GetSharedStorageQuotaResponse.new
|
|
5317
|
+
ret.from_hash(json_body)
|
|
5318
|
+
ret
|
|
5319
|
+
end
|
|
5320
|
+
|
|
5321
|
+
# AdminSquotaListAll
|
|
5322
|
+
#
|
|
5323
|
+
# List available shared storage quota objects.
|
|
5324
|
+
#
|
|
5325
|
+
# You must supply administrator authentication credentials to use this API.
|
|
5326
|
+
# This API requires the Auth Role to be enabled.
|
|
5327
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
5328
|
+
#
|
|
5329
|
+
# @return [Comet::ListSharedStorageQuotaResponse]
|
|
5330
|
+
def admin_squota_list_all
|
|
5331
|
+
body = perform_request('api/v1/admin/squota/list-all')
|
|
5332
|
+
json_body = JSON.parse body
|
|
5333
|
+
check_status json_body
|
|
5334
|
+
ret = Comet::ListSharedStorageQuotaResponse.new
|
|
5335
|
+
ret.from_hash(json_body)
|
|
5336
|
+
ret
|
|
5337
|
+
end
|
|
5338
|
+
|
|
5339
|
+
# AdminSquotaSetWithHash
|
|
5340
|
+
#
|
|
5341
|
+
# Create or update a shared storage quota.
|
|
5342
|
+
#
|
|
5343
|
+
# You must supply administrator authentication credentials to use this API.
|
|
5344
|
+
# This API requires the Auth Role to be enabled.
|
|
5345
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
5346
|
+
#
|
|
5347
|
+
# @param [String] shared_storage_quota_id (No description available)
|
|
5348
|
+
# @param [Comet::SharedStorageQuota] shared_storage_quota (No description available)
|
|
5349
|
+
# @param [String] check_hash (Optional) If supplied, validate the change against this hash. Omit to forcibly apply changes.
|
|
5350
|
+
# @return [Comet::SetSharedStorageQuotaResponse]
|
|
5351
|
+
def admin_squota_set_with_hash(shared_storage_quota_id, shared_storage_quota, check_hash = nil)
|
|
5352
|
+
submit_params = {}
|
|
5353
|
+
raise TypeError, "'shared_storage_quota_id' expected String, got #{shared_storage_quota_id.class}" unless shared_storage_quota_id.is_a? String
|
|
5354
|
+
|
|
5355
|
+
submit_params['SharedStorageQuotaID'] = shared_storage_quota_id
|
|
5356
|
+
raise TypeError, "'shared_storage_quota' expected Comet::SharedStorageQuota, got #{shared_storage_quota.class}" unless shared_storage_quota.is_a? Comet::SharedStorageQuota
|
|
5357
|
+
|
|
5358
|
+
submit_params['SharedStorageQuota'] = shared_storage_quota.to_json
|
|
5359
|
+
unless check_hash.nil?
|
|
5360
|
+
raise TypeError, "'check_hash' expected String, got #{check_hash.class}" unless check_hash.is_a? String
|
|
5361
|
+
|
|
5362
|
+
submit_params['CheckHash'] = check_hash
|
|
5363
|
+
end
|
|
5364
|
+
|
|
5365
|
+
body = perform_request('api/v1/admin/squota/set-with-hash', submit_params)
|
|
5366
|
+
json_body = JSON.parse body
|
|
5367
|
+
check_status json_body
|
|
5368
|
+
ret = Comet::SetSharedStorageQuotaResponse.new
|
|
5369
|
+
ret.from_hash(json_body)
|
|
5370
|
+
ret
|
|
5371
|
+
end
|
|
5372
|
+
|
|
4683
5373
|
# AdminStorageBucketProperties
|
|
4684
5374
|
#
|
|
4685
5375
|
# Retrieve properties for a single bucket.
|
|
@@ -4687,6 +5377,7 @@ module Comet
|
|
|
4687
5377
|
#
|
|
4688
5378
|
# You must supply administrator authentication credentials to use this API.
|
|
4689
5379
|
# This API requires the Storage Role to be enabled.
|
|
5380
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4690
5381
|
#
|
|
4691
5382
|
# @param [String] bucket_id Bucket ID
|
|
4692
5383
|
# @param [Number] after_timestamp (Optional) Allow a stale size measurement if it is at least as new as the supplied Unix timestamp. Timestamps in the future may produce a result clamped down to the Comet Server's current time. If not present, the size measurement may be arbitrarily stale.
|
|
@@ -4717,8 +5408,9 @@ module Comet
|
|
|
4717
5408
|
#
|
|
4718
5409
|
# You must supply administrator authentication credentials to use this API.
|
|
4719
5410
|
# This API requires the Storage Role to be enabled.
|
|
5411
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4720
5412
|
#
|
|
4721
|
-
# @param [String] bucket_id Selected bucket name
|
|
5413
|
+
# @param [String] bucket_id Selected bucket name (>= 17.2.0)
|
|
4722
5414
|
# @return [Comet::CometAPIResponseMessage]
|
|
4723
5415
|
def admin_storage_delete_bucket(bucket_id)
|
|
4724
5416
|
submit_params = {}
|
|
@@ -4741,6 +5433,7 @@ module Comet
|
|
|
4741
5433
|
# You must supply administrator authentication credentials to use this API.
|
|
4742
5434
|
# Access to this API may be prevented on a per-administrator basis.
|
|
4743
5435
|
# This API requires the Storage Role to be enabled.
|
|
5436
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4744
5437
|
# This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
|
|
4745
5438
|
#
|
|
4746
5439
|
# @param [String] bucket_id (Optional) (This parameter is not used)
|
|
@@ -4767,6 +5460,7 @@ module Comet
|
|
|
4767
5460
|
#
|
|
4768
5461
|
# You must supply administrator authentication credentials to use this API.
|
|
4769
5462
|
# This API requires the Storage Role to be enabled.
|
|
5463
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4770
5464
|
#
|
|
4771
5465
|
# @return [Hash{String => Comet::BucketProperties}]
|
|
4772
5466
|
def admin_storage_list_buckets
|
|
@@ -4791,6 +5485,7 @@ module Comet
|
|
|
4791
5485
|
#
|
|
4792
5486
|
# You must supply administrator authentication credentials to use this API.
|
|
4793
5487
|
# Access to this API may be prevented on a per-administrator basis.
|
|
5488
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4794
5489
|
# This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
|
|
4795
5490
|
#
|
|
4796
5491
|
# @param [Comet::DestinationLocation] extra_data The destination location settings
|
|
@@ -4817,10 +5512,11 @@ module Comet
|
|
|
4817
5512
|
#
|
|
4818
5513
|
# You must supply administrator authentication credentials to use this API.
|
|
4819
5514
|
# This API requires the Storage Role to be enabled.
|
|
5515
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4820
5516
|
#
|
|
4821
|
-
# @param [String] set_bucket_value (Optional) Bucket ID
|
|
4822
|
-
# @param [String] set_key_hash_format (Optional) Bucket key hashing format
|
|
4823
|
-
# @param [String] set_key_hash_value (Optional) Bucket key hash
|
|
5517
|
+
# @param [String] set_bucket_value (Optional) Bucket ID (>= 17.2.0)
|
|
5518
|
+
# @param [String] set_key_hash_format (Optional) Bucket key hashing format (>= 17.2.0)
|
|
5519
|
+
# @param [String] set_key_hash_value (Optional) Bucket key hash (>= 17.2.0)
|
|
4824
5520
|
# @param [String] set_organization_id (Optional) Target organization ID (>= 20.9.0)
|
|
4825
5521
|
# @return [Comet::AddBucketResponseMessage]
|
|
4826
5522
|
def admin_storage_register_bucket(set_bucket_value = nil, set_key_hash_format = nil, set_key_hash_value = nil, set_organization_id = nil)
|
|
@@ -4854,6 +5550,32 @@ module Comet
|
|
|
4854
5550
|
ret
|
|
4855
5551
|
end
|
|
4856
5552
|
|
|
5553
|
+
# AdminStorageRotateBucketKey
|
|
5554
|
+
#
|
|
5555
|
+
# Issue a new key for an existing bucket, replacing the previous one.
|
|
5556
|
+
# The previous key stops working immediately. Any device or Storage Vault still using it loses access to the bucket until it is given the new key, so this can be used to cut off a backup job that is no longer supposed to be writing.
|
|
5557
|
+
# The new key is returned in the response message. It is not recoverable afterwards; if it is lost, issue another one.
|
|
5558
|
+
#
|
|
5559
|
+
# You must supply administrator authentication credentials to use this API.
|
|
5560
|
+
# This API requires the Storage Role to be enabled.
|
|
5561
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
5562
|
+
#
|
|
5563
|
+
# @param [String] bucket_id Selected bucket name
|
|
5564
|
+
# @return [Comet::AddBucketResponseMessage]
|
|
5565
|
+
def admin_storage_rotate_bucket_key(bucket_id)
|
|
5566
|
+
submit_params = {}
|
|
5567
|
+
raise TypeError, "'bucket_id' expected String, got #{bucket_id.class}" unless bucket_id.is_a? String
|
|
5568
|
+
|
|
5569
|
+
submit_params['BucketID'] = bucket_id
|
|
5570
|
+
|
|
5571
|
+
body = perform_request('api/v1/admin/storage/rotate-bucket-key', submit_params)
|
|
5572
|
+
json_body = JSON.parse body
|
|
5573
|
+
check_status json_body
|
|
5574
|
+
ret = Comet::AddBucketResponseMessage.new
|
|
5575
|
+
ret.from_hash(json_body)
|
|
5576
|
+
ret
|
|
5577
|
+
end
|
|
5578
|
+
|
|
4857
5579
|
# AdminUpdateCampaignStart
|
|
4858
5580
|
#
|
|
4859
5581
|
# Start a new software update campaign.
|
|
@@ -4861,6 +5583,7 @@ module Comet
|
|
|
4861
5583
|
# You must supply administrator authentication credentials to use this API.
|
|
4862
5584
|
# This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
|
|
4863
5585
|
# This API requires the Software Build Role to be enabled.
|
|
5586
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4864
5587
|
# This API requires the Auth Role to be enabled.
|
|
4865
5588
|
#
|
|
4866
5589
|
# @param [Comet::UpdateCampaignOptions] options Configure targets for the software update campaign
|
|
@@ -4886,6 +5609,7 @@ module Comet
|
|
|
4886
5609
|
# You must supply administrator authentication credentials to use this API.
|
|
4887
5610
|
# This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
|
|
4888
5611
|
# This API requires the Software Build Role to be enabled.
|
|
5612
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4889
5613
|
# This API requires the Auth Role to be enabled.
|
|
4890
5614
|
#
|
|
4891
5615
|
# @return [Comet::UpdateCampaignStatus]
|
|
@@ -4904,6 +5628,7 @@ module Comet
|
|
|
4904
5628
|
#
|
|
4905
5629
|
# You must supply administrator authentication credentials to use this API.
|
|
4906
5630
|
# This API requires the Auth Role to be enabled.
|
|
5631
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4907
5632
|
#
|
|
4908
5633
|
# @param [String] group_id The user group ID to delete
|
|
4909
5634
|
# @return [Comet::CometAPIResponseMessage]
|
|
@@ -4927,6 +5652,7 @@ module Comet
|
|
|
4927
5652
|
#
|
|
4928
5653
|
# You must supply administrator authentication credentials to use this API.
|
|
4929
5654
|
# This API requires the Auth Role to be enabled.
|
|
5655
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4930
5656
|
#
|
|
4931
5657
|
# @param [String] group_id The user group ID to retrieve
|
|
4932
5658
|
# @param [Boolean] include_users (Optional) If present, includes the users array in the response.
|
|
@@ -4955,6 +5681,7 @@ module Comet
|
|
|
4955
5681
|
#
|
|
4956
5682
|
# You must supply administrator authentication credentials to use this API.
|
|
4957
5683
|
# This API requires the Auth Role to be enabled.
|
|
5684
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4958
5685
|
#
|
|
4959
5686
|
# @param [String] target_organization (Optional) If present, list the user groups belonging to another organization. Only allowed for administrator accounts in the top-level organization.
|
|
4960
5687
|
# @return [Hash{String => String}]
|
|
@@ -4989,6 +5716,7 @@ module Comet
|
|
|
4989
5716
|
#
|
|
4990
5717
|
# You must supply administrator authentication credentials to use this API.
|
|
4991
5718
|
# This API requires the Auth Role to be enabled.
|
|
5719
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
4992
5720
|
#
|
|
4993
5721
|
# @param [String] target_organization (Optional) If present, list the user groups belonging to the specified organization. Only allowed for administrator accounts in the top-level organization.
|
|
4994
5722
|
# @return [Hash{String => Comet::UserGroup}]
|
|
@@ -5021,6 +5749,7 @@ module Comet
|
|
|
5021
5749
|
#
|
|
5022
5750
|
# You must supply administrator authentication credentials to use this API.
|
|
5023
5751
|
# This API requires the Auth Role to be enabled.
|
|
5752
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
5024
5753
|
#
|
|
5025
5754
|
# @param [String] name this is the name of the group.
|
|
5026
5755
|
# @param [String] target_organization (Optional) If present, list the policies belonging to another organization. Only allowed for administrator accounts in the top-level organization.
|
|
@@ -5050,6 +5779,7 @@ module Comet
|
|
|
5050
5779
|
#
|
|
5051
5780
|
# You must supply administrator authentication credentials to use this API.
|
|
5052
5781
|
# This API requires the Auth Role to be enabled.
|
|
5782
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
5053
5783
|
#
|
|
5054
5784
|
# @param [String] group_id The user group ID to update or create
|
|
5055
5785
|
# @param [Comet::UserGroup] group The user group data
|
|
@@ -5079,6 +5809,7 @@ module Comet
|
|
|
5079
5809
|
#
|
|
5080
5810
|
# You must supply administrator authentication credentials to use this API.
|
|
5081
5811
|
# This API requires the Auth Role to be enabled.
|
|
5812
|
+
# This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
5082
5813
|
#
|
|
5083
5814
|
# @param [String] group_id The user group ID to update
|
|
5084
5815
|
# @param [Array<String>] users An array of usernames.
|
|
@@ -5106,6 +5837,8 @@ module Comet
|
|
|
5106
5837
|
# This hybrid API allows you to log in to the Comet Server as either an administrator or end-user account.
|
|
5107
5838
|
# This API behaves like either AdminAccountSessionStart or UserWebSessionStart, depending on what the supplied credentials were valid for.
|
|
5108
5839
|
#
|
|
5840
|
+
# This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
|
|
5841
|
+
#
|
|
5109
5842
|
# @return [Comet::SessionKeyRegeneratedResponse]
|
|
5110
5843
|
def hybrid_session_start
|
|
5111
5844
|
body = perform_request('api/v1/hybrid/session/start')
|
|
@@ -5204,6 +5937,7 @@ module Comet
|
|
|
5204
5937
|
req.set_form(form_params, 'multipart/form-data')
|
|
5205
5938
|
|
|
5206
5939
|
http = Net::HTTP.new(full_uri.hostname, full_uri.port)
|
|
5940
|
+
http.use_ssl = (full_uri.scheme == 'https')
|
|
5207
5941
|
res = http.request(req)
|
|
5208
5942
|
|
|
5209
5943
|
unless res.is_a?(Net::HTTPSuccess)
|