Set-VCFCertificate¶
Synopsis¶
Install certificate(s) for the selected resource(s) in a workload domain.
Syntax¶
Set-VCFCertificate [-json] <String> [-domainName] <String> [<CommonParameters>]
Description¶
The Set-VCFCertificate
cmdlet installs certificate(s) for the selected resource(s) in a workload domain.
Examples¶
Example 1¶
Set-VCFCertificate -domainName MGMT -json (Get-Content -Raw .\samples\certificates\updateCertificateSpec.json)
This example shows how to install the certificate(s) for the resources within the domain called MGMT based on the entries within the JSON specification file.
Sample JSON: Install Certificates
{
"operationType": "INSTALL",
"resources": [
{
"fqdn": "sfo-w01-vc01.sfo.rainpole.io",
"name": "sfo-w01-vc01",
"resourceId": "56ec85d5-7276-4f81-ab93-bb3ce90e46a8",
"type": "VCENTER"
},
{
"fqdn": "sfo-w01-nsx01.sfo.rainpole.io",
"name": "sfo-w01-nsx01",
"resourceId": "05efb755-6107-4bc2-bd3f-6d59a5c47ee2",
"sans": [
"sfo-w01-nsx01a.sfo.rainpole.io",
"sfo-w01-nsx01b.sfo.rainpole.io",
"sfo-w01-nsx01c.sfo.rainpole.io",
"sfo-w01-nsx01.sfo.rainpole.io"
],
"type": "NSXT_MANAGER"
}
]
}
Parameters¶
-json¶
Specifies the JSON specification to be used.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-domainName¶
Specifies the name of the workload domain.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Common Parameters¶
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.