Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
oci.Ocvp.getDatastore
Start a Neo task
Explain and create an oci.Ocvp.getDatastore resource
This data source provides details about a specific Datastore resource in Oracle Cloud Infrastructure Oracle Cloud VMware Solution service.
Get the specified Datastore’s information.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDatastore = oci.Ocvp.getDatastore({
datastoreId: testDatastoreOciOcvpDatastore.id,
});
import pulumi
import pulumi_oci as oci
test_datastore = oci.Ocvp.get_datastore(datastore_id=test_datastore_oci_ocvp_datastore["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/ocvp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ocvp.GetDatastore(ctx, &ocvp.GetDatastoreArgs{
DatastoreId: testDatastoreOciOcvpDatastore.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testDatastore = Oci.Ocvp.GetDatastore.Invoke(new()
{
DatastoreId = testDatastoreOciOcvpDatastore.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Ocvp.OcvpFunctions;
import com.pulumi.oci.Ocvp.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 testDatastore = OcvpFunctions.getDatastore(GetDatastoreArgs.builder()
.datastoreId(testDatastoreOciOcvpDatastore.id())
.build());
}
}
variables:
testDatastore:
fn::invoke:
function: oci:Ocvp:getDatastore
arguments:
datastoreId: ${testDatastoreOciOcvpDatastore.id}
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(datastore_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDatastoreResult
def get_datastore_output(datastore_id: 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: oci:Ocvp/getDatastore:getDatastore
arguments:
# arguments dictionaryThe following arguments are supported:
- Datastore
Id string - The OCID of the Datastore.
- Datastore
Id string - The OCID of the Datastore.
- datastore
Id String - The OCID of the Datastore.
- datastore
Id string - The OCID of the Datastore.
- datastore_
id str - The OCID of the Datastore.
- datastore
Id String - The OCID of the Datastore.
getDatastore Result
The following output properties are available:
- Availability
Domain string - The availability domain of the Datastore.
- Block
Volume List<GetDetails Datastore Block Volume Detail> - The list of Block Volume details that belong to the datastore.
- Block
Volume List<string>Ids - The List of Block volume OCIDs that belong to the Datastore.
- Capacity
In doubleGbs - Total size of the datastore in GB.
- Cluster
Id string - The OCID of the VMware Cluster that Datastore is attached to.
- Compartment
Id string - The OCID of the compartment that contains the Datastore.
- Datastore
Id string - Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - Display
Name string - A descriptive name for the Datastore. It must be unique within a SDDC, start with a letter, and contain only letters, digits, whitespaces, dashes and underscores. Avoid entering confidential information.
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - Id string
- The OCID of the Datastore.
- Sddc
Id string - The OCID of the SDDC that Datastore is associated with.
- State string
- The current state of the Datastore.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{orcl-cloud: {free-tier-retain: true}} - Time
Created string - The date and time the Datastore was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z - Time
Updated string - The date and time the Datastore was updated, in the format defined by RFC3339.
- Availability
Domain string - The availability domain of the Datastore.
- Block
Volume []GetDetails Datastore Block Volume Detail - The list of Block Volume details that belong to the datastore.
- Block
Volume []stringIds - The List of Block volume OCIDs that belong to the Datastore.
- Capacity
In float64Gbs - Total size of the datastore in GB.
- Cluster
Id string - The OCID of the VMware Cluster that Datastore is attached to.
- Compartment
Id string - The OCID of the compartment that contains the Datastore.
- Datastore
Id string - map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - Display
Name string - A descriptive name for the Datastore. It must be unique within a SDDC, start with a letter, and contain only letters, digits, whitespaces, dashes and underscores. Avoid entering confidential information.
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - Id string
- The OCID of the Datastore.
- Sddc
Id string - The OCID of the SDDC that Datastore is associated with.
- State string
- The current state of the Datastore.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{orcl-cloud: {free-tier-retain: true}} - Time
Created string - The date and time the Datastore was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z - Time
Updated string - The date and time the Datastore was updated, in the format defined by RFC3339.
- availability
Domain String - The availability domain of the Datastore.
- block
Volume List<GetDetails Datastore Block Volume Detail> - The list of Block Volume details that belong to the datastore.
- block
Volume List<String>Ids - The List of Block volume OCIDs that belong to the Datastore.
- capacity
In DoubleGbs - Total size of the datastore in GB.
- cluster
Id String - The OCID of the VMware Cluster that Datastore is attached to.
- compartment
Id String - The OCID of the compartment that contains the Datastore.
- datastore
Id String - Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - display
Name String - A descriptive name for the Datastore. It must be unique within a SDDC, start with a letter, and contain only letters, digits, whitespaces, dashes and underscores. Avoid entering confidential information.
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id String
- The OCID of the Datastore.
- sddc
Id String - The OCID of the SDDC that Datastore is associated with.
- state String
- The current state of the Datastore.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{orcl-cloud: {free-tier-retain: true}} - time
Created String - The date and time the Datastore was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z - time
Updated String - The date and time the Datastore was updated, in the format defined by RFC3339.
- availability
Domain string - The availability domain of the Datastore.
- block
Volume GetDetails Datastore Block Volume Detail[] - The list of Block Volume details that belong to the datastore.
- block
Volume string[]Ids - The List of Block volume OCIDs that belong to the Datastore.
- capacity
In numberGbs - Total size of the datastore in GB.
- cluster
Id string - The OCID of the VMware Cluster that Datastore is attached to.
- compartment
Id string - The OCID of the compartment that contains the Datastore.
- datastore
Id string - {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - display
Name string - A descriptive name for the Datastore. It must be unique within a SDDC, start with a letter, and contain only letters, digits, whitespaces, dashes and underscores. Avoid entering confidential information.
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id string
- The OCID of the Datastore.
- sddc
Id string - The OCID of the SDDC that Datastore is associated with.
- state string
- The current state of the Datastore.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{orcl-cloud: {free-tier-retain: true}} - time
Created string - The date and time the Datastore was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z - time
Updated string - The date and time the Datastore was updated, in the format defined by RFC3339.
- availability_
domain str - The availability domain of the Datastore.
- block_
volume_ Sequence[Getdetails Datastore Block Volume Detail] - The list of Block Volume details that belong to the datastore.
- block_
volume_ Sequence[str]ids - The List of Block volume OCIDs that belong to the Datastore.
- capacity_
in_ floatgbs - Total size of the datastore in GB.
- cluster_
id str - The OCID of the VMware Cluster that Datastore is attached to.
- compartment_
id str - The OCID of the compartment that contains the Datastore.
- datastore_
id str - Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - display_
name str - A descriptive name for the Datastore. It must be unique within a SDDC, start with a letter, and contain only letters, digits, whitespaces, dashes and underscores. Avoid entering confidential information.
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id str
- The OCID of the Datastore.
- sddc_
id str - The OCID of the SDDC that Datastore is associated with.
- state str
- The current state of the Datastore.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{orcl-cloud: {free-tier-retain: true}} - time_
created str - The date and time the Datastore was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z - time_
updated str - The date and time the Datastore was updated, in the format defined by RFC3339.
- availability
Domain String - The availability domain of the Datastore.
- block
Volume List<Property Map>Details - The list of Block Volume details that belong to the datastore.
- block
Volume List<String>Ids - The List of Block volume OCIDs that belong to the Datastore.
- capacity
In NumberGbs - Total size of the datastore in GB.
- cluster
Id String - The OCID of the VMware Cluster that Datastore is attached to.
- compartment
Id String - The OCID of the compartment that contains the Datastore.
- datastore
Id String - Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - display
Name String - A descriptive name for the Datastore. It must be unique within a SDDC, start with a letter, and contain only letters, digits, whitespaces, dashes and underscores. Avoid entering confidential information.
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id String
- The OCID of the Datastore.
- sddc
Id String - The OCID of the SDDC that Datastore is associated with.
- state String
- The current state of the Datastore.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{orcl-cloud: {free-tier-retain: true}} - time
Created String - The date and time the Datastore was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z - time
Updated String - The date and time the Datastore was updated, in the format defined by RFC3339.
Supporting Types
GetDatastoreBlockVolumeDetail
- Attachments
List<Get
Datastore Block Volume Detail Attachment> - List of BlockVolumeAttachment objects containing information about attachment details
- Id string
- The OCID of the Datastore.
- Iqn string
- An IQN of the Block Storage Volume.
- Attachments
[]Get
Datastore Block Volume Detail Attachment - List of BlockVolumeAttachment objects containing information about attachment details
- Id string
- The OCID of the Datastore.
- Iqn string
- An IQN of the Block Storage Volume.
- attachments
List<Get
Datastore Block Volume Detail Attachment> - List of BlockVolumeAttachment objects containing information about attachment details
- id String
- The OCID of the Datastore.
- iqn String
- An IQN of the Block Storage Volume.
- attachments
Get
Datastore Block Volume Detail Attachment[] - List of BlockVolumeAttachment objects containing information about attachment details
- id string
- The OCID of the Datastore.
- iqn string
- An IQN of the Block Storage Volume.
- attachments
Sequence[Get
Datastore Block Volume Detail Attachment] - List of BlockVolumeAttachment objects containing information about attachment details
- id str
- The OCID of the Datastore.
- iqn str
- An IQN of the Block Storage Volume.
- attachments List<Property Map>
- List of BlockVolumeAttachment objects containing information about attachment details
- id String
- The OCID of the Datastore.
- iqn String
- An IQN of the Block Storage Volume.
GetDatastoreBlockVolumeDetailAttachment
- Esxi
Host stringId - The OCIDs of the ESXi host that block volume is attached to.
- Ip
Address string - The IP address of block volume attachment.
- Port int
- The port of block volume attachment.
- Esxi
Host stringId - The OCIDs of the ESXi host that block volume is attached to.
- Ip
Address string - The IP address of block volume attachment.
- Port int
- The port of block volume attachment.
- esxi
Host StringId - The OCIDs of the ESXi host that block volume is attached to.
- ip
Address String - The IP address of block volume attachment.
- port Integer
- The port of block volume attachment.
- esxi
Host stringId - The OCIDs of the ESXi host that block volume is attached to.
- ip
Address string - The IP address of block volume attachment.
- port number
- The port of block volume attachment.
- esxi_
host_ strid - The OCIDs of the ESXi host that block volume is attached to.
- ip_
address str - The IP address of block volume attachment.
- port int
- The port of block volume attachment.
- esxi
Host StringId - The OCIDs of the ESXi host that block volume is attached to.
- ip
Address String - The IP address of block volume attachment.
- port Number
- The port of block volume attachment.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
