-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixed issue in constructing job url for fetching job list Issue: #226 Cause: Job name contains special character need to be encoded Fix: Encoding query name list before constructing job url * Included powershell commandlet for colletcing file snapshot informations. * Modified restore file script to fetch latest recoverable snapshot detail, if job run detail not provided by the user. * Removed cluster id and cluster incarnation id parameter in find cohesity snapshot cmdlet. * Hard-coded value for target host type is not correct in remotefile restore cmdlet, which need to be assigned based on source host type. * Updated restore file example in readme file. --------- Co-authored-by: unknown <kshanmugam.maplelabs@corp.cohesity.com>
- Loading branch information
1 parent
4a5f17e
commit eed2a12
Showing
12 changed files
with
407 additions
and
49 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# Find-CohesityFileSnapshot | ||
|
||
## SYNOPSIS | ||
Get the information about snapshots that contain the specified file or folder. In addition, information about the file or folder is provided. | ||
|
||
## SYNTAX | ||
|
||
``` | ||
Find-CohesityFileSnapshot [-ClusterId <Int64>] [-ClusterIncarnationId <Int64>] [-FileName <String>] [-JobId <Int64>] | ||
[-SourceId <Int64>] [<CommonParameters>] | ||
``` | ||
|
||
## EXAMPLES | ||
|
||
### EXAMPLE 1 | ||
``` | ||
Find-CohesityFileSnapshot -FileName "abc.txt" -SourceId 123 -JobId 11 | ||
``` | ||
|
||
Returns snapshot information of specified file/folder in metioned source. | ||
|
||
## PARAMETERS | ||
|
||
### -FileName | ||
Specifies the name of the file or folder to find in the snapshots. | ||
This field is required. | ||
|
||
```yaml | ||
Type: String | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: True | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -JobId | ||
Specifies the id of the Job that captured the snapshots. | ||
These snapshots are searched for the specified files or folders. | ||
This field is required. | ||
```yaml | ||
Type: Int64 | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: True | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -SourceId | ||
Specifies the id of the Protection Source object (such as a VM) to search. | ||
When a Job Run executes, snapshots of the specified Protection Source | ||
object are captured. This operation searches the snapshots of the | ||
object for the file or folder. This field is required. | ||
```yaml | ||
Type: Int64 | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: True | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### 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](http://go.microsoft.com/fwlink/?LinkID=113216). | ||
## INPUTS | ||
## OUTPUTS | ||
### Cohesity.Model.FileSnapshotInformation | ||
## NOTES | ||
## RELATED LINKS |
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
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
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
Oops, something went wrong.