An open API service indexing awesome lists of open source software.

https://github.com/hashicorp/terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://github.com/hashicorp/terraform-provider-azurerm

azure azure-resource-manager terraform terraform-provider

Last synced: about 1 month ago
JSON representation

Terraform provider for Azure Resource Manager

Awesome Lists containing this project

README

          

## `github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas` Documentation

The `vminstancehybrididentitymetadatas` SDK allows for interaction with Azure Resource Manager `systemcentervirtualmachinemanager` (API Version `2023-10-07`).

This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs).

### Import Path

```go
import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas"
```

### Client Initialization

```go
client := vminstancehybrididentitymetadatas.NewVMInstanceHybridIdentityMetadatasClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
```

### Example Usage: `VMInstanceHybridIdentityMetadatasClient.Get`

```go
ctx := context.TODO()
id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

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: `VMInstanceHybridIdentityMetadatasClient.ListByVirtualMachineInstance`

```go
ctx := context.TODO()
id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

// alternatively `client.ListByVirtualMachineInstance(ctx, id)` can be used to do batched pagination
items, err := client.ListByVirtualMachineInstanceComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
```