Nutanix v0.5.0 published on Monday, Nov 4, 2024 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)
// Output-based functions aren't available in Java yet
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 List<PiersLists Karsenbarg. 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 string - version of the API
- Categories
List<Piers
Karsenbarg. Nutanix. Inputs. Get Projects Entity Category> - Default
Subnet Dictionary<string, string>Reference - Reference to a subnet.
- Description string
- A description for project.
- Environment
Reference List<PiersLists Karsenbarg. 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 List<PiersLists Karsenbarg. 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 List<PiersGroup Reference Lists Karsenbarg. 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 bool - Metadata Dictionary<string, string>
- Name string
- (Optional) the name.
- Owner
Reference Dictionary<string, string> - Project
Reference Dictionary<string, string> - Resource
Domains List<PiersKarsenbarg. Nutanix. Inputs. Get Projects Entity Resource Domain> - The status for a resource domain (limits and values)
- State string
- Subnet
Reference List<PiersLists Karsenbarg. 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 List<PiersLists Karsenbarg. 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 []GetLists 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 string - version of the API
- Categories
[]Get
Projects Entity Category - Default
Subnet map[string]stringReference - Reference to a subnet.
- Description string
- A description for project.
- Environment
Reference []GetLists 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 []GetLists 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 []GetGroup Reference Lists 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 bool - Metadata map[string]string
- Name string
- (Optional) the name.
- Owner
Reference map[string]string - Project
Reference map[string]string - Resource
Domains []GetProjects Entity Resource Domain - The status for a resource domain (limits and values)
- State string
- Subnet
Reference []GetLists 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 []GetLists 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 List<GetLists 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 String - version of the API
- categories
List<Get
Projects Entity Category> - default
Subnet Map<String,String>Reference - Reference to a subnet.
- description String
- A description for project.
- environment
Reference List<GetLists 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 List<GetLists 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 List<GetGroup Reference Lists 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 Boolean - metadata Map<String,String>
- name String
- (Optional) the name.
- owner
Reference Map<String,String> - project
Reference Map<String,String> - resource
Domains List<GetProjects Entity Resource Domain> - The status for a resource domain (limits and values)
- state String
- subnet
Reference List<GetLists 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 List<GetLists 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 GetLists 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 string - version of the API
- categories
Get
Projects Entity Category[] - default
Subnet {[key: string]: string}Reference - Reference to a subnet.
- description string
- A description for project.
- environment
Reference GetLists 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 GetLists 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 GetGroup Reference Lists 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 boolean - metadata {[key: string]: string}
- name string
- (Optional) the name.
- owner
Reference {[key: string]: string} - project
Reference {[key: string]: string} - resource
Domains GetProjects Entity Resource Domain[] - The status for a resource domain (limits and values)
- state string
- subnet
Reference GetLists 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 GetLists 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_ Sequence[Getlists 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 str - version of the API
- categories
Sequence[Get
Projects Entity Category] - default_
subnet_ Mapping[str, str]reference - Reference to a subnet.
- description str
- A description for project.
- environment_
reference_ Sequence[Getlists 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_ Sequence[Getlists 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_ Sequence[Getgroup_ reference_ lists 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 bool - metadata Mapping[str, str]
- name str
- (Optional) the name.
- owner_
reference Mapping[str, str] - project_
reference Mapping[str, str] - resource_
domains Sequence[GetProjects Entity Resource Domain] - The status for a resource domain (limits and values)
- state str
- subnet_
reference_ Sequence[Getlists 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_ Sequence[Getlists 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 List<Property Map>Lists - 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 String - version of the API
- categories List<Property Map>
- default
Subnet Map<String>Reference - Reference to a subnet.
- description String
- A description for project.
- environment
Reference List<Property Map>Lists - 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 List<Property Map>Lists - 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 List<Property Map>Group Reference Lists - 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 Boolean - metadata Map<String>
- name String
- (Optional) the name.
- owner
Reference Map<String> - project
Reference Map<String> - resource
Domains List<Property Map> - The status for a resource domain (limits and values)
- state String
- subnet
Reference List<Property Map>Lists - 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 List<Property Map>Lists - 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
List<Piers
Karsenbarg. 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
[]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
List<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
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
Sequence[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 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 int
- Resource
Type string - Units string
- Value int
- value of the key.
- Limit int
- Resource
Type string - Units string
- Value int
- value of the key.
- limit Integer
- resource
Type String - units String
- value Integer
- value of the key.
- limit number
- resource
Type string - units string
- value number
- value of the key.
- limit int
- resource_
type str - units str
- value int
- value of the key.
- limit Number
- resource
Type String - units String
- value 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.