package
0.20240715.1103416
Repository: https://github.com/hashicorp/go-azure-sdk.git
Documentation: pkg.go.dev
# README
github.com/hashicorp/go-azure-sdk/resource-manager/web/2022-09-01/appservicecertificateorders
Documentation
The appservicecertificateorders
SDK allows for interaction with the Azure Resource Manager Service web
(API Version 2022-09-01
).
This readme covers example usages, but further information on using this SDK can be found in the project root.
Import Path
import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2022-09-01/appservicecertificateorders"
Client Initialization
client := appservicecertificateorders.NewAppServiceCertificateOrdersClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: AppServiceCertificateOrdersClient.CreateOrUpdate
ctx := context.TODO()
id := appservicecertificateorders.NewCertificateOrderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "certificateOrderValue")
payload := appservicecertificateorders.AppServiceCertificateOrder{
// ...
}
if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: AppServiceCertificateOrdersClient.CreateOrUpdateCertificate
ctx := context.TODO()
id := appservicecertificateorders.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "certificateOrderValue", "certificateValue")
payload := appservicecertificateorders.AppServiceCertificateResource{
// ...
}
if err := client.CreateOrUpdateCertificateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: AppServiceCertificateOrdersClient.Delete
ctx := context.TODO()
id := appservicecertificateorders.NewCertificateOrderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "certificateOrderValue")
read, err := client.Delete(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: AppServiceCertificateOrdersClient.DeleteCertificate
ctx := context.TODO()
id := appservicecertificateorders.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "certificateOrderValue", "certificateValue")
read, err := client.DeleteCertificate(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: AppServiceCertificateOrdersClient.Get
ctx := context.TODO()
id := appservicecertificateorders.NewCertificateOrderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "certificateOrderValue")
read, err := client.Get(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: AppServiceCertificateOrdersClient.GetCertificate
ctx := context.TODO()
id := appservicecertificateorders.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "certificateOrderValue", "certificateValue")
read, err := client.GetCertificate(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: AppServiceCertificateOrdersClient.List
ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
// alternatively `client.List(ctx, id)` can be used to do batched pagination
items, err := client.ListComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: AppServiceCertificateOrdersClient.ListByResourceGroup
ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")
// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.ListByResourceGroupComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: AppServiceCertificateOrdersClient.ListCertificates
ctx := context.TODO()
id := appservicecertificateorders.NewCertificateOrderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "certificateOrderValue")
// alternatively `client.ListCertificates(ctx, id)` can be used to do batched pagination
items, err := client.ListCertificatesComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: AppServiceCertificateOrdersClient.Reissue
ctx := context.TODO()
id := appservicecertificateorders.NewCertificateOrderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "certificateOrderValue")
payload := appservicecertificateorders.ReissueCertificateOrderRequest{
// ...
}
read, err := client.Reissue(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: AppServiceCertificateOrdersClient.Renew
ctx := context.TODO()
id := appservicecertificateorders.NewCertificateOrderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "certificateOrderValue")
payload := appservicecertificateorders.RenewCertificateOrderRequest{
// ...
}
read, err := client.Renew(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: AppServiceCertificateOrdersClient.ResendEmail
ctx := context.TODO()
id := appservicecertificateorders.NewCertificateOrderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "certificateOrderValue")
read, err := client.ResendEmail(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: AppServiceCertificateOrdersClient.ResendRequestEmails
ctx := context.TODO()
id := appservicecertificateorders.NewCertificateOrderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "certificateOrderValue")
payload := appservicecertificateorders.NameIdentifier{
// ...
}
read, err := client.ResendRequestEmails(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: AppServiceCertificateOrdersClient.RetrieveCertificateActions
ctx := context.TODO()
id := appservicecertificateorders.NewCertificateOrderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "certificateOrderValue")
read, err := client.RetrieveCertificateActions(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: AppServiceCertificateOrdersClient.RetrieveCertificateEmailHistory
ctx := context.TODO()
id := appservicecertificateorders.NewCertificateOrderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "certificateOrderValue")
read, err := client.RetrieveCertificateEmailHistory(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: AppServiceCertificateOrdersClient.RetrieveSiteSeal
ctx := context.TODO()
id := appservicecertificateorders.NewCertificateOrderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "certificateOrderValue")
payload := appservicecertificateorders.SiteSealRequest{
// ...
}
read, err := client.RetrieveSiteSeal(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: AppServiceCertificateOrdersClient.Update
ctx := context.TODO()
id := appservicecertificateorders.NewCertificateOrderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "certificateOrderValue")
payload := appservicecertificateorders.AppServiceCertificateOrderPatchResource{
// ...
}
read, err := client.Update(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: AppServiceCertificateOrdersClient.UpdateCertificate
ctx := context.TODO()
id := appservicecertificateorders.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "certificateOrderValue", "certificateValue")
payload := appservicecertificateorders.AppServiceCertificatePatchResource{
// ...
}
read, err := client.UpdateCertificate(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: AppServiceCertificateOrdersClient.ValidatePurchaseInformation
ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
payload := appservicecertificateorders.AppServiceCertificateOrder{
// ...
}
read, err := client.ValidatePurchaseInformation(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: AppServiceCertificateOrdersClient.VerifyDomainOwnership
ctx := context.TODO()
id := appservicecertificateorders.NewCertificateOrderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "certificateOrderValue")
read, err := client.VerifyDomainOwnership(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
# Functions
No description provided by the author
NewCertificateID returns a new CertificateId struct.
NewCertificateOrderID returns a new CertificateOrderId struct.
ParseCertificateID parses 'input' into a CertificateId.
ParseCertificateIDInsensitively parses 'input' case-insensitively into a CertificateId note: this method should only be used for API response data and not user input.
ParseCertificateOrderID parses 'input' into a CertificateOrderId.
ParseCertificateOrderIDInsensitively parses 'input' case-insensitively into a CertificateOrderId note: this method should only be used for API response data and not user input.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ValidateCertificateID checks that 'input' can be parsed as a Certificate ID.
ValidateCertificateOrderID checks that 'input' can be parsed as a Certificate Order ID.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CertificateId is a struct representing the Resource ID for a Certificate.
No description provided by the author
No description provided by the author
CertificateOrderId is a struct representing the Resource ID for a Certificate Order.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author