Module: Skykick::Client::Backup
- Included in:
- Skykick::Client
- Defined in:
- lib/skykick/client/backup.rb
Overview
All backup related api calls
Instance Method Summary collapse
-
#autodiscover(id) ⇒ Object
Returns the Exchange and SharePoint auto-discover states (enabled/disabled) of a Backup subscription.
-
#datacenters ⇒ Object
Returns a list of supported Azure data centers.
-
#exchange_mailbox(id, mailbox_id) ⇒ Object
Returns a list of Exchange mailboxes and statuses (enabled/disabled) for a Backup subscription.
-
#exchange_mailboxes(id) ⇒ Object
Returns a list of Exchange mailboxes and statuses (enabled/disabled) for a Backup subscription.
-
#lastsnapshotstats(id) ⇒ Object
Gets stats for snapshots from SKDataWarehouse for all mailboxes of a given backupServiceId.
-
#partner_subscriptions(partner_id) ⇒ Object
Gets a list of placed Backup subscription orders.
-
#retentionperiod(id) ⇒ Object
Returns the data retention periods for a Backup subscription.
-
#sharepoint_sites(id) ⇒ Object
Returns a list of SharePoint site URLs and statuses (enabled/disabled) for a Backup subscription.
-
#sku(id) ⇒ Object
Gets SKU/promo details for a Backup service.
-
#storage_settings(id) ⇒ Object
Returns storage settings for a Backup subscription.
-
#subscription_settings(id) ⇒ Object
Returns Backup subscription settings.
-
#subscriptions ⇒ Object
Gets a list of placed Backup subscription orders.
Instance Method Details
#autodiscover(id) ⇒ Object
Returns the Exchange and SharePoint auto-discover states (enabled/disabled) of a Backup subscription.
72 73 74 |
# File 'lib/skykick/client/backup.rb', line 72 def autodiscover(id) get("Backup/#{id}/autodiscover") end |
#datacenters ⇒ Object
Returns a list of supported Azure data centers.
9 10 11 |
# File 'lib/skykick/client/backup.rb', line 9 def datacenters get('Backup/datacenters') end |
#exchange_mailbox(id, mailbox_id) ⇒ Object
Returns a list of Exchange mailboxes and statuses (enabled/disabled) for a Backup subscription.
67 68 69 |
# File 'lib/skykick/client/backup.rb', line 67 def exchange_mailbox(id, mailbox_id) get("Backup/#{id}/mailboxes/#{mailbox_id}") end |
#exchange_mailboxes(id) ⇒ Object
Returns a list of Exchange mailboxes and statuses (enabled/disabled) for a Backup subscription.
62 63 64 |
# File 'lib/skykick/client/backup.rb', line 62 def exchange_mailboxes(id) get("Backup/#{id}/mailboxes") end |
#lastsnapshotstats(id) ⇒ Object
Gets stats for snapshots from SKDataWarehouse for all mailboxes of a given backupServiceId
57 58 59 |
# File 'lib/skykick/client/backup.rb', line 57 def lastsnapshotstats(id) get("Backup/#{id}/lastsnapshotstats") end |
#partner_subscriptions(partner_id) ⇒ Object
Gets a list of placed Backup subscription orders
19 20 21 |
# File 'lib/skykick/client/backup.rb', line 19 def partner_subscriptions(partner_id) get("Backup/#{partner_id}") end |
#retentionperiod(id) ⇒ Object
Returns the data retention periods for a Backup subscription. There are different retention periods for Exchange and SharePoint Data.
Please Note: We are aware of the spelling error of the word “retention” in the response field ExchangeRentionPeriodInDays. This is not a mistake in the documentation, but has been left this way as not to disrupt any existing integrations with this endpoint.
52 53 54 |
# File 'lib/skykick/client/backup.rb', line 52 def retentionperiod(id) get("Backup/#{id}/retentionperiod") end |
#sharepoint_sites(id) ⇒ Object
Returns a list of SharePoint site URLs and statuses (enabled/disabled) for a Backup subscription.
42 43 44 |
# File 'lib/skykick/client/backup.rb', line 42 def sharepoint_sites(id) get("Backup/#{id}/sites") end |
#sku(id) ⇒ Object
Gets SKU/promo details for a Backup service.
36 37 38 |
# File 'lib/skykick/client/backup.rb', line 36 def sku(id) get("Backup/#{id}/sku") end |
#storage_settings(id) ⇒ Object
Returns storage settings for a Backup subscription.
31 32 33 |
# File 'lib/skykick/client/backup.rb', line 31 def storage_settings(id) get("Backup/#{id}/storagesettings") end |
#subscription_settings(id) ⇒ Object
Returns Backup subscription settings. Settings include the enabled state for Exchange and SharePoint Backups and total count of enabled Exchange mailboxes and SharePoint sites as well as the state of the subscription.
26 27 28 |
# File 'lib/skykick/client/backup.rb', line 26 def subscription_settings(id) get("Backup/#{id}/subscriptionsettings") end |
#subscriptions ⇒ Object
Gets a list of placed Backup subscription orders
14 15 16 |
# File 'lib/skykick/client/backup.rb', line 14 def subscriptions() get('Backup') end |