rubrikinc / rubrik-powershell-sdk

The Rubrik Security Cloud SDK
https://www.powershellgallery.com/packages/RubrikSecurityCloud
MIT License
7 stars 9 forks source link

Missing Data and Erroring command #82

Open hodgiepodgie opened 3 months ago

hodgiepodgie commented 3 months ago

I was told that the product was GA now. I have updated to the 1.0 release and have been playing around with the commands a bit. I thought I would update you on a couple of different things that I observed while using some of the commands.

When running a get-rscvsphereVm command and plugging it into a variable. like $vm = get-rscvsphereVm -Name Server1 $vm Name Operating System SLA Domain RBS Status Id


Server1 Microsoft Windows Server 2016 or later (64-bit) 30_Day_VM_Image 0950dcb3-5bf4-5c3c-8884-2ce78e33e526 Server1 Microsoft Windows Server 2016 or later (64-bit) 30_Day_VM_Image 49fbb582-f432-501c-b0b9-357ab24274e2 Server1 Microsoft Windows Server 2016 or later (64-bit) 66a0c677-ac9e-5e2c-a7e9-472a152d670b

I will get multiple entries back since my vCenter is matched to multiple clusters. Since the cluster is not shown in this view, I am unable to tell at a glance what cluster the backups were on.

However, if I dig into the variable with $vm | fl, I can see that you have a lot of data underneath the hood. However, I noticed most of those entries were blank. I did however, find the clusterid and was able to write another command to match the id to the name but it looks like you guys intend/intended to have a lot of this data here already. I am sure this is still being developed but wanted to make sure it was not just an issue on my part.

Next, I followed the get-help on command get-rscsnapshot Even using the examples in the get-help, this command comes back with errors so long it doesn't even fit on the terminal scroll back. If you would like me to show you what I am running into, let me know.

guirava commented 3 months ago

Thank you for your feedback, we identified that get-rscvsphereVm needs to be deprecated - sorry you ran into issues using it . Please use Get-RscVmwareVm instead and let us know if it works for you .

As for the empty fields:

The SDK tries to identify what fields should be in the response, and selects a minimal set of fields doing so . We welcome feedback on what that set of fields is. Please feel free to get back to us with what fields you feel should be in that response and we will add them to the default response.

hodgiepodgie commented 3 months ago

That command resulted in the same way. I tried both at the time but since the documentation said to use get-rscvsphereVm so I switched to using that one. However, both resulted in the same error.

Alan Hodges Lead Storage Engineer

Humana 5200 Southpoint Drive | Louisville, KY 40229

C 502.819.5047

@.**@.> Humana.com

From: Guillaume @.> Sent: Wednesday, April 17, 2024 5:26 PM To: rubrikinc/rubrik-powershell-sdk @.> Cc: Alan Hodges @.>; Author @.> Subject: Re: [rubrikinc/rubrik-powershell-sdk] Missing Data and Erroring command (Issue #82)

Thank you for your feedback, we identified that get-rscvsphereVm needs to be deprecated - sorry you ran into issues using it . Please use Get-RscVmwareVm instead and let us know if it works for you . As for the empty fields: The SDK tries to

Thank you for your feedback, we identified that get-rscvsphereVm needs to be deprecated - sorry you ran into issues using it . Please use Get-RscVmwareVm instead and let us know if it works for you .

As for the empty fields:

The SDK tries to identify what fields should be in the response, and selects a minimal set of fields doing so . We welcome feedback on what that set of fields is. Please feel free to get back to us with what fields you feel should be in that response and we will add them to the default response.

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/rubrikinc/rubrik-powershell-sdk/issues/82*issuecomment-2062406327__;Iw!!IfVdvpvC!RZrtjZYUuWIUEAkRhiAMI_I9SvLaPrLlsPHHAomAyNwWU1gGy31___NWRHoFuwuuCAHq3eu5ZsQGZfZZuxiTWF_xPQ$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/A6PX2QET5VON5BVLW5I4J73Y53SF3AVCNFSM6AAAAABGESVDSKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRSGQYDMMZSG4__;!!IfVdvpvC!RZrtjZYUuWIUEAkRhiAMI_I9SvLaPrLlsPHHAomAyNwWU1gGy31___NWRHoFuwuuCAHq3eu5ZsQGZfZZuxj1GIqnOQ$. You are receiving this because you authored the thread.Message ID: @.**@.>>

The information transmitted is intended only for the person or entity to which it is addressed and may contain CONFIDENTIAL material. If you receive this material/information in error, please contact the sender and delete or destroy the material/information.

Humana Inc. and its subsidiaries comply with applicable Federal civil rights laws and do not discriminate on the basis of race, color, national origin, ancestry, age, disability, sex, marital status, gender, sexual orientation, gender identity, or religion. Humana Inc. and its subsidiaries do not exclude people or treat them differently because of race, color, national origin, ancestry, age, disability, sex, marital status, gender, sexual orientation, gender identity, or religion.

English: ATTENTION: If you do not speak English, language assistance services, free of charge, are available to you. Call 1‐877‐320‐1235 (TTY: 711).

Español (Spanish): ATENCIÓN: Si habla español, tiene a su disposición servicios gratuitos de asistencia lingüística. Llame al 1‐877‐320‐1235 (TTY: 711).

繁體中文(Chinese):注意:如果您使用繁體中文,您可以免費獲得語言援助 服務。請致電 1‐877‐320‐1235 (TTY: 711)。

Kreyòl Ayisyen (Haitian Creole): ATANSION: Si w pale Kreyòl Ayisyen, gen sèvis èd pou lang ki disponib gratis pou ou. Rele 1‐877‐320‐1235 (TTY: 711).

Polski (Polish): UWAGA: Jeżeli mówisz po polsku, możesz skorzystać z bezpłatnej pomocy językowej. Zadzwoń pod numer 1‐877‐320‐1235 (TTY: 711).

한국어 (Korean): 주의: 한국어를 사용하시는 경우, 언어 지원 서비스를 무료로 이용하실 수 있습니다. 1‐877‐320‐1235 (TTY: 711)번으로 전화해 주십시오.

GronTron commented 1 month ago

Hello, In response to this I'd like to provide feedback on a property. The Get-RscVmwareVm cmdlet has a property labeled "SlaAssignment" When running this command against a VM that inherits it's SlaDomain, the field only displays the "DERIVED" value. Can you change this so it will display the name of the SLA domain instead? Alternative suggestion would be to have two different properties. SlaAssignmentType (displays how the Sla is applied IE Direct, Derived etc.) and SlaAssignment (displays the name of the SLA domain) Second, also in Get-RscVmwareVM, add value to the property for VsphereTagPath. I would suggest displaying this as such: RubrikClusterName/vCenterServerName/vSphereTagCategory/TagName Thank you!