This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getPeering.go
50 lines (45 loc) · 1.7 KB
/
getPeering.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
43
44
45
46
47
48
49
50
// *** 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 v20201001
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupPeering(ctx *pulumi.Context, args *LookupPeeringArgs, opts ...pulumi.InvokeOption) (*LookupPeeringResult, error) {
var rv LookupPeeringResult
err := ctx.Invoke("azure-nextgen:peering/v20201001:getPeering", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupPeeringArgs struct {
// The name of the peering.
PeeringName string `pulumi:"peeringName"`
// The name of the resource group.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// Peering is a logical representation of a set of connections to the Microsoft Cloud Edge at a location.
type LookupPeeringResult struct {
// The properties that define a direct peering.
Direct *PeeringPropertiesDirectResponse `pulumi:"direct"`
// The properties that define an exchange peering.
Exchange *PeeringPropertiesExchangeResponse `pulumi:"exchange"`
// The ID of the resource.
Id string `pulumi:"id"`
// The kind of the peering.
Kind string `pulumi:"kind"`
// The location of the resource.
Location string `pulumi:"location"`
// The name of the resource.
Name string `pulumi:"name"`
// The location of the peering.
PeeringLocation *string `pulumi:"peeringLocation"`
// The provisioning state of the resource.
ProvisioningState string `pulumi:"provisioningState"`
// The SKU that defines the tier and kind of the peering.
Sku PeeringSkuResponse `pulumi:"sku"`
// The resource tags.
Tags map[string]string `pulumi:"tags"`
// The type of the resource.
Type string `pulumi:"type"`
}