Commands
Cayosoft Graph Module provides several core commands, which allow you to enumerate, create, update and delete any object or resource, accessible through Microsoft Graph API. For the full list of such resources, visit Microsoft Graph documentation.
Get-CGraphResource
Enumerates objects or resources with their properties, or returns properties of a single object. A filter can be applied to only return objects satisfying a certain condition. Related objects or resources can also be enumerated, following the relationship property. Also supports other query parameters, as described below.
New-CGraphResource
Create a new object or new instance of a resource.
Set-CGraphResource
Update properties for an existing object or resource.
Remove-CGraphResource
Delete an object or an instance of a resource.
Tip: There is a shorter alias for each command, which you can use to call the command: Get-CGraph is an alias to the Get-CGraphResource command. New-CGraph - an alias to New-CGraphResource. And so on.
Common parameters
Each command accepts the following common set of parameters:
[-ResourceType] <type>
Specifies the type of object or resource you want to address, like "users", "groups" and so on.
This parameter supports auto-discovery with TAB, so you can cycle through all available types by pressing TAB on the keyboard.
-Id <object identifier>
Specifies the object ID, or UPN, or other identifier supported by the system.
Alias: -Identifier
-Parent <string>
Specifies the parent object or resource for the target object, identified with -Id parameter.
-Beta
Configures command to call beta endpoint, instead of v1.0. For details, see the Version section in the Use the API article in the Microsoft Graph documentation.
Comments
0 comments
Please sign in to leave a comment.