Viewing docs for Google Cloud v9.14.0
published on Tuesday, Mar 3, 2026 by Pulumi
published on Tuesday, Mar 3, 2026 by Pulumi
Viewing docs for Google Cloud v9.14.0
published on Tuesday, Mar 3, 2026 by Pulumi
published on Tuesday, Mar 3, 2026 by Pulumi
Use this data source to get details about a datastore resource.
To get more information about datastore, see:
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const testDs = gcp.vmwareengine.getDatastore({
name: "example-ds",
location: "us-west2",
});
import pulumi
import pulumi_gcp as gcp
test_ds = gcp.vmwareengine.get_datastore(name="example-ds",
location="us-west2")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/vmwareengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vmwareengine.LookupDatastore(ctx, &vmwareengine.LookupDatastoreArgs{
Name: "example-ds",
Location: "us-west2",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var testDs = Gcp.VMwareEngine.GetDatastore.Invoke(new()
{
Name = "example-ds",
Location = "us-west2",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.vmwareengine.VmwareengineFunctions;
import com.pulumi.gcp.vmwareengine.inputs.GetDatastoreArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var testDs = VmwareengineFunctions.getDatastore(GetDatastoreArgs.builder()
.name("example-ds")
.location("us-west2")
.build());
}
}
variables:
testDs:
fn::invoke:
function: gcp:vmwareengine:getDatastore
arguments:
name: example-ds
location: us-west2
Using getDatastore
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDatastore(args: GetDatastoreArgs, opts?: InvokeOptions): Promise<GetDatastoreResult>
function getDatastoreOutput(args: GetDatastoreOutputArgs, opts?: InvokeOptions): Output<GetDatastoreResult>def get_datastore(location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDatastoreResult
def get_datastore_output(location: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDatastoreResult]func LookupDatastore(ctx *Context, args *LookupDatastoreArgs, opts ...InvokeOption) (*LookupDatastoreResult, error)
func LookupDatastoreOutput(ctx *Context, args *LookupDatastoreOutputArgs, opts ...InvokeOption) LookupDatastoreResultOutput> Note: This function is named LookupDatastore in the Go SDK.
public static class GetDatastore
{
public static Task<GetDatastoreResult> InvokeAsync(GetDatastoreArgs args, InvokeOptions? opts = null)
public static Output<GetDatastoreResult> Invoke(GetDatastoreInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDatastoreResult> getDatastore(GetDatastoreArgs args, InvokeOptions options)
public static Output<GetDatastoreResult> getDatastore(GetDatastoreArgs args, InvokeOptions options)
fn::invoke:
function: gcp:vmwareengine/getDatastore:getDatastore
arguments:
# arguments dictionaryThe following arguments are supported:
getDatastore Result
The following output properties are available:
- Clusters List<string>
- Create
Time string - Description string
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Name string
- Nfs
Datastores List<GetDatastore Nfs Datastore> - State string
- Uid string
- Update
Time string - Project string
- Clusters []string
- Create
Time string - Description string
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Name string
- Nfs
Datastores []GetDatastore Nfs Datastore - State string
- Uid string
- Update
Time string - Project string
- clusters List<String>
- create
Time String - description String
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- name String
- nfs
Datastores List<GetDatastore Nfs Datastore> - state String
- uid String
- update
Time String - project String
- clusters string[]
- create
Time string - description string
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- name string
- nfs
Datastores GetDatastore Nfs Datastore[] - state string
- uid string
- update
Time string - project string
- clusters Sequence[str]
- create_
time str - description str
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- name str
- nfs_
datastores Sequence[GetDatastore Nfs Datastore] - state str
- uid str
- update_
time str - project str
- clusters List<String>
- create
Time String - description String
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- name String
- nfs
Datastores List<Property Map> - state String
- uid String
- update
Time String - project String
Supporting Types
GetDatastoreNfsDatastore
- Google
File List<GetServices Datastore Nfs Datastore Google File Service> - Google service file service configuration
- Third
Party List<GetFile Services Datastore Nfs Datastore Third Party File Service> - Third party file service configuration
- Google
File []GetServices Datastore Nfs Datastore Google File Service - Google service file service configuration
- Third
Party []GetFile Services Datastore Nfs Datastore Third Party File Service - Third party file service configuration
- google
File List<GetServices Datastore Nfs Datastore Google File Service> - Google service file service configuration
- third
Party List<GetFile Services Datastore Nfs Datastore Third Party File Service> - Third party file service configuration
- google
File GetServices Datastore Nfs Datastore Google File Service[] - Google service file service configuration
- third
Party GetFile Services Datastore Nfs Datastore Third Party File Service[] - Third party file service configuration
- google_
file_ Sequence[Getservices Datastore Nfs Datastore Google File Service] - Google service file service configuration
- third_
party_ Sequence[Getfile_ services Datastore Nfs Datastore Third Party File Service] - Third party file service configuration
- google
File List<Property Map>Services - Google service file service configuration
- third
Party List<Property Map>File Services - Third party file service configuration
GetDatastoreNfsDatastoreGoogleFileService
- Filestore
Instance string - Google filestore instance resource name e.g. projects/my-project/locations/me-west1-b/instances/my-instance
- Netapp
Volume string - Google netapp volume resource name e.g. projects/my-project/locations/me-west1-b/volumes/my-volume
- Filestore
Instance string - Google filestore instance resource name e.g. projects/my-project/locations/me-west1-b/instances/my-instance
- Netapp
Volume string - Google netapp volume resource name e.g. projects/my-project/locations/me-west1-b/volumes/my-volume
- filestore
Instance String - Google filestore instance resource name e.g. projects/my-project/locations/me-west1-b/instances/my-instance
- netapp
Volume String - Google netapp volume resource name e.g. projects/my-project/locations/me-west1-b/volumes/my-volume
- filestore
Instance string - Google filestore instance resource name e.g. projects/my-project/locations/me-west1-b/instances/my-instance
- netapp
Volume string - Google netapp volume resource name e.g. projects/my-project/locations/me-west1-b/volumes/my-volume
- filestore_
instance str - Google filestore instance resource name e.g. projects/my-project/locations/me-west1-b/instances/my-instance
- netapp_
volume str - Google netapp volume resource name e.g. projects/my-project/locations/me-west1-b/volumes/my-volume
- filestore
Instance String - Google filestore instance resource name e.g. projects/my-project/locations/me-west1-b/instances/my-instance
- netapp
Volume String - Google netapp volume resource name e.g. projects/my-project/locations/me-west1-b/volumes/my-volume
GetDatastoreNfsDatastoreThirdPartyFileService
- string
- Required Mount Folder name
- Network string
- Required to identify vpc peering used for NFS access network name of NFS's vpc e.g. projects/project-id/global/networks/my-network_id
- Servers List<string>
- Server IP addresses of the NFS file service. NFS v3, provide a single IP address or DNS name. Multiple servers can be supported in future when NFS 4.1 protocol support is enabled.
- string
- Required Mount Folder name
- Network string
- Required to identify vpc peering used for NFS access network name of NFS's vpc e.g. projects/project-id/global/networks/my-network_id
- Servers []string
- Server IP addresses of the NFS file service. NFS v3, provide a single IP address or DNS name. Multiple servers can be supported in future when NFS 4.1 protocol support is enabled.
- String
- Required Mount Folder name
- network String
- Required to identify vpc peering used for NFS access network name of NFS's vpc e.g. projects/project-id/global/networks/my-network_id
- servers List<String>
- Server IP addresses of the NFS file service. NFS v3, provide a single IP address or DNS name. Multiple servers can be supported in future when NFS 4.1 protocol support is enabled.
- string
- Required Mount Folder name
- network string
- Required to identify vpc peering used for NFS access network name of NFS's vpc e.g. projects/project-id/global/networks/my-network_id
- servers string[]
- Server IP addresses of the NFS file service. NFS v3, provide a single IP address or DNS name. Multiple servers can be supported in future when NFS 4.1 protocol support is enabled.
- str
- Required Mount Folder name
- network str
- Required to identify vpc peering used for NFS access network name of NFS's vpc e.g. projects/project-id/global/networks/my-network_id
- servers Sequence[str]
- Server IP addresses of the NFS file service. NFS v3, provide a single IP address or DNS name. Multiple servers can be supported in future when NFS 4.1 protocol support is enabled.
- String
- Required Mount Folder name
- network String
- Required to identify vpc peering used for NFS access network name of NFS's vpc e.g. projects/project-id/global/networks/my-network_id
- servers List<String>
- Server IP addresses of the NFS file service. NFS v3, provide a single IP address or DNS name. Multiple servers can be supported in future when NFS 4.1 protocol support is enabled.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.
Viewing docs for Google Cloud v9.14.0
published on Tuesday, Mar 3, 2026 by Pulumi
published on Tuesday, Mar 3, 2026 by Pulumi
