Viewing docs for vSphere v4.17.0
published on Thursday, Jun 25, 2026 by Pulumi
published on Thursday, Jun 25, 2026 by Pulumi
Viewing docs for vSphere v4.17.0
published on Thursday, Jun 25, 2026 by Pulumi
published on Thursday, Jun 25, 2026 by Pulumi
This data source can be used to read the properties of a vSphere Namespace.
Example Usage
S
Create a Namespace
import * as pulumi from "@pulumi/pulumi";
import * as vsphere from "@pulumi/vsphere";
const example = vsphere.getNamespace({
name: "example-namespace",
});
import pulumi
import pulumi_vsphere as vsphere
example = vsphere.get_namespace(name="example-namespace")
package main
import (
"github.com/pulumi/pulumi-vsphere/sdk/v4/go/vsphere"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vsphere.GetNamespace(ctx, &vsphere.LookupNamespaceArgs{
Name: "example-namespace",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using VSphere = Pulumi.VSphere;
return await Deployment.RunAsync(() =>
{
var example = VSphere.GetNamespace.Invoke(new()
{
Name = "example-namespace",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vsphere.VsphereFunctions;
import com.pulumi.vsphere.inputs.GetNamespaceArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 example = VsphereFunctions.getNamespace(GetNamespaceArgs.builder()
.name("example-namespace")
.build());
}
}
variables:
example:
fn::invoke:
function: vsphere:getNamespace
arguments:
name: example-namespace
pulumi {
required_providers {
vsphere = {
source = "pulumi/vsphere"
}
}
}
data "vsphere_getnamespace" "example" {
name = "example-namespace"
}
Using getNamespace
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 getNamespace(args: GetNamespaceArgs, opts?: InvokeOptions): Promise<GetNamespaceResult>
function getNamespaceOutput(args: GetNamespaceOutputArgs, opts?: InvokeOptions): Output<GetNamespaceResult>def get_namespace(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNamespaceResult
def get_namespace_output(name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNamespaceResult]func LookupNamespace(ctx *Context, args *LookupNamespaceArgs, opts ...InvokeOption) (*LookupNamespaceResult, error)
func LookupNamespaceOutput(ctx *Context, args *LookupNamespaceOutputArgs, opts ...InvokeOption) LookupNamespaceResultOutput> Note: This function is named LookupNamespace in the Go SDK.
public static class GetNamespace
{
public static Task<GetNamespaceResult> InvokeAsync(GetNamespaceArgs args, InvokeOptions? opts = null)
public static Output<GetNamespaceResult> Invoke(GetNamespaceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNamespaceResult> getNamespace(GetNamespaceArgs args, InvokeOptions options)
public static Output<GetNamespaceResult> getNamespace(GetNamespaceArgs args, InvokeOptions options)
fn::invoke:
function: vsphere:index/getNamespace:getNamespace
arguments:
# arguments dictionarydata "vsphere_getnamespace" "name" {
# arguments
}The following arguments are supported:
- Name string
- The name of the vSphere namespace.
- Name string
- The name of the vSphere namespace.
- name string
- The name of the vSphere namespace.
- name String
- The name of the vSphere namespace.
- name string
- The name of the vSphere namespace.
- name str
- The name of the vSphere namespace.
- name String
- The name of the vSphere namespace.
getNamespace Result
The following output properties are available:
- Config
Status string - Cpu
Usage int - Id string
- The provider-assigned unique ID for this managed resource.
- Memory
Usage int - Name string
- Storage
Policies List<string> - The list of storage policies that are available in the vSphere Namespace.
- Storage
Usage int - Supervisor string
- The identifier of the vSphere Supervisor managing the namespace.
- Vm
Services List<Pulumi.VSphere. Outputs. Get Namespace Vm Service> - The configuration for VM Service in the vSphere Namespace.
- Config
Status string - Cpu
Usage int - Id string
- The provider-assigned unique ID for this managed resource.
- Memory
Usage int - Name string
- Storage
Policies []string - The list of storage policies that are available in the vSphere Namespace.
- Storage
Usage int - Supervisor string
- The identifier of the vSphere Supervisor managing the namespace.
- Vm
Services []GetNamespace Vm Service - The configuration for VM Service in the vSphere Namespace.
- config_
status string - cpu_
usage number - id string
- The provider-assigned unique ID for this managed resource.
- memory_
usage number - name string
- storage_
policies list(string) - The list of storage policies that are available in the vSphere Namespace.
- storage_
usage number - supervisor string
- The identifier of the vSphere Supervisor managing the namespace.
- vm_
services list(object) - The configuration for VM Service in the vSphere Namespace.
- config
Status String - cpu
Usage Integer - id String
- The provider-assigned unique ID for this managed resource.
- memory
Usage Integer - name String
- storage
Policies List<String> - The list of storage policies that are available in the vSphere Namespace.
- storage
Usage Integer - supervisor String
- The identifier of the vSphere Supervisor managing the namespace.
- vm
Services List<GetNamespace Vm Service> - The configuration for VM Service in the vSphere Namespace.
- config
Status string - cpu
Usage number - id string
- The provider-assigned unique ID for this managed resource.
- memory
Usage number - name string
- storage
Policies string[] - The list of storage policies that are available in the vSphere Namespace.
- storage
Usage number - supervisor string
- The identifier of the vSphere Supervisor managing the namespace.
- vm
Services GetNamespace Vm Service[] - The configuration for VM Service in the vSphere Namespace.
- config_
status str - cpu_
usage int - id str
- The provider-assigned unique ID for this managed resource.
- memory_
usage int - name str
- storage_
policies Sequence[str] - The list of storage policies that are available in the vSphere Namespace.
- storage_
usage int - supervisor str
- The identifier of the vSphere Supervisor managing the namespace.
- vm_
services Sequence[GetNamespace Vm Service] - The configuration for VM Service in the vSphere Namespace.
- config
Status String - cpu
Usage Number - id String
- The provider-assigned unique ID for this managed resource.
- memory
Usage Number - name String
- storage
Policies List<String> - The list of storage policies that are available in the vSphere Namespace.
- storage
Usage Number - supervisor String
- The identifier of the vSphere Supervisor managing the namespace.
- vm
Services List<Property Map> - The configuration for VM Service in the vSphere Namespace.
Supporting Types
GetNamespaceVmService
- Content
Libraries List<string> - The list of content libraries associated with the VM Service.
- Vm
Classes List<string> - The list of VM Classes associated with the VM Service.
- Content
Libraries []string - The list of content libraries associated with the VM Service.
- Vm
Classes []string - The list of VM Classes associated with the VM Service.
- content_
libraries list(string) - The list of content libraries associated with the VM Service.
- vm_
classes list(string) - The list of VM Classes associated with the VM Service.
- content
Libraries List<String> - The list of content libraries associated with the VM Service.
- vm
Classes List<String> - The list of VM Classes associated with the VM Service.
- content
Libraries string[] - The list of content libraries associated with the VM Service.
- vm
Classes string[] - The list of VM Classes associated with the VM Service.
- content_
libraries Sequence[str] - The list of content libraries associated with the VM Service.
- vm_
classes Sequence[str] - The list of VM Classes associated with the VM Service.
- content
Libraries List<String> - The list of content libraries associated with the VM Service.
- vm
Classes List<String> - The list of VM Classes associated with the VM Service.
Package Details
- Repository
- vSphere pulumi/pulumi-vsphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vsphereTerraform Provider.
Viewing docs for vSphere v4.17.0
published on Thursday, Jun 25, 2026 by Pulumi
published on Thursday, Jun 25, 2026 by Pulumi