This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getVirtualNetworkRule.go
42 lines (37 loc) · 1.82 KB
/
getVirtualNetworkRule.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v20180601preview
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupVirtualNetworkRule(ctx *pulumi.Context, args *LookupVirtualNetworkRuleArgs, opts ...pulumi.InvokeOption) (*LookupVirtualNetworkRuleResult, error) {
var rv LookupVirtualNetworkRuleResult
err := ctx.Invoke("azure-nextgen:dbformariadb/v20180601preview:getVirtualNetworkRule", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupVirtualNetworkRuleArgs struct {
// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
ResourceGroupName string `pulumi:"resourceGroupName"`
// The name of the server.
ServerName string `pulumi:"serverName"`
// The name of the virtual network rule.
VirtualNetworkRuleName string `pulumi:"virtualNetworkRuleName"`
}
// A virtual network rule.
type LookupVirtualNetworkRuleResult struct {
// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Id string `pulumi:"id"`
// Create firewall rule before the virtual network has vnet service endpoint enabled.
IgnoreMissingVnetServiceEndpoint *bool `pulumi:"ignoreMissingVnetServiceEndpoint"`
// The name of the resource
Name string `pulumi:"name"`
// Virtual Network Rule State
State string `pulumi:"state"`
// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type string `pulumi:"type"`
// The ARM resource id of the virtual network subnet.
VirtualNetworkSubnetId string `pulumi:"virtualNetworkSubnetId"`
}