Click or drag to resize
IAuthenticationProviderGetEndpoint Method
Gets the endpoints for the specified service.

Uses a region specific endpoint if available, otherwise returns the global endpoint.

Namespace: OpenStack.Authentication
Assembly: openstacknet (in openstacknet.dll) Version: 1.7.7+Branch.master.Sha.25d803f397c8693c2c13777ef6675f796f520f2c
Syntax
Task<string> GetEndpoint(
	IServiceType serviceType,
	string region,
	bool useInternalUrl,
	CancellationToken cancellationToken
)

Parameters

serviceType
Type: OpenStack.AuthenticationIServiceType
Type of the service.
region
Type: SystemString
The region.
useInternalUrl
Type: SystemBoolean
if set to true [use internal URL].
cancellationToken
Type: System.ThreadingCancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Return Value

Type: TaskString
The requested endpoint.
Exceptions
ExceptionCondition
UserAuthenticationException The user does not have access to the service or it does not exist. or The user does not have access to the service endpoint in the specified region.
RegionRequiredExceptionNo region was specified and the {0} service does not provide a region-independent endpoint.
Version Information

.NET Framework

Supported in: 4.5

openstack.net

Supported in: 1.6, 1.5
See Also