-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 616 - updated documentation #617
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,48 @@ | ||
# FAQ | ||
|
||
This section will contain a list of questions that have been received \(and answered\) by the Project Team. | ||
This section will contain a list of common questions that have been received (and answered) by the Project Team. | ||
|
||
- [How do I install the devel branch of the Rubrik SDK for PowerShell?](#how-do-i-install-the-devel-branch-of-the-rubrik-sdk-for-powershell) | ||
- [Why do I see only a subset of object properties?](#why-do-i-see-only-a-subset-of-object-properties) | ||
- [Why is the returned data different when I filter objects based on name vs based on their id value?](#why-is-the-returned-data-different-when-i-filter-objects-based-on-name-vs-based-on-their-id-value) | ||
|
||
## How do I install the devel branch of the Rubrik SDK for PowerShell? | ||
|
||
In order to test new features or cmdlets which have been developed you may wish to run the `devel` branch of the Rubrik SDK for PowerShell. All new functionality first lands within the `devel` branch before it is migrated to `master` during a module release. The easiest way to install and test the `devel` branch is as follows: | ||
1. Clone the GitHub repository to a local folder | ||
|
||
`git clone https://github.com/rubrikinc/rubrik-sdk-for-powershell c:\test\` | ||
|
||
1. Traverse to the local directory the module was cloned in and checkout the `devel` branch | ||
|
||
`cd c:\test\ | ||
git checkout devel` | ||
|
||
1. Import the Rubrik Module, specifying the path to the newly cloned repository | ||
|
||
`Import-Module c:\test\Rubrik -Force` | ||
|
||
|
||
## Why do I see only a subset of object properties? | ||
|
||
By default, custom view definitions are applied to the output of some results that cmdlets return. For instance, running `Get-RubrikSLA` only shows the Name, Base Frequency, Object Count, Archival Location, Replication Location and Id by default. | ||
|
||
![](../img/get-rubrikslacustom.png) | ||
|
||
Rest assured though, all properties are returned and can be viewed by simply piping the cmdlet to Select * (`Get-RubrikSLA | Select *`) or referencing the property directly (`(Get-RubrikSLA).numVms`). | ||
|
||
The application of custom view definitions may also be turned on and off with the configuration of the `ApplyCustomViewDefinitions` module option as well. | ||
|
||
```text | ||
Set-RubrikModuleOption -OptionName "ApplyCustomViewDefinitions" -OptionValue "False" | ||
``` | ||
|
||
## Why is the returned data different when I filter objects based on name vs based on their id value? | ||
|
||
Many Rubrik API endpoints are designed in such a way that they provide lists of objects as a response when querying a simple object type, and a more detailed response when sending the actual ID of the object. For instance, we are able to get a list of VMs by sending a GET request to the `/vmware/vm` endpoint. We can, if we desire, shorten this list by adding a `name` filter into the query. This process is the same as running `Get-RubrikVM -Name "VMName"`. By sending the id to the endpoint `/vmware/vm/{id}` we essentially ask for a more detailed response, equivalent to running `Get-RubrikVM -ID "12345"`. That said, we are able to use the `-Name` parameter along with the `-DetailedObject` parameter to retrieve the detailed response just as if we had passed the `-Id` parameter. | ||
|
||
```text | ||
Get-RubrikVM -Name "VMName" -DetailedObject | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recommend consistent usage of the
id
parameter. Sometimes you are saying id or Id or ID, which do we want to standardize on?