CertificatesInner.create Method

Definition

Overloads

create(String resourceGroupName, String accountName, String certificateName, CertificateCreateOrUpdateParameters parameters)

Creates a new certificate inside the specified account.

create(String resourceGroupName, String accountName, String certificateName, CertificateCreateOrUpdateParameters parameters, String ifMatch, String ifNoneMatch)

Creates a new certificate inside the specified account.

create(String resourceGroupName, String accountName, String certificateName, CertificateCreateOrUpdateParameters parameters)

Creates a new certificate inside the specified account.

public CertificateInner create(String resourceGroupName, String accountName, String certificateName, CertificateCreateOrUpdateParameters parameters)

Parameters

resourceGroupName
String

The name of the resource group that contains the Batch account.

accountName
String

The name of the Batch account.

certificateName
String

The identifier for the certificate. This must be made up of algorithm and thumbprint separated by a dash, and must match the certificate data in the request. For example SHA1-a3d1c5.

parameters
CertificateCreateOrUpdateParameters

Additional parameters for certificate creation.

Returns

the CertificateInner object if successful.

Exceptions

IllegalArgumentException

thrown if parameters fail the validation

CloudException

thrown if the request is rejected by server

RuntimeException

all other wrapped checked exceptions if the request fails to be sent

create(String resourceGroupName, String accountName, String certificateName, CertificateCreateOrUpdateParameters parameters, String ifMatch, String ifNoneMatch)

Creates a new certificate inside the specified account.

public CertificateInner create(String resourceGroupName, String accountName, String certificateName, CertificateCreateOrUpdateParameters parameters, String ifMatch, String ifNoneMatch)

Parameters

resourceGroupName
String

The name of the resource group that contains the Batch account.

accountName
String

The name of the Batch account.

certificateName
String

The identifier for the certificate. This must be made up of algorithm and thumbprint separated by a dash, and must match the certificate data in the request. For example SHA1-a3d1c5.

parameters
CertificateCreateOrUpdateParameters

Additional parameters for certificate creation.

ifMatch
String

The entity state (ETag) version of the certificate to update. A value of "*" can be used to apply the operation only if the certificate already exists. If omitted, this operation will always be applied.

ifNoneMatch
String

Set to '*' to allow a new certificate to be created, but to prevent updating an existing certificate. Other values will be ignored.

Returns

the CertificateInner object if successful.

Exceptions

IllegalArgumentException

thrown if parameters fail the validation

CloudException

thrown if the request is rejected by server

RuntimeException

all other wrapped checked exceptions if the request fails to be sent

Applies to