Protect-RubrikVApp

SYNOPSIS

Connects to Rubrik and assigns an SLA to a vCD vApp

SYNTAX

None (Default)

Protect-RubrikVApp -id <String> [-SLAID <String>] [-Server <String>] [-api <String>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

SLA_Explicit

Protect-RubrikVApp -id <String> [-SLA <String>] [-SLAID <String>] [-Server <String>] [-api <String>] [-WhatIf]
 [-Confirm] [<CommonParameters>]

SLA_Unprotected

Protect-RubrikVApp -id <String> [-DoNotProtect] [-SLAID <String>] [-Server <String>] [-api <String>] [-WhatIf]
 [-Confirm] [<CommonParameters>]

SLA_Inherit

Protect-RubrikVApp -id <String> [-Inherit] [-SLAID <String>] [-Server <String>] [-api <String>] [-WhatIf]
 [-Confirm] [<CommonParameters>]

DESCRIPTION

The Protect-RubrikVApp cmdlet will update a vCD vApp's SLA Domain assignment within the Rubrik cluster. The SLA Domain contains all policy-driven values needed to protect workloads. Note that this function requires the vApp ID value and not the vApp name. This is because vApp names may not be unique across clusters. It is suggested that you first use Get-RubrikVApp to narrow down the one or more vApps to protect, and then pipe the results to Protect-RubrikVApp. You will be asked to confirm each vApp you wish to protect, or you can use -Confirm:$False to skip confirmation checks.

EXAMPLES

EXAMPLE 1

This will assign the Gold SLA Domain to any vApp named "vApp1"

EXAMPLE 2

This will assign the Gold SLA Domain to any vApp named "vApp1" that is currently assigned to the Silver SLA Domain without asking for confirmation

PARAMETERS

-id

vApp ID

-SLA

The SLA Domain in Rubrik

-DoNotProtect

Removes the SLA Domain assignment

-Inherit

Inherits the SLA Domain assignment from a parent object

-SLAID

SLA id value

-Server

Rubrik server IP or FQDN

-api

API version

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

-Confirm

Prompts you for confirmation before running the cmdlet.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

Written by Matt Elliott for community usage Twitter: @NetworkBrouhaha GitHub: shamsway

https://rubrik.gitbook.io/rubrik-sdk-for-powershell/command-documentation/reference/protect-rubrikvapp

Last updated

Was this helpful?