Invokes the AT Protocol
Invokes the RESTful methods of the At Protocol.
The URI being invoked. If this is empty, a -NamespaceID is required.
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[Uri] |
false | 1 | true (ByPropertyName) | Url |
The HTTP Method.
Valid Values:
- GET
- DELETE
- HEAD
- MERGE
- OPTIONS
- PATCH
- POST
- PUT
- TRACE
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | 2 | true (ByPropertyName) |
The Namespace ID.
In the AT Protocol, every request has a NamespaceID.
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | 3 | true (ByPropertyName) |
Any parameters to the request. If the HTTP Method is get, these will become QueryParameters Otherwise, they will become -BodyParameters.
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[PSObject] |
false | 4 | true (ByPropertyName) | Parameters |
One or more query parameters.
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[PSObject] |
false | 5 | true (ByPropertyName) | QueryParameters Query |
One or more body parameters.
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[PSObject] |
false | 6 | true (ByPropertyName) | BodyParameters Body |
The authorization. This can be a JWT that accesses the protocol. It can also be a credential. The username is a handle or email. The password is the app password.
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[PSObject] |
false | 7 | true (ByPropertyName) | Authentication AppPassword |
The content type of the request.
If not provided, this will be assumed to be application/json.
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | 8 | true (ByPropertyName) |
Aliases for parameters. If these parameters are found, they will be called using their alias instead.
Type | Required | Position | PipelineInput |
---|---|---|---|
[PSObject] |
false | 9 | true (ByPropertyName) |
The typename of the results.
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[String[]] |
false | 10 | true (ByPropertyName) | Decorate Decoration TypeName |
A set of additional properties to add to an object
Type | Required | Position | PipelineInput |
---|---|---|---|
[IDictionary] |
false | 11 | true (ByPropertyName) |
A list of property names to remove from an object.
Type | Required | Position | PipelineInput |
---|---|---|---|
[String[]] |
false | 12 | true (ByPropertyName) |
If provided, will expand a given property returned from the REST api.
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | 13 | true (ByPropertyName) |
If provided, will decorate the values within a property in the return object. This allows nested REST properties to work with the PowerShell Extended Type System.
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[IDictionary] |
false | 14 | true (ByPropertyName) | TypeNameOfProperty |
If set, will receive results as a byte array.
Type | Required | Position | PipelineInput |
---|---|---|---|
[Switch] |
false | named | true (ByPropertyName) |
If set, will cache results from a request. Only HTTP GET results will be cached.
Type | Required | Position | PipelineInput |
---|---|---|---|
[Switch] |
false | named | true (ByPropertyName) |
If set, will return raw results. This will ignore -Property, -DecorateProperty, -ExpandProperty, and -PSTypeName.
Type | Required | Position | PipelineInput |
---|---|---|---|
[Switch] |
false | named | true (ByPropertyName) |
-WhatIf is an automatic variable that is created when a command has [CmdletBinding(SupportsShouldProcess)]
.
-WhatIf is used to see what would happen, or return operations without executing them
-Confirm is an automatic variable that is created when a command has [CmdletBinding(SupportsShouldProcess)]
.
-Confirm is used to -Confirm each operation.
If you pass -Confirm:$false
you will not be prompted.
If the command sets a [ConfirmImpact("Medium")]
which is lower than $confirmImpactPreference
, you will not be prompted unless -Confirm is passed.
Invoke-AtProto [[-Uri] <Uri>] [[-Method] <String>] [[-NamespaceID] <String>] [[-Parameter] <PSObject>] [[-QueryParameter] <PSObject>] [[-BodyParameter] <PSObject>] [[-Authorization] <PSObject>] [[-ContentType] <String>] [[-ParameterAlias] <PSObject>] [[-PSTypeName] <String[]>] [[-Property] <IDictionary>] [[-RemoveProperty] <String[]>] [[-ExpandProperty] <String>] [[-DecorateProperty] <IDictionary>] [-AsByte] [-Cache] [-Raw] [-WhatIf] [-Confirm] [<CommonParameters>]