This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
getWorkspace.go
60 lines (55 loc) · 2.53 KB
/
getWorkspace.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
51
52
53
54
55
56
57
58
59
60
// *** 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 latest
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupWorkspace(ctx *pulumi.Context, args *LookupWorkspaceArgs, opts ...pulumi.InvokeOption) (*LookupWorkspaceResult, error) {
var rv LookupWorkspaceResult
err := ctx.Invoke("azure-nextgen:databricks/latest:getWorkspace", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupWorkspaceArgs struct {
// The name of the resource group. The name is case insensitive.
ResourceGroupName string `pulumi:"resourceGroupName"`
// The name of the workspace.
WorkspaceName string `pulumi:"workspaceName"`
}
// Information about workspace.
type LookupWorkspaceResult struct {
// The workspace provider authorizations.
Authorizations []WorkspaceProviderAuthorizationResponse `pulumi:"authorizations"`
// Indicates the Object ID, PUID and Application ID of entity that created the workspace.
CreatedBy *CreatedByResponse `pulumi:"createdBy"`
// Specifies the date and time when the workspace is created.
CreatedDateTime string `pulumi:"createdDateTime"`
// The geo-location where the resource lives
Location string `pulumi:"location"`
// The managed resource group Id.
ManagedResourceGroupId string `pulumi:"managedResourceGroupId"`
// The name of the resource
Name string `pulumi:"name"`
// The workspace's custom parameters.
Parameters *WorkspaceCustomParametersResponse `pulumi:"parameters"`
// The workspace provisioning state.
ProvisioningState string `pulumi:"provisioningState"`
// The SKU of the resource.
Sku *SkuResponse `pulumi:"sku"`
// The details of Managed Identity of Storage Account
StorageAccountIdentity *ManagedIdentityConfigurationResponse `pulumi:"storageAccountIdentity"`
// Resource tags.
Tags map[string]string `pulumi:"tags"`
// The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
Type string `pulumi:"type"`
// The blob URI where the UI definition file is located.
UiDefinitionUri *string `pulumi:"uiDefinitionUri"`
// Indicates the Object ID, PUID and Application ID of entity that last updated the workspace.
UpdatedBy *CreatedByResponse `pulumi:"updatedBy"`
// The unique identifier of the databricks workspace in databricks control plane.
WorkspaceId string `pulumi:"workspaceId"`
// The workspace URL which is of the format 'adb-{workspaceId}.{random}.azuredatabricks.net'
WorkspaceUrl string `pulumi:"workspaceUrl"`
}