Releases: rubrikinc/rubrik-powershell-sdk
0.17.0 Release
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)
Release pipeline failed to generate 0.16 correctly. This was fixed.
Version 0.16
Version 0.16
New Features:
- New methods on Field objects:
SelectedFields(),
UnselectedFields()andAllFields(). New-RscQueryandNew-RscMutationfor 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 -AsQueryreturns 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
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
-
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> -GetInputand then executing with the inputs
Invoke-RscQuery<Domain> -<Operation> -Input $inputsis now renamed to first creating a query
$query = New-RscQuery<Domain> -<Operation>and then executing the query
$result = Invoke-Rsc $queryor 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
New Features:
RscCmdletInput has 2 new methods, VarInfo() and Info()
Fixes:
Fix bug in API server error reporting
Version 0.11-Beta
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
Extensionstop directory. -Inputon cmdlets that accepts aRscCmdletInputobject:
the type you retrieve with-GetInput. For example:
$i=(Invoke-RscXxx -GetInput); ...; Invoke-RscXxx -Input $i- New input profile
-InputProfile FULLwhich creates a field
specification that includes all fields recursively.
This is useful for studying/debugging and for custom operations.
NOTE: TheFULLprofile 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 -Locationsshows the various (FS) locations
where the SDK looks for files.Samples/AllCmdlets.sample.ps1now accepts a-GetGqlRequestthat
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
andGet-RscCluster -Detaildid not work because of query complexity.
They were fixed by providing the override gql file
Operations/DETAIL/QueryClusterConnection.gqlRemove-NullPropertiesnow works with null input.
Deprecations:
-Argis deprecated in favor of-Var(for variables).
-Argwill be removed in a future release.=InputProfileis deprecated in favor of-FieldProfile.
=InputProfilewill be removed in a future release.
Breaking changes:
- Cmdlets'
-GetInputsis renamed to-GetInput. - RscGqlRequest.DefaultQueryFileName is not a method anymore but a property.