Skip to content

Releases: rubrikinc/rubrik-powershell-sdk

0.17.0 Release

26 Oct 07:45

Choose a tag to compare

New toolkit scripts:

  • Backup-SlaDomain
  • Export-RscMssqlDatabase
  • Get-RscManagedVolume
  • Get-RscMssqlAvailabilityGroup
  • Get-RscMssqlDatabaseFiles
  • Get-RscMssqlDatabase
  • Get-RscMssqlDatabaseRecoverableRanges
  • Get-RscMssqlDatabaseRecoveryPoint
  • Get-RscMssqlInstance
  • Get-RscMssqlLiveMount
  • New-RscMssqlLiveMount
  • New-RscMssqlLogBackup
  • New-RscMssqlRestore
  • New-RscMssqlSnapshot
  • Remove-RscMssqlLiveMount
  • Set-RscMssqlDatabase
  • Start-RscManagedVolumeSnapshot
  • Stop-RscManagedVolumeSnapshot

0.16.1 (hotfix to 0.16)

13 Oct 19:16

Choose a tag to compare

Release pipeline failed to generate 0.16 correctly. This was fixed.

Version 0.16

01 Oct 22:37

Choose a tag to compare

Version 0.16

New Features:

  • New methods on Field objects: SelectedFields(),
    UnselectedFields() and AllFields().
  • New-RscQuery and New-RscMutation for generic queries and mutations.
    For example to amend an existing query:
    $query = New-RscQuery -Copy $query -AddField ..
    or to create a new query based off a GraphQL root field:
    New-RscQuery -GqlQuery clusterConnection -AddField ..
  • New param to Get-RscCluster:
    Get-RscCluster -AsQuery returns the query object instead of executing it.
  • Total query and mutation cmdlets is now at 52,
    see: docs/domains_and_operations.md

Version 0.15-Beta

26 Sep 06:59

Choose a tag to compare

New Features:

New cmdlet: New-RscQueryManagedVolume that covers the ManagedVolume API domain.
More documentation in Get-Help for the RSC cmdlets.
Fixes:

Fixed bug with passing lists of enums. For example:
New-RscQueryVsphere -TopLevelDescendantsList -Var @{typeFilter = @(
[RubrikSecurityCloud.Types.HierarchyObjectTypeEnum]::WINDOWS_CLUSTER,
[RubrikSecurityCloud.Types.HierarchyObjectTypeEnum]::PHYSICAL_HOST)}
Deprecations:

Breaking Changes:

-Patch was replaced with -AddField and -RemoveField
Experimental New-RscQueryGql* cmdlets are removed

Version 0.14-Beta

21 Sep 06:45

Choose a tag to compare

  • Refactor! This update is a major refactor of the SDK that invalidates
    all previous versions (because all cmdlet names have changed):

    The 2-step operation of first asking for "inputs"

    $inputs = Invoke-RscQuery<Domain> -<Operation> -GetInput

    and then executing with the inputs

    Invoke-RscQuery<Domain> -<Operation> -Input $inputs

    is now renamed to first creating a query

    $query = New-RscQuery<Domain> -<Operation>

    and then executing the query

    $result = Invoke-Rsc $query

    or equivalently

    $result = $query.Invoke()

  • SDK Extensions are renamed to SDK Toolkit,
    and the layout under rubrik-security-cloud/Toolkit
    was reworked.

Version 0.12-Beta

24 Aug 15:35

Choose a tag to compare

New Features:

RscCmdletInput has 2 new methods, VarInfo() and Info()
Fixes:

Fix bug in API server error reporting

Version 0.11-Beta

21 Aug 09:00

Choose a tag to compare

Version 0.11-beta

New Features:

  • New Invoke parameters: -Patch, -PatchFile
  • RscCmdletInput: new FieldInfo() method that returns a link to the
    online documentation for the field.
  • Extension scripts now live in the Extensions top directory.
  • -Input on cmdlets that accepts a RscCmdletInput object:
    the type you retrieve with -GetInput. For example:
    $i=(Invoke-RscXxx -GetInput); ...; Invoke-RscXxx -Input $i
  • New input profile -InputProfile FULL which creates a field
    specification that includes all fields recursively.
    This is useful for studying/debugging and for custom operations.
    NOTE: The FULL profile will typically generate queries that exceed
    the query complexity limit of the API server. It is not meant to
    be sent out as-is to the API server. Instead, it is meant to be
    used as a starting point for custom operations.
  • Get-RscCmdlet -Locations shows the various (FS) locations
    where the SDK looks for files.
  • Samples/AllCmdlets.sample.ps1 now accepts a -GetGqlRequest that
    will save the GraphQL query to file for every command in the SDK
    into a local ./gql/ directory.
    CAUTION: This will writes hundreds of files to disk!
  • New doc files: docs/faq.md, docs/input_model.md

Fixes:

  • API server errors on query complexity are now bubbled up to the user
  • Invoke-RscQueryCluster -List -InputProfile DETAIL
    and Get-RscCluster -Detail did not work because of query complexity.
    They were fixed by providing the override gql file
    Operations/DETAIL/QueryClusterConnection.gql
  • Remove-NullProperties now works with null input.

Deprecations:

  • -Arg is deprecated in favor of -Var (for variables).
    -Arg will be removed in a future release.
  • =InputProfile is deprecated in favor of -FieldProfile.
    =InputProfile will be removed in a future release.

Breaking changes:

  • Cmdlets' -GetInputs is renamed to -GetInput.
  • RscGqlRequest.DefaultQueryFileName is not a method anymore but a property.