Nutanix v0.7.4 published on Friday, Mar 21, 2025 by Piers Karsenbarg
nutanix.getProjects
Explore with Pulumi AI
Describes Projects
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pulumi/nutanix";
const projects = nutanix.getProjects({});
import pulumi
import pulumi_nutanix as nutanix
projects = nutanix.get_projects()
package main
import (
"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := nutanix.GetProjects(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = Pulumi.Nutanix;
return await Deployment.RunAsync(() =>
{
var projects = Nutanix.GetProjects.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.NutanixFunctions;
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 projects = NutanixFunctions.getProjects();
}
}
variables:
projects:
fn::invoke:
function: nutanix:getProjects
arguments: {}
Using getProjects
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 getProjects(opts?: InvokeOptions): Promise<GetProjectsResult>
function getProjectsOutput(opts?: InvokeOptions): Output<GetProjectsResult>
def get_projects(opts: Optional[InvokeOptions] = None) -> GetProjectsResult
def get_projects_output(opts: Optional[InvokeOptions] = None) -> Output[GetProjectsResult]
func GetProjects(ctx *Context, opts ...InvokeOption) (*GetProjectsResult, error)
func GetProjectsOutput(ctx *Context, opts ...InvokeOption) GetProjectsResultOutput
> Note: This function is named GetProjects
in the Go SDK.
public static class GetProjects
{
public static Task<GetProjectsResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetProjectsResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetProjectsResult> getProjects(InvokeOptions options)
public static Output<GetProjectsResult> getProjects(InvokeOptions options)
fn::invoke:
function: nutanix:index/getProjects:getProjects
arguments:
# arguments dictionary
getProjects Result
The following output properties are available:
- Api
Version string - version of the API
- Entities
List<Piers
Karsenbarg. Nutanix. Outputs. Get Projects Entity> - List of Projects
- Id string
- The provider-assigned unique ID for this managed resource.
- Api
Version string - version of the API
- Entities
[]Get
Projects Entity - List of Projects
- Id string
- The provider-assigned unique ID for this managed resource.
- api
Version String - version of the API
- entities
List<Get
Projects Entity> - List of Projects
- id String
- The provider-assigned unique ID for this managed resource.
- api
Version string - version of the API
- entities
Get
Projects Entity[] - List of Projects
- id string
- The provider-assigned unique ID for this managed resource.
- api_
version str - version of the API
- entities
Sequence[Get
Projects Entity] - List of Projects
- id str
- The provider-assigned unique ID for this managed resource.
- api
Version String - version of the API
- entities List<Property Map>
- List of Projects
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
GetProjectsEntity
- Account
Reference Lists This property is required. List<PiersKarsenbarg. Nutanix. Inputs. Get Projects Entity Account Reference List> - List of accounts associated with the project.
account_reference_list.#.kind
- The kind name. Default value isaccount
account_reference_list.#.uuid
- The UUID of an account.account_reference_list.#.name
- The name of an account.
- Api
Version This property is required. string - version of the API
- Categories
This property is required. List<PiersKarsenbarg. Nutanix. Inputs. Get Projects Entity Category> - Default
Subnet Reference This property is required. Dictionary<string, string> - Reference to a subnet.
- Description
This property is required. string - A description for project.
- Environment
Reference Lists This property is required. List<PiersKarsenbarg. Nutanix. Inputs. Get Projects Entity Environment Reference List> - List of environments associated with the project.
environment_reference_list.#.kind
- The kind name. Default value isenvironment
environment_reference_list.#.uuid
- The UUID of an environment.environment_reference_list.#.name
- The name of an environment.
- External
Network Lists This property is required. List<PiersKarsenbarg. Nutanix. Inputs. Get Projects Entity External Network List> - List of external networks associated with the project.
external_network_list.#.uuid
- The UUID of a network.external_network_list.#.name
- The name of a network.
- External
User Group Reference Lists This property is required. List<PiersKarsenbarg. Nutanix. Inputs. Get Projects Entity External User Group Reference List> - List of directory service user groups. These groups are not managed by Nutanix.
external_user_group_reference_list.#.kind
- The kind name. Default value isuser_group
external_user_group_reference_list.#.uuid
- The UUID of a user_groupexternal_user_group_reference_list.#.name
- The name of a user_group
- Is
Default This property is required. bool - Metadata
This property is required. Dictionary<string, string> - Name
This property is required. string - (Optional) the name.
- Owner
Reference This property is required. Dictionary<string, string> - Project
Reference This property is required. Dictionary<string, string> - Resource
Domains This property is required. List<PiersKarsenbarg. Nutanix. Inputs. Get Projects Entity Resource Domain> - The status for a resource domain (limits and values)
- State
This property is required. string - Subnet
Reference Lists This property is required. List<PiersKarsenbarg. Nutanix. Inputs. Get Projects Entity Subnet Reference List> - List of subnets for the project.
subnet_reference_list.#.kind
- The kind name. Default value issubnet
subnet_reference_list.#.uuid
- The UUID of a subnetsubnet_reference_list.#.name
- The name of a subnet.
- User
Reference Lists This property is required. List<PiersKarsenbarg. Nutanix. Inputs. Get Projects Entity User Reference List> - List of users in the project.
user_reference_list.#.kind
- The kind name. Default value isuser
user_reference_list.#.uuid
- The UUID of a useruser_reference_list.#.name
- The name of a user.
- Account
Reference Lists This property is required. []GetProjects Entity Account Reference List - List of accounts associated with the project.
account_reference_list.#.kind
- The kind name. Default value isaccount
account_reference_list.#.uuid
- The UUID of an account.account_reference_list.#.name
- The name of an account.
- Api
Version This property is required. string - version of the API
- Categories
This property is required. []GetProjects Entity Category - Default
Subnet Reference This property is required. map[string]string - Reference to a subnet.
- Description
This property is required. string - A description for project.
- Environment
Reference Lists This property is required. []GetProjects Entity Environment Reference List - List of environments associated with the project.
environment_reference_list.#.kind
- The kind name. Default value isenvironment
environment_reference_list.#.uuid
- The UUID of an environment.environment_reference_list.#.name
- The name of an environment.
- External
Network Lists This property is required. []GetProjects Entity External Network List - List of external networks associated with the project.
external_network_list.#.uuid
- The UUID of a network.external_network_list.#.name
- The name of a network.
- External
User Group Reference Lists This property is required. []GetProjects Entity External User Group Reference List - List of directory service user groups. These groups are not managed by Nutanix.
external_user_group_reference_list.#.kind
- The kind name. Default value isuser_group
external_user_group_reference_list.#.uuid
- The UUID of a user_groupexternal_user_group_reference_list.#.name
- The name of a user_group
- Is
Default This property is required. bool - Metadata
This property is required. map[string]string - Name
This property is required. string - (Optional) the name.
- Owner
Reference This property is required. map[string]string - Project
Reference This property is required. map[string]string - Resource
Domains This property is required. []GetProjects Entity Resource Domain - The status for a resource domain (limits and values)
- State
This property is required. string - Subnet
Reference Lists This property is required. []GetProjects Entity Subnet Reference List - List of subnets for the project.
subnet_reference_list.#.kind
- The kind name. Default value issubnet
subnet_reference_list.#.uuid
- The UUID of a subnetsubnet_reference_list.#.name
- The name of a subnet.
- User
Reference Lists This property is required. []GetProjects Entity User Reference List - List of users in the project.
user_reference_list.#.kind
- The kind name. Default value isuser
user_reference_list.#.uuid
- The UUID of a useruser_reference_list.#.name
- The name of a user.
- account
Reference Lists This property is required. List<GetProjects Entity Account Reference List> - List of accounts associated with the project.
account_reference_list.#.kind
- The kind name. Default value isaccount
account_reference_list.#.uuid
- The UUID of an account.account_reference_list.#.name
- The name of an account.
- api
Version This property is required. String - version of the API
- categories
This property is required. List<GetProjects Entity Category> - default
Subnet Reference This property is required. Map<String,String> - Reference to a subnet.
- description
This property is required. String - A description for project.
- environment
Reference Lists This property is required. List<GetProjects Entity Environment Reference List> - List of environments associated with the project.
environment_reference_list.#.kind
- The kind name. Default value isenvironment
environment_reference_list.#.uuid
- The UUID of an environment.environment_reference_list.#.name
- The name of an environment.
- external
Network Lists This property is required. List<GetProjects Entity External Network List> - List of external networks associated with the project.
external_network_list.#.uuid
- The UUID of a network.external_network_list.#.name
- The name of a network.
- external
User Group Reference Lists This property is required. List<GetProjects Entity External User Group Reference List> - List of directory service user groups. These groups are not managed by Nutanix.
external_user_group_reference_list.#.kind
- The kind name. Default value isuser_group
external_user_group_reference_list.#.uuid
- The UUID of a user_groupexternal_user_group_reference_list.#.name
- The name of a user_group
- is
Default This property is required. Boolean - metadata
This property is required. Map<String,String> - name
This property is required. String - (Optional) the name.
- owner
Reference This property is required. Map<String,String> - project
Reference This property is required. Map<String,String> - resource
Domains This property is required. List<GetProjects Entity Resource Domain> - The status for a resource domain (limits and values)
- state
This property is required. String - subnet
Reference Lists This property is required. List<GetProjects Entity Subnet Reference List> - List of subnets for the project.
subnet_reference_list.#.kind
- The kind name. Default value issubnet
subnet_reference_list.#.uuid
- The UUID of a subnetsubnet_reference_list.#.name
- The name of a subnet.
- user
Reference Lists This property is required. List<GetProjects Entity User Reference List> - List of users in the project.
user_reference_list.#.kind
- The kind name. Default value isuser
user_reference_list.#.uuid
- The UUID of a useruser_reference_list.#.name
- The name of a user.
- account
Reference Lists This property is required. GetProjects Entity Account Reference List[] - List of accounts associated with the project.
account_reference_list.#.kind
- The kind name. Default value isaccount
account_reference_list.#.uuid
- The UUID of an account.account_reference_list.#.name
- The name of an account.
- api
Version This property is required. string - version of the API
- categories
This property is required. GetProjects Entity Category[] - default
Subnet Reference This property is required. {[key: string]: string} - Reference to a subnet.
- description
This property is required. string - A description for project.
- environment
Reference Lists This property is required. GetProjects Entity Environment Reference List[] - List of environments associated with the project.
environment_reference_list.#.kind
- The kind name. Default value isenvironment
environment_reference_list.#.uuid
- The UUID of an environment.environment_reference_list.#.name
- The name of an environment.
- external
Network Lists This property is required. GetProjects Entity External Network List[] - List of external networks associated with the project.
external_network_list.#.uuid
- The UUID of a network.external_network_list.#.name
- The name of a network.
- external
User Group Reference Lists This property is required. GetProjects Entity External User Group Reference List[] - List of directory service user groups. These groups are not managed by Nutanix.
external_user_group_reference_list.#.kind
- The kind name. Default value isuser_group
external_user_group_reference_list.#.uuid
- The UUID of a user_groupexternal_user_group_reference_list.#.name
- The name of a user_group
- is
Default This property is required. boolean - metadata
This property is required. {[key: string]: string} - name
This property is required. string - (Optional) the name.
- owner
Reference This property is required. {[key: string]: string} - project
Reference This property is required. {[key: string]: string} - resource
Domains This property is required. GetProjects Entity Resource Domain[] - The status for a resource domain (limits and values)
- state
This property is required. string - subnet
Reference Lists This property is required. GetProjects Entity Subnet Reference List[] - List of subnets for the project.
subnet_reference_list.#.kind
- The kind name. Default value issubnet
subnet_reference_list.#.uuid
- The UUID of a subnetsubnet_reference_list.#.name
- The name of a subnet.
- user
Reference Lists This property is required. GetProjects Entity User Reference List[] - List of users in the project.
user_reference_list.#.kind
- The kind name. Default value isuser
user_reference_list.#.uuid
- The UUID of a useruser_reference_list.#.name
- The name of a user.
- account_
reference_ lists This property is required. Sequence[GetProjects Entity Account Reference List] - List of accounts associated with the project.
account_reference_list.#.kind
- The kind name. Default value isaccount
account_reference_list.#.uuid
- The UUID of an account.account_reference_list.#.name
- The name of an account.
- api_
version This property is required. str - version of the API
- categories
This property is required. Sequence[GetProjects Entity Category] - default_
subnet_ reference This property is required. Mapping[str, str] - Reference to a subnet.
- description
This property is required. str - A description for project.
- environment_
reference_ lists This property is required. Sequence[GetProjects Entity Environment Reference List] - List of environments associated with the project.
environment_reference_list.#.kind
- The kind name. Default value isenvironment
environment_reference_list.#.uuid
- The UUID of an environment.environment_reference_list.#.name
- The name of an environment.
- external_
network_ lists This property is required. Sequence[GetProjects Entity External Network List] - List of external networks associated with the project.
external_network_list.#.uuid
- The UUID of a network.external_network_list.#.name
- The name of a network.
- external_
user_ group_ reference_ lists This property is required. Sequence[GetProjects Entity External User Group Reference List] - List of directory service user groups. These groups are not managed by Nutanix.
external_user_group_reference_list.#.kind
- The kind name. Default value isuser_group
external_user_group_reference_list.#.uuid
- The UUID of a user_groupexternal_user_group_reference_list.#.name
- The name of a user_group
- is_
default This property is required. bool - metadata
This property is required. Mapping[str, str] - name
This property is required. str - (Optional) the name.
- owner_
reference This property is required. Mapping[str, str] - project_
reference This property is required. Mapping[str, str] - resource_
domains This property is required. Sequence[GetProjects Entity Resource Domain] - The status for a resource domain (limits and values)
- state
This property is required. str - subnet_
reference_ lists This property is required. Sequence[GetProjects Entity Subnet Reference List] - List of subnets for the project.
subnet_reference_list.#.kind
- The kind name. Default value issubnet
subnet_reference_list.#.uuid
- The UUID of a subnetsubnet_reference_list.#.name
- The name of a subnet.
- user_
reference_ lists This property is required. Sequence[GetProjects Entity User Reference List] - List of users in the project.
user_reference_list.#.kind
- The kind name. Default value isuser
user_reference_list.#.uuid
- The UUID of a useruser_reference_list.#.name
- The name of a user.
- account
Reference Lists This property is required. List<Property Map> - List of accounts associated with the project.
account_reference_list.#.kind
- The kind name. Default value isaccount
account_reference_list.#.uuid
- The UUID of an account.account_reference_list.#.name
- The name of an account.
- api
Version This property is required. String - version of the API
- categories
This property is required. List<Property Map> - default
Subnet Reference This property is required. Map<String> - Reference to a subnet.
- description
This property is required. String - A description for project.
- environment
Reference Lists This property is required. List<Property Map> - List of environments associated with the project.
environment_reference_list.#.kind
- The kind name. Default value isenvironment
environment_reference_list.#.uuid
- The UUID of an environment.environment_reference_list.#.name
- The name of an environment.
- external
Network Lists This property is required. List<Property Map> - List of external networks associated with the project.
external_network_list.#.uuid
- The UUID of a network.external_network_list.#.name
- The name of a network.
- external
User Group Reference Lists This property is required. List<Property Map> - List of directory service user groups. These groups are not managed by Nutanix.
external_user_group_reference_list.#.kind
- The kind name. Default value isuser_group
external_user_group_reference_list.#.uuid
- The UUID of a user_groupexternal_user_group_reference_list.#.name
- The name of a user_group
- is
Default This property is required. Boolean - metadata
This property is required. Map<String> - name
This property is required. String - (Optional) the name.
- owner
Reference This property is required. Map<String> - project
Reference This property is required. Map<String> - resource
Domains This property is required. List<Property Map> - The status for a resource domain (limits and values)
- state
This property is required. String - subnet
Reference Lists This property is required. List<Property Map> - List of subnets for the project.
subnet_reference_list.#.kind
- The kind name. Default value issubnet
subnet_reference_list.#.uuid
- The UUID of a subnetsubnet_reference_list.#.name
- The name of a subnet.
- user
Reference Lists This property is required. List<Property Map> - List of users in the project.
user_reference_list.#.kind
- The kind name. Default value isuser
user_reference_list.#.uuid
- The UUID of a useruser_reference_list.#.name
- The name of a user.
GetProjectsEntityAccountReferenceList
GetProjectsEntityCategory
GetProjectsEntityEnvironmentReferenceList
GetProjectsEntityExternalNetworkList
GetProjectsEntityExternalUserGroupReferenceList
GetProjectsEntityResourceDomain
- Resources
This property is required. List<PiersKarsenbarg. Nutanix. Inputs. Get Projects Entity Resource Domain Resource> - Array of the utilization/limit for resource types
resource_domain.resources.#.limit
The resource consumption limit (unspecified is unlimited)resource_domain.resources.#.resource_type
The type of resource (for example storage, CPUs)resource_domain.resources.#.units
- The units of the resource typeresource_domain.resources.#.value
- The amount of resource consumed
- Resources
This property is required. []GetProjects Entity Resource Domain Resource - Array of the utilization/limit for resource types
resource_domain.resources.#.limit
The resource consumption limit (unspecified is unlimited)resource_domain.resources.#.resource_type
The type of resource (for example storage, CPUs)resource_domain.resources.#.units
- The units of the resource typeresource_domain.resources.#.value
- The amount of resource consumed
- resources
This property is required. List<GetProjects Entity Resource Domain Resource> - Array of the utilization/limit for resource types
resource_domain.resources.#.limit
The resource consumption limit (unspecified is unlimited)resource_domain.resources.#.resource_type
The type of resource (for example storage, CPUs)resource_domain.resources.#.units
- The units of the resource typeresource_domain.resources.#.value
- The amount of resource consumed
- resources
This property is required. GetProjects Entity Resource Domain Resource[] - Array of the utilization/limit for resource types
resource_domain.resources.#.limit
The resource consumption limit (unspecified is unlimited)resource_domain.resources.#.resource_type
The type of resource (for example storage, CPUs)resource_domain.resources.#.units
- The units of the resource typeresource_domain.resources.#.value
- The amount of resource consumed
- resources
This property is required. Sequence[GetProjects Entity Resource Domain Resource] - Array of the utilization/limit for resource types
resource_domain.resources.#.limit
The resource consumption limit (unspecified is unlimited)resource_domain.resources.#.resource_type
The type of resource (for example storage, CPUs)resource_domain.resources.#.units
- The units of the resource typeresource_domain.resources.#.value
- The amount of resource consumed
- resources
This property is required. List<Property Map> - Array of the utilization/limit for resource types
resource_domain.resources.#.limit
The resource consumption limit (unspecified is unlimited)resource_domain.resources.#.resource_type
The type of resource (for example storage, CPUs)resource_domain.resources.#.units
- The units of the resource typeresource_domain.resources.#.value
- The amount of resource consumed
GetProjectsEntityResourceDomainResource
- Limit
This property is required. int - Resource
Type This property is required. string - Units
This property is required. string - Value
This property is required. int - value of the key.
- Limit
This property is required. int - Resource
Type This property is required. string - Units
This property is required. string - Value
This property is required. int - value of the key.
- limit
This property is required. Integer - resource
Type This property is required. String - units
This property is required. String - value
This property is required. Integer - value of the key.
- limit
This property is required. number - resource
Type This property is required. string - units
This property is required. string - value
This property is required. number - value of the key.
- limit
This property is required. int - resource_
type This property is required. str - units
This property is required. str - value
This property is required. int - value of the key.
- limit
This property is required. Number - resource
Type This property is required. String - units
This property is required. String - value
This property is required. Number - value of the key.
GetProjectsEntitySubnetReferenceList
GetProjectsEntityUserReferenceList
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nutanix
Terraform Provider.