For the complete documentation index, see llms.txt. This page is also available as Markdown.

New-PSUEndpointDocumentation

Creates a new endpoint documentation definition.

SYNOPSIS

Creates a new endpoint documentation definition.

SYNTAX

New-PSUEndpointDocumentation -Name <String> [-Description <String>] [-Authentication] [-Role <String[]>]
 [-Definition <ScriptBlock>] -Url <String> [-ContactName <String>] [-ContactEmail <String>]
 [-ContactUrl <String>] [-Version <String>] [-LicenseUrl <String>] [-LicenseName <String>]
 [-TermsOfServiceUrl <String>] [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>]
 [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
 [<CommonParameters>]

DESCRIPTION

Creates a new endpoint documentation definition.

EXAMPLES

Example 1

PS C:\> New-PSUEndpointDocumentation -Name 'PSUHelp' -Url '/psuhelp'

Creates a help definition at /psuhelp.

PARAMETERS

-AppToken

An app token to access the UA API.

-Authentication

Whether authentication is required to access this documentation definition.

-ComputerName

The HTTP address of the UA REST API server.

-Definition

Classes defined for input and out types for this endpoint documentation.

-Description

A description of the documentation.

-Integrated

Executes the command internally rather than using the Management API. Only works when running script from within PowerShell Universal.

-Name

Name of this documentation definition.

-Role

Roles allowed to view this documentation.

-Url

The URL used to access this documetation.

-UseDefaultCredentials

Use default credentials when connecting to the management API

-Credential

Credentials to login to the PowerShell Universal Management API.

-TrustCertificate

Whether the cmdlet should ignore certificate issues.

-ContactEmail

Specifies the contact email address shown in the API documentation.

-ContactName

Specifies the contact name shown in the API documentation.

-ContactUrl

Specifies the URL for the API contact information.

-LicenseName

Specifies the license name shown in the API documentation.

-LicenseUrl

Specifies the license URL shown in the API documentation.

-TermsOfServiceUrl

Specifies the URL of the terms of service document.

-Version

Specifies the version value for the resource.

-Cookies

Reuses and persists authentication cookies for the current PowerShell session.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Object

NOTES

Last updated

Was this helpful?