CA set version

New-METSCASetVersion

Synopsis

Create a version.

Syntax

name-body (Default)

New-METSCASetVersion -CASetName <String> -Body <Object> [-EdgeRCFile <String>] [-Section <String>]
 [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

name-dir

New-METSCASetVersion -CASetName <String> -CertificatesDirectory <String> [-Comments <String>]
 [-AllowInsecureSha1] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>]
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

name-file

New-METSCASetVersion -CASetName <String> -CertificatesFile <String> [-Comments <String>] [-AllowInsecureSha1]
 [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

id-body

New-METSCASetVersion -CASetID <Int32> -Body <Object> [-EdgeRCFile <String>] [-Section <String>]
 [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

id-dir

New-METSCASetVersion -CASetID <Int32> -CertificatesDirectory <String> [-Comments <String>] [-AllowInsecureSha1]
 [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

id-file

New-METSCASetVersion -CASetID <Int32> -CertificatesFile <String> [-Comments <String>] [-AllowInsecureSha1]
 [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

Description

Creates a new CA set version in the CA set specified by either the CASetName or CASetID.

You can provide the certificates for your new version either as a PSCustomObject or a single file containing 1 or more base-64-encoded certificates, or point to a directory containing 1 or more certificate files. You can also add Comments and allow SHA1 signatures with -AllowInsecureSha1.

Parameters

-AccountSwitchKey

Account switch key, for use when you have access to multiple accounts and need to specify which one to use. Account switch keys can be found using Get-AccountSwitchKey.

Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-AllowInsecureSha1

By default, the version's certificates need a signature algorithm of SHA-256 or better. Enabling this allows certificates with SHA-1 signatures.

Type: SwitchParameter
Parameter Sets: name-dir, name-file, id-dir, id-file
Aliases: None
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Body

Request body, either as a PSCustomObject or string. This parameter supports pipelining.

Type: Object
Parameter Sets: name-body, id-body
Aliases: None
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-CASetID

ID of the CA set. You typically require this or the CASetName.

Type: Int32
Parameter Sets: id-body, id-dir, id-file
Aliases: None
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-CASetName

Name of the CA set. You typically require this or the CASetID.

Type: String
Parameter Sets: name-body, name-dir, name-file
Aliases: None
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-CertificatesDirectory

Folder to read individual certificates from. Files should contain base64-encoded certificates.

Type: String
Parameter Sets: name-dir, id-dir
Aliases: None
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-CertificatesFile

File containing one or more base64-encoded certificates.

Type: String
Parameter Sets: name-file, id-file
Aliases: None
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Comments

Any additional comments you can provide while creating or updating the CA set version.

Type: String
Parameter Sets: name-dir, name-file, id-dir, id-file
Aliases: None
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-EdgeRCFile

EdgeRC file to authenticate your command. Defaults to ~/.edgerc.

Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Section

EdgeRC section to retrieve authentication credentials from. Defaults to default.

Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

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

Inputs

System.Object

Outputs

System.Object

Related links