This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getApiRelease.go
46 lines (41 loc) · 1.64 KB
/
getApiRelease.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
// *** 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 LookupApiRelease(ctx *pulumi.Context, args *LookupApiReleaseArgs, opts ...pulumi.InvokeOption) (*LookupApiReleaseResult, error) {
var rv LookupApiReleaseResult
err := ctx.Invoke("azure-nextgen:apimanagement/v20180601preview:getApiRelease", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupApiReleaseArgs struct {
// API identifier. Must be unique in the current API Management service instance.
ApiId string `pulumi:"apiId"`
// Release identifier within an API. Must be unique in the current API Management service instance.
ReleaseId string `pulumi:"releaseId"`
// The name of the resource group.
ResourceGroupName string `pulumi:"resourceGroupName"`
// The name of the API Management service.
ServiceName string `pulumi:"serviceName"`
}
// Api Release details.
type LookupApiReleaseResult struct {
// Identifier of the API the release belongs to.
ApiId *string `pulumi:"apiId"`
// The time the API was released. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.
CreatedDateTime string `pulumi:"createdDateTime"`
// Resource ID.
Id string `pulumi:"id"`
// Resource name.
Name string `pulumi:"name"`
// Release Notes
Notes *string `pulumi:"notes"`
// Resource type for API Management resource.
Type string `pulumi:"type"`
// The time the API release was updated.
UpdatedDateTime string `pulumi:"updatedDateTime"`
}