Modifier

Partager via


Get-NetworkControllerDeploymentInfo

Queries the Network Controller for REST information.

Syntax

Get-NetworkControllerDeploymentInfo
   [-NetworkController] <String>
   [[-Credential] <PSCredential>]
   [[-RestURI] <String>]
   [[-CertificateThumbprint] <String>]
   [<CommonParameters>]

Description

The Get-NetworkControllerDeploymentInfo cmdlet queries the Network Controller for Representational State Transfer (REST) information, such the REST URI and the REST Certificate.

You can run this cmdlet from a computer that has Layer-3 connectivity to the Network Controller.

Examples

Example 1: Get configuration state for all REST resources for a Network Controller

PS C:\>$Credential = Get-Credential
PS C:\> Get-NetworkControllerDeploymentInfo -NetworkController "NC-0.contoso.cloud.com" -Credential $Credential

The first command creates credentials by using the Get-Credential cmdlet, and then stores it in the $Credential variable. The command prompts you for user name and password.

The second command gets configuration state for all REST resources for a Network Controller.

Parameters

-CertificateThumbprint

Specifies certificate thumbprint to use for the Network Controller. Specify this parameter for certificate deployment.

Type:String
Position:3
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Credential

Specifies a credential to use for the Network Controller. Specify this parameter for Kerberos deployment.

Type:PSCredential
Position:1
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-NetworkController

Specifies the name or IP address of a Network Controller node.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-RestURI

Specifies the URI to use for Network Controller REST APIs. Specify this parameter for wildcard certificate deployment.

Type:String
Position:2
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Object