Skip to content

Commit 9a18c18

Browse files
committed
Initial commit
1 parent 218061c commit 9a18c18

File tree

1 file changed

+166
-0
lines changed

1 file changed

+166
-0
lines changed
Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
---
2+
external help file: Microsoft.Graph.Authentication-help.xml
3+
Module Name: Microsoft.Graph.Authentication
4+
online version:
5+
schema: 2.0.0
6+
---
7+
8+
# Find-MgGraphCommand
9+
10+
## SYNOPSIS
11+
{{ Fill in the Synopsis }}
12+
13+
## SYNTAX
14+
15+
### FindByCommandOrUri (Default)
16+
```
17+
Find-MgGraphCommand [-ApiVersion <String>] [-InputObject] <Object[]> [<CommonParameters>]
18+
```
19+
20+
### FindByUri
21+
```
22+
Find-MgGraphCommand [-Uri] <String[]> [-Method <String>] [-ApiVersion <String>] [<CommonParameters>]
23+
```
24+
25+
### FindByCommand
26+
```
27+
Find-MgGraphCommand [-ApiVersion <String>] -Command <String[]> [<CommonParameters>]
28+
```
29+
30+
## DESCRIPTION
31+
{{ Fill in the Description }}
32+
33+
## EXAMPLES
34+
### Example 1: Find command with URI path
35+
```powershell
36+
Import-Module Microsoft.Graph.Authentication
37+
38+
Find-MgGraphCommand -Uri "/users/{id}"
39+
40+
APIVersion: v1.0
41+
42+
Command Module Method URI OutputType Permissions
43+
------- ------ ------ --- ---------- -----------
44+
Get-MgUser Users GET /users/{user-id} IMicrosoftGraphUser1 {DeviceManagementApps.Read.All DeviceManagementApps.Rea…
45+
Remove-MgUser Users DELETE /users/{user-id} {DeviceManagementApps.ReadWrite.All DeviceManagementMan…
46+
Update-MgUser Users PATCH /users/{user-id} {DeviceManagementApps.ReadWrite.All DeviceManagementMan…
47+
48+
APIVersion: beta
49+
50+
Command Module Method URI OutputType Permissions
51+
------- ------ ------ --- ---------- -----------
52+
Get-MgUser Users GET /users/{user-id} IMicrosoftGraphUser {DeviceManagementApps.Read.All DeviceManagementApps.Read…
53+
Remove-MgUser Users DELETE /users/{user-id} {DeviceManagementApps.ReadWrite.All DeviceManagementMana…
54+
Update-MgUser Users PATCH /users/{user-id} {DeviceManagementApps.ReadWrite.All DeviceManagementMana…
55+
```
56+
This example finds all commands that call the provided Microsoft Graph URI.
57+
58+
### Example 2: Find command with command name
59+
```powershell
60+
Import-Module Microsoft.Graph.Authentication
61+
62+
Find-MgGraphCommand -Command Send-MgUserMessage -ApiVersion beta
63+
64+
APIVersion: beta
65+
66+
Command Module Method URI OutputType Permissions
67+
------- ------ ------ --- ---------- -----------
68+
Send-MgUserMessage Users.Actions POST /users/{user-id}/messages/{message-id}/microsoft.graph.send {Mail.Send}
69+
```
70+
This example looks up a command with the provided command name that calls the beta version of the API.
71+
72+
## PARAMETERS
73+
74+
### -ApiVersion
75+
{{ Fill ApiVersion Description }}
76+
77+
```yaml
78+
Type: String
79+
Parameter Sets: (All)
80+
Aliases:
81+
Accepted values: v1.0, beta
82+
83+
Required: False
84+
Position: Named
85+
Default value: None
86+
Accept pipeline input: False
87+
Accept wildcard characters: False
88+
```
89+
90+
### -Command
91+
{{ Fill Command Description }}
92+
93+
```yaml
94+
Type: String[]
95+
Parameter Sets: FindByCommand
96+
Aliases:
97+
98+
Required: True
99+
Position: Named
100+
Default value: None
101+
Accept pipeline input: False
102+
Accept wildcard characters: False
103+
```
104+
105+
### -InputObject
106+
{{ Fill InputObject Description }}
107+
108+
```yaml
109+
Type: Object[]
110+
Parameter Sets: FindByCommandOrUri
111+
Aliases:
112+
113+
Required: True
114+
Position: 0
115+
Default value: None
116+
Accept pipeline input: True (ByValue)
117+
Accept wildcard characters: False
118+
```
119+
120+
### -Method
121+
{{ Fill Method Description }}
122+
123+
```yaml
124+
Type: String
125+
Parameter Sets: FindByUri
126+
Aliases:
127+
Accepted values: GET, POST, PUT, PATCH, DELETE
128+
129+
Required: False
130+
Position: Named
131+
Default value: None
132+
Accept pipeline input: False
133+
Accept wildcard characters: False
134+
```
135+
136+
### -Uri
137+
{{ Fill Uri Description }}
138+
139+
```yaml
140+
Type: String[]
141+
Parameter Sets: FindByUri
142+
Aliases:
143+
144+
Required: True
145+
Position: 0
146+
Default value: None
147+
Accept pipeline input: True (ByValue)
148+
Accept wildcard characters: False
149+
```
150+
151+
### CommonParameters
152+
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).
153+
154+
## INPUTS
155+
156+
### System.String[]
157+
158+
### System.Object[]
159+
160+
## OUTPUTS
161+
162+
### Microsoft.Graph.PowerShell.Authentication.Models.IGraphCommand
163+
164+
## NOTES
165+
166+
## RELATED LINKS

0 commit comments

Comments
 (0)