CertificateClient.SetContacts Method

Definition

Sets the certificate CertificateContacts for the key vault, replacing any existing contacts. This operation requires the certificates/managecontacts permission.

public virtual Azure.Response<System.Collections.Generic.IList<Azure.Security.KeyVault.Certificates.CertificateContact>> SetContacts (System.Collections.Generic.IEnumerable<Azure.Security.KeyVault.Certificates.CertificateContact> contacts, System.Threading.CancellationToken cancellationToken = default);
abstract member SetContacts : seq<Azure.Security.KeyVault.Certificates.CertificateContact> * System.Threading.CancellationToken -> Azure.Response<System.Collections.Generic.IList<Azure.Security.KeyVault.Certificates.CertificateContact>>
override this.SetContacts : seq<Azure.Security.KeyVault.Certificates.CertificateContact> * System.Threading.CancellationToken -> Azure.Response<System.Collections.Generic.IList<Azure.Security.KeyVault.Certificates.CertificateContact>>
Public Overridable Function SetContacts (contacts As IEnumerable(Of CertificateContact), Optional cancellationToken As CancellationToken = Nothing) As Response(Of IList(Of CertificateContact))

Parameters

contacts
IEnumerable<CertificateContact>

The certificate contacts for the vault.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

The updated certificate contacts of the vault.

Exceptions

contacts is null.

Applies to