-
Notifications
You must be signed in to change notification settings - Fork 0
Add PodeEndpoint
external help file: Pode-help.xml Module Name: Pode online version: PodeType: Endpoint schema: 2.0.0
Bind an endpoint to listen for incoming Requests.
Add-PodeEndpoint [-Address <String>] [-Port <Int32>] [-Hostname <String>] [-Protocol <String>] [-Name <String>]
[-RedirectTo <String>] [-Description <String>] [-Acknowledge <String>] [-SslProtocol <String[]>]
[-CRLFMessageEnd] [-Force] [-AllowClientCertificate] [-PassThru] [-LookupHostname] [-DualMode] [-Default]
[-Favicon <Byte[]>] [-DefaultFavicon] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Add-PodeEndpoint [-Address <String>] [-Port <Int32>] [-Hostname <String>] [-Protocol <String>]
-Certificate <String> [-CertificatePassword <Object>] [-CertificateKey <String>] [-TlsMode <String>]
[-Name <String>] [-RedirectTo <String>] [-Description <String>] [-Acknowledge <String>]
[-SslProtocol <String[]>] [-CRLFMessageEnd] [-Force] [-AllowClientCertificate] [-PassThru] [-LookupHostname]
[-DualMode] [-Default] [-Favicon <Byte[]>] [-DefaultFavicon] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Add-PodeEndpoint [-Address <String>] [-Port <Int32>] [-Hostname <String>] [-Protocol <String>]
-CertificateThumbprint <String> [-CertificateStoreName <StoreName>]
[-CertificateStoreLocation <StoreLocation>] [-TlsMode <String>] [-Name <String>] [-RedirectTo <String>]
[-Description <String>] [-Acknowledge <String>] [-SslProtocol <String[]>] [-CRLFMessageEnd] [-Force]
[-AllowClientCertificate] [-PassThru] [-LookupHostname] [-DualMode] [-Default] [-Favicon <Byte[]>]
[-DefaultFavicon] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Add-PodeEndpoint [-Address <String>] [-Port <Int32>] [-Hostname <String>] [-Protocol <String>]
-CertificateName <String> [-CertificateStoreName <StoreName>] [-CertificateStoreLocation <StoreLocation>]
[-TlsMode <String>] [-Name <String>] [-RedirectTo <String>] [-Description <String>] [-Acknowledge <String>]
[-SslProtocol <String[]>] [-CRLFMessageEnd] [-Force] [-AllowClientCertificate] [-PassThru] [-LookupHostname]
[-DualMode] [-Default] [-Favicon <Byte[]>] [-DefaultFavicon] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Add-PodeEndpoint [-Address <String>] [-Port <Int32>] [-Hostname <String>] [-Protocol <String>]
-X509Certificate <X509Certificate> [-TlsMode <String>] [-Name <String>] [-RedirectTo <String>]
[-Description <String>] [-Acknowledge <String>] [-SslProtocol <String[]>] [-CRLFMessageEnd] [-Force]
[-AllowClientCertificate] [-PassThru] [-LookupHostname] [-DualMode] [-Default] [-Favicon <Byte[]>]
[-DefaultFavicon] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Add-PodeEndpoint [-Address <String>] [-Port <Int32>] [-Hostname <String>] [-Protocol <String>]
[-TlsMode <String>] [-Name <String>] [-RedirectTo <String>] [-Description <String>] [-Acknowledge <String>]
[-SslProtocol <String[]>] [-CRLFMessageEnd] [-Force] [-SelfSigned] [-AllowClientCertificate] [-PassThru]
[-LookupHostname] [-DualMode] [-Default] [-Favicon <Byte[]>] [-DefaultFavicon]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Bind an endpoint to listen for incoming Requests. The endpoints can be HTTP, HTTPS, TCP or SMTP, with the option to bind certificates.
Add-PodeEndpoint -Address localhost -Port 8090 -Protocol Http
Add-PodeEndpoint -Address localhost -Protocol Smtp
Add-PodeEndpoint -Address dev.pode.com -Port 8443 -Protocol Https -SelfSigned
Add-PodeEndpoint -Address 127.0.0.2 -Hostname dev.pode.com -Port 8443 -Protocol Https -SelfSigned
Add-PodeEndpoint -Address live.pode.com -Protocol Https -CertificateThumbprint '2A9467F7D3940243D6C07DE61E7FCCE292'
An optional Acknowledge message to send to clients when they first connect, for TCP and SMTP endpoints only.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The IP/Hostname of the endpoint (Default: localhost).
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: Localhost
Accept pipeline input: False
Accept wildcard characters: False
Allow for client certificates to be sent on requests.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
The path to a certificate that can be used to enable HTTPS.
Type: String
Parameter Sets: CertFile
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
A key file to be paired with a PEM certificate file referenced in Certificate.
Type: String
Parameter Sets: CertFile
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
A certificate subject name to bind onto HTTPS endpoints (Windows).
Type: String
Parameter Sets: CertName
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The password for the certificate file referenced in Certificate.
Type: Object
Parameter Sets: CertFile
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The location of a certificate store where a certificate can be found (Default: CurrentUser) (Windows).
Type: StoreLocation
Parameter Sets: CertThumb, CertName
Aliases:
Accepted values: CurrentUser, LocalMachine
Required: False
Position: Named
Default value: CurrentUser
Accept pipeline input: False
Accept wildcard characters: False
The name of a certificate store where a certificate can be found (Default: My) (Windows).
Type: StoreName
Parameter Sets: CertThumb, CertName
Aliases:
Accepted values: AddressBook, AuthRoot, CertificateAuthority, Disallowed, My, Root, TrustedPeople, TrustedPublisher
Required: False
Position: Named
Default value: My
Accept pipeline input: False
Accept wildcard characters: False
A certificate thumbprint to bind onto HTTPS endpoints (Windows).
Type: String
Parameter Sets: CertThumb
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
If supplied, TCP endpoints will expect incoming data to end with CRLF.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
If supplied, this endpoint will be the default one used for internally generating URLs.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
If supplied, enable the default Pode favicon for HTTP/HTTPS endpoints.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
A quick description of the Endpoint - normally used in OpenAPI.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
If supplied, this endpoint will listen on both the IPv4 and IPv6 versions of the supplied -Address. For IPv6, this will only work if the IPv6 address can convert to a valid IPv4 address.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
A byte array representing a custom favicon for HTTP/HTTPS endpoints.
Type: Byte[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Ignore Administrator checks for non-localhost endpoints.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
An optional hostname for the endpoint, specifying a hostname restricts access to just the hostname.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
If supplied, a supplied Hostname will have its IP Address looked up from host file or DNS.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
An optional name for the endpoint, that can be used with other functions (Default: GUID).
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
If supplied, the endpoint created will be returned.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
The Port number of the endpoint.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The protocol of the supplied endpoint.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The Name of another Endpoint to automatically generate a redirect route for all traffic.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Create and bind a self-signed certificate for HTTPS endpoints.
Type: SwitchParameter
Parameter Sets: CertSelf
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
One or more optional SSL Protocols this endpoints supports. (Default: what the OS support by default).
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The TLS mode to use on secure connections, options are Implicit or Explicit (SMTP only) (Default: Implicit).
Type: String
Parameter Sets: CertFile, CertThumb, CertName, CertRaw, CertSelf
Aliases:
Required: False
Position: Named
Default value: Implicit
Accept pipeline input: False
Accept wildcard characters: False
The raw X509 certificate that can be used to enable HTTPS.
Type: X509Certificate
Parameter Sets: CertRaw
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
sss
x