Nutanix v0.1.0 published on Tuesday, Sep 24, 2024 by Piers Karsenbarg
nutanix.Project
Explore with Pulumi AI
Nutanix v0.1.0 published on Tuesday, Sep 24, 2024 by Piers Karsenbarg
Provides a Nutanix Project resource to Create a Project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pierskarsenbarg/nutanix";
const subnet = new nutanix.Subnet("subnet", {
clusterUuid: "<YOUR_CLUSTER_ID>",
description: "Description of my unit test VLAN",
vlanId: 31,
subnetType: "VLAN",
subnetIp: "10.250.140.0",
defaultGatewayIp: "10.250.140.1",
prefixLength: 24,
dhcpOptions: {
boot_file_name: "bootfile",
domain_name: "nutanix",
tftp_server_name: "10.250.140.200",
},
dhcpDomainNameServerLists: [
"8.8.8.8",
"4.2.2.2",
],
dhcpDomainSearchLists: [
"terraform.nutanix.com",
"terraform.unit.test.com",
],
});
const projectTestProject = new nutanix.Project("projectTestProject", {
description: "This is my project",
categories: [{
name: "Environment",
value: "Staging",
}],
resourceDomain: {
resources: [{
limit: 4,
resourceType: "STORAGE",
}],
},
defaultSubnetReference: {
uuid: subnet.metadata.uuid,
},
apiVersion: "3.1",
});
// set use_project_internal flag to create project with acps
const projectTestIndex_projectProject = new nutanix.Project("projectTestIndex/projectProject", {
description: "This is my project",
clusterUuid: "<YOUR_CLUSTER_ID>",
useProjectInternal: true,
defaultSubnetReference: {
uuid: subnet.metadata.uuid,
},
userReferenceLists: [{
name: "{{user_name}}",
kind: "user",
uuid: "{{user_uuid}}",
}],
subnetReferenceLists: [{
uuid: resource.nutanix_subnet.sub.id,
}],
acps: [{
name: "{{acp_name}}",
roleReference: {
kind: "role",
uuid: "{{role_uuid}}",
name: "Developer",
},
userReferenceLists: [{
name: "{{user_name}}",
kind: "user",
uuid: "{{user_uuid}}",
}],
description: "{{description}}",
}],
apiVersion: "3.1",
});
//# Create a project with user which not added in the PC
const projectTestNutanixIndex_projectProject = new nutanix.Project("projectTestNutanixIndex/projectProject", {
description: "This is my project",
clusterUuid: "<YOUR_CLUSTER_ID>",
useProjectInternal: true,
defaultSubnetReference: {
uuid: subnet.metadata.uuid,
},
userReferenceLists: [{
name: "{{user_name}}",
kind: "user",
uuid: "{{user_uuid}}",
}],
subnetReferenceLists: [{
uuid: resource.nutanix_subnet.sub.id,
}],
acps: [{
name: "{{acp_name}}",
roleReference: {
kind: "role",
uuid: "{{role_uuid}}",
name: "Developer",
},
userReferenceLists: [{
name: "{{user_name}}",
kind: "user",
uuid: "{{user_uuid}}",
}],
description: "{{description}}",
}],
userLists: [{
metadata: {
kind: "user",
uuid: "{{ UUID of the USER }}",
},
directoryServiceUser: {
userPrincipalName: "{{ Name of user }}",
directoryServiceReference: {
uuid: "{{ DIRECTORY SERVICE UUID }}",
kind: "directory_service",
},
},
}],
apiVersion: "3.1",
});
import pulumi
import pulumi_nutanix as nutanix
subnet = nutanix.Subnet("subnet",
cluster_uuid="<YOUR_CLUSTER_ID>",
description="Description of my unit test VLAN",
vlan_id=31,
subnet_type="VLAN",
subnet_ip="10.250.140.0",
default_gateway_ip="10.250.140.1",
prefix_length=24,
dhcp_options={
"boot_file_name": "bootfile",
"domain_name": "nutanix",
"tftp_server_name": "10.250.140.200",
},
dhcp_domain_name_server_lists=[
"8.8.8.8",
"4.2.2.2",
],
dhcp_domain_search_lists=[
"terraform.nutanix.com",
"terraform.unit.test.com",
])
project_test_project = nutanix.Project("projectTestProject",
description="This is my project",
categories=[{
"name": "Environment",
"value": "Staging",
}],
resource_domain={
"resources": [{
"limit": 4,
"resource_type": "STORAGE",
}],
},
default_subnet_reference={
"uuid": subnet.metadata["uuid"],
},
api_version="3.1")
# set use_project_internal flag to create project with acps
project_test_index_project_project = nutanix.Project("projectTestIndex/projectProject",
description="This is my project",
cluster_uuid="<YOUR_CLUSTER_ID>",
use_project_internal=True,
default_subnet_reference={
"uuid": subnet.metadata["uuid"],
},
user_reference_lists=[{
"name": "{{user_name}}",
"kind": "user",
"uuid": "{{user_uuid}}",
}],
subnet_reference_lists=[{
"uuid": resource["nutanix_subnet"]["sub"]["id"],
}],
acps=[{
"name": "{{acp_name}}",
"role_reference": {
"kind": "role",
"uuid": "{{role_uuid}}",
"name": "Developer",
},
"user_reference_lists": [{
"name": "{{user_name}}",
"kind": "user",
"uuid": "{{user_uuid}}",
}],
"description": "{{description}}",
}],
api_version="3.1")
## Create a project with user which not added in the PC
project_test_nutanix_index_project_project = nutanix.Project("projectTestNutanixIndex/projectProject",
description="This is my project",
cluster_uuid="<YOUR_CLUSTER_ID>",
use_project_internal=True,
default_subnet_reference={
"uuid": subnet.metadata["uuid"],
},
user_reference_lists=[{
"name": "{{user_name}}",
"kind": "user",
"uuid": "{{user_uuid}}",
}],
subnet_reference_lists=[{
"uuid": resource["nutanix_subnet"]["sub"]["id"],
}],
acps=[{
"name": "{{acp_name}}",
"role_reference": {
"kind": "role",
"uuid": "{{role_uuid}}",
"name": "Developer",
},
"user_reference_lists": [{
"name": "{{user_name}}",
"kind": "user",
"uuid": "{{user_uuid}}",
}],
"description": "{{description}}",
}],
user_lists=[{
"metadata": {
"kind": "user",
"uuid": "{{ UUID of the USER }}",
},
"directory_service_user": {
"user_principal_name": "{{ Name of user }}",
"directory_service_reference": {
"uuid": "{{ DIRECTORY SERVICE UUID }}",
"kind": "directory_service",
},
},
}],
api_version="3.1")
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 {
subnet, err := nutanix.NewSubnet(ctx, "subnet", &nutanix.SubnetArgs{
ClusterUuid: pulumi.String("<YOUR_CLUSTER_ID>"),
Description: pulumi.String("Description of my unit test VLAN"),
VlanId: pulumi.Int(31),
SubnetType: pulumi.String("VLAN"),
SubnetIp: pulumi.String("10.250.140.0"),
DefaultGatewayIp: pulumi.String("10.250.140.1"),
PrefixLength: pulumi.Int(24),
DhcpOptions: pulumi.StringMap{
"boot_file_name": pulumi.String("bootfile"),
"domain_name": pulumi.String("nutanix"),
"tftp_server_name": pulumi.String("10.250.140.200"),
},
DhcpDomainNameServerLists: pulumi.StringArray{
pulumi.String("8.8.8.8"),
pulumi.String("4.2.2.2"),
},
DhcpDomainSearchLists: pulumi.StringArray{
pulumi.String("terraform.nutanix.com"),
pulumi.String("terraform.unit.test.com"),
},
})
if err != nil {
return err
}
_, err = nutanix.NewProject(ctx, "projectTestProject", &nutanix.ProjectArgs{
Description: pulumi.String("This is my project"),
Categories: nutanix.ProjectCategoryArray{
&nutanix.ProjectCategoryArgs{
Name: pulumi.String("Environment"),
Value: pulumi.String("Staging"),
},
},
ResourceDomain: &nutanix.ProjectResourceDomainArgs{
Resources: nutanix.ProjectResourceDomainResourceArray{
&nutanix.ProjectResourceDomainResourceArgs{
Limit: pulumi.Int(4),
ResourceType: pulumi.String("STORAGE"),
},
},
},
DefaultSubnetReference: &nutanix.ProjectDefaultSubnetReferenceArgs{
Uuid: subnet.Metadata.ApplyT(func(metadata map[string]string) (string, error) {
return metadata.Uuid, nil
}).(pulumi.StringOutput),
},
ApiVersion: pulumi.String("3.1"),
})
if err != nil {
return err
}
_, err = nutanix.NewProject(ctx, "projectTestIndex/projectProject", &nutanix.ProjectArgs{
Description: pulumi.String("This is my project"),
ClusterUuid: pulumi.String("<YOUR_CLUSTER_ID>"),
UseProjectInternal: pulumi.Bool(true),
DefaultSubnetReference: &nutanix.ProjectDefaultSubnetReferenceArgs{
Uuid: subnet.Metadata.ApplyT(func(metadata map[string]string) (string, error) {
return metadata.Uuid, nil
}).(pulumi.StringOutput),
},
UserReferenceLists: nutanix.ProjectUserReferenceListArray{
&nutanix.ProjectUserReferenceListArgs{
Name: pulumi.String("{{user_name}}"),
Kind: pulumi.String("user"),
Uuid: pulumi.String("{{user_uuid}}"),
},
},
SubnetReferenceLists: nutanix.ProjectSubnetReferenceListArray{
&nutanix.ProjectSubnetReferenceListArgs{
Uuid: pulumi.Any(resource.Nutanix_subnet.Sub.Id),
},
},
Acps: nutanix.ProjectAcpArray{
&nutanix.ProjectAcpArgs{
Name: pulumi.String("{{acp_name}}"),
RoleReference: &nutanix.ProjectAcpRoleReferenceArgs{
Kind: pulumi.String("role"),
Uuid: pulumi.String("{{role_uuid}}"),
Name: pulumi.String("Developer"),
},
UserReferenceLists: nutanix.ProjectAcpUserReferenceListArray{
&nutanix.ProjectAcpUserReferenceListArgs{
Name: pulumi.String("{{user_name}}"),
Kind: pulumi.String("user"),
Uuid: pulumi.String("{{user_uuid}}"),
},
},
Description: pulumi.String("{{description}}"),
},
},
ApiVersion: pulumi.String("3.1"),
})
if err != nil {
return err
}
_, err = nutanix.NewProject(ctx, "projectTestNutanixIndex/projectProject", &nutanix.ProjectArgs{
Description: pulumi.String("This is my project"),
ClusterUuid: pulumi.String("<YOUR_CLUSTER_ID>"),
UseProjectInternal: pulumi.Bool(true),
DefaultSubnetReference: &nutanix.ProjectDefaultSubnetReferenceArgs{
Uuid: subnet.Metadata.ApplyT(func(metadata map[string]string) (string, error) {
return metadata.Uuid, nil
}).(pulumi.StringOutput),
},
UserReferenceLists: nutanix.ProjectUserReferenceListArray{
&nutanix.ProjectUserReferenceListArgs{
Name: pulumi.String("{{user_name}}"),
Kind: pulumi.String("user"),
Uuid: pulumi.String("{{user_uuid}}"),
},
},
SubnetReferenceLists: nutanix.ProjectSubnetReferenceListArray{
&nutanix.ProjectSubnetReferenceListArgs{
Uuid: pulumi.Any(resource.Nutanix_subnet.Sub.Id),
},
},
Acps: nutanix.ProjectAcpArray{
&nutanix.ProjectAcpArgs{
Name: pulumi.String("{{acp_name}}"),
RoleReference: &nutanix.ProjectAcpRoleReferenceArgs{
Kind: pulumi.String("role"),
Uuid: pulumi.String("{{role_uuid}}"),
Name: pulumi.String("Developer"),
},
UserReferenceLists: nutanix.ProjectAcpUserReferenceListArray{
&nutanix.ProjectAcpUserReferenceListArgs{
Name: pulumi.String("{{user_name}}"),
Kind: pulumi.String("user"),
Uuid: pulumi.String("{{user_uuid}}"),
},
},
Description: pulumi.String("{{description}}"),
},
},
UserLists: nutanix.ProjectUserListArray{
&nutanix.ProjectUserListArgs{
Metadata: pulumi.StringMap{
"kind": pulumi.String("user"),
"uuid": pulumi.String("{{ UUID of the USER }}"),
},
DirectoryServiceUser: &nutanix.ProjectUserListDirectoryServiceUserArgs{
UserPrincipalName: pulumi.String("{{ Name of user }}"),
DirectoryServiceReference: &nutanix.ProjectUserListDirectoryServiceUserDirectoryServiceReferenceArgs{
Uuid: pulumi.String("{{ DIRECTORY SERVICE UUID }}"),
Kind: pulumi.String("directory_service"),
},
},
},
},
ApiVersion: pulumi.String("3.1"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = PiersKarsenbarg.Nutanix;
return await Deployment.RunAsync(() =>
{
var subnet = new Nutanix.Subnet("subnet", new()
{
ClusterUuid = "<YOUR_CLUSTER_ID>",
Description = "Description of my unit test VLAN",
VlanId = 31,
SubnetType = "VLAN",
SubnetIp = "10.250.140.0",
DefaultGatewayIp = "10.250.140.1",
PrefixLength = 24,
DhcpOptions =
{
{ "boot_file_name", "bootfile" },
{ "domain_name", "nutanix" },
{ "tftp_server_name", "10.250.140.200" },
},
DhcpDomainNameServerLists = new[]
{
"8.8.8.8",
"4.2.2.2",
},
DhcpDomainSearchLists = new[]
{
"terraform.nutanix.com",
"terraform.unit.test.com",
},
});
var projectTestProject = new Nutanix.Project("projectTestProject", new()
{
Description = "This is my project",
Categories = new[]
{
new Nutanix.Inputs.ProjectCategoryArgs
{
Name = "Environment",
Value = "Staging",
},
},
ResourceDomain = new Nutanix.Inputs.ProjectResourceDomainArgs
{
Resources = new[]
{
new Nutanix.Inputs.ProjectResourceDomainResourceArgs
{
Limit = 4,
ResourceType = "STORAGE",
},
},
},
DefaultSubnetReference = new Nutanix.Inputs.ProjectDefaultSubnetReferenceArgs
{
Uuid = subnet.Metadata.Apply(metadata => metadata.Uuid),
},
ApiVersion = "3.1",
});
// set use_project_internal flag to create project with acps
var projectTestIndex_projectProject = new Nutanix.Project("projectTestIndex/projectProject", new()
{
Description = "This is my project",
ClusterUuid = "<YOUR_CLUSTER_ID>",
UseProjectInternal = true,
DefaultSubnetReference = new Nutanix.Inputs.ProjectDefaultSubnetReferenceArgs
{
Uuid = subnet.Metadata.Apply(metadata => metadata.Uuid),
},
UserReferenceLists = new[]
{
new Nutanix.Inputs.ProjectUserReferenceListArgs
{
Name = "{{user_name}}",
Kind = "user",
Uuid = "{{user_uuid}}",
},
},
SubnetReferenceLists = new[]
{
new Nutanix.Inputs.ProjectSubnetReferenceListArgs
{
Uuid = resource.Nutanix_subnet.Sub.Id,
},
},
Acps = new[]
{
new Nutanix.Inputs.ProjectAcpArgs
{
Name = "{{acp_name}}",
RoleReference = new Nutanix.Inputs.ProjectAcpRoleReferenceArgs
{
Kind = "role",
Uuid = "{{role_uuid}}",
Name = "Developer",
},
UserReferenceLists = new[]
{
new Nutanix.Inputs.ProjectAcpUserReferenceListArgs
{
Name = "{{user_name}}",
Kind = "user",
Uuid = "{{user_uuid}}",
},
},
Description = "{{description}}",
},
},
ApiVersion = "3.1",
});
//# Create a project with user which not added in the PC
var projectTestNutanixIndex_projectProject = new Nutanix.Project("projectTestNutanixIndex/projectProject", new()
{
Description = "This is my project",
ClusterUuid = "<YOUR_CLUSTER_ID>",
UseProjectInternal = true,
DefaultSubnetReference = new Nutanix.Inputs.ProjectDefaultSubnetReferenceArgs
{
Uuid = subnet.Metadata.Apply(metadata => metadata.Uuid),
},
UserReferenceLists = new[]
{
new Nutanix.Inputs.ProjectUserReferenceListArgs
{
Name = "{{user_name}}",
Kind = "user",
Uuid = "{{user_uuid}}",
},
},
SubnetReferenceLists = new[]
{
new Nutanix.Inputs.ProjectSubnetReferenceListArgs
{
Uuid = resource.Nutanix_subnet.Sub.Id,
},
},
Acps = new[]
{
new Nutanix.Inputs.ProjectAcpArgs
{
Name = "{{acp_name}}",
RoleReference = new Nutanix.Inputs.ProjectAcpRoleReferenceArgs
{
Kind = "role",
Uuid = "{{role_uuid}}",
Name = "Developer",
},
UserReferenceLists = new[]
{
new Nutanix.Inputs.ProjectAcpUserReferenceListArgs
{
Name = "{{user_name}}",
Kind = "user",
Uuid = "{{user_uuid}}",
},
},
Description = "{{description}}",
},
},
UserLists = new[]
{
new Nutanix.Inputs.ProjectUserListArgs
{
Metadata =
{
{ "kind", "user" },
{ "uuid", "{{ UUID of the USER }}" },
},
DirectoryServiceUser = new Nutanix.Inputs.ProjectUserListDirectoryServiceUserArgs
{
UserPrincipalName = "{{ Name of user }}",
DirectoryServiceReference = new Nutanix.Inputs.ProjectUserListDirectoryServiceUserDirectoryServiceReferenceArgs
{
Uuid = "{{ DIRECTORY SERVICE UUID }}",
Kind = "directory_service",
},
},
},
},
ApiVersion = "3.1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.Subnet;
import com.pulumi.nutanix.SubnetArgs;
import com.pulumi.nutanix.Project;
import com.pulumi.nutanix.ProjectArgs;
import com.pulumi.nutanix.inputs.ProjectCategoryArgs;
import com.pulumi.nutanix.inputs.ProjectResourceDomainArgs;
import com.pulumi.nutanix.inputs.ProjectDefaultSubnetReferenceArgs;
import com.pulumi.nutanix.inputs.ProjectUserReferenceListArgs;
import com.pulumi.nutanix.inputs.ProjectSubnetReferenceListArgs;
import com.pulumi.nutanix.inputs.ProjectAcpArgs;
import com.pulumi.nutanix.inputs.ProjectAcpRoleReferenceArgs;
import com.pulumi.nutanix.inputs.ProjectUserListArgs;
import com.pulumi.nutanix.inputs.ProjectUserListDirectoryServiceUserArgs;
import com.pulumi.nutanix.inputs.ProjectUserListDirectoryServiceUserDirectoryServiceReferenceArgs;
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) {
var subnet = new Subnet("subnet", SubnetArgs.builder()
.clusterUuid("<YOUR_CLUSTER_ID>")
.description("Description of my unit test VLAN")
.vlanId(31)
.subnetType("VLAN")
.subnetIp("10.250.140.0")
.defaultGatewayIp("10.250.140.1")
.prefixLength(24)
.dhcpOptions(Map.ofEntries(
Map.entry("boot_file_name", "bootfile"),
Map.entry("domain_name", "nutanix"),
Map.entry("tftp_server_name", "10.250.140.200")
))
.dhcpDomainNameServerLists(
"8.8.8.8",
"4.2.2.2")
.dhcpDomainSearchLists(
"terraform.nutanix.com",
"terraform.unit.test.com")
.build());
var projectTestProject = new Project("projectTestProject", ProjectArgs.builder()
.description("This is my project")
.categories(ProjectCategoryArgs.builder()
.name("Environment")
.value("Staging")
.build())
.resourceDomain(ProjectResourceDomainArgs.builder()
.resources(ProjectResourceDomainResourceArgs.builder()
.limit(4)
.resourceType("STORAGE")
.build())
.build())
.defaultSubnetReference(ProjectDefaultSubnetReferenceArgs.builder()
.uuid(subnet.metadata().applyValue(metadata -> metadata.uuid()))
.build())
.apiVersion("3.1")
.build());
// set use_project_internal flag to create project with acps
var projectTestIndex_projectProject = new Project("projectTestIndex/projectProject", ProjectArgs.builder()
.description("This is my project")
.clusterUuid("<YOUR_CLUSTER_ID>")
.useProjectInternal(true)
.defaultSubnetReference(ProjectDefaultSubnetReferenceArgs.builder()
.uuid(subnet.metadata().applyValue(metadata -> metadata.uuid()))
.build())
.userReferenceLists(ProjectUserReferenceListArgs.builder()
.name("{{user_name}}")
.kind("user")
.uuid("{{user_uuid}}")
.build())
.subnetReferenceLists(ProjectSubnetReferenceListArgs.builder()
.uuid(resource.nutanix_subnet().sub().id())
.build())
.acps(ProjectAcpArgs.builder()
.name("{{acp_name}}")
.roleReference(ProjectAcpRoleReferenceArgs.builder()
.kind("role")
.uuid("{{role_uuid}}")
.name("Developer")
.build())
.userReferenceLists(ProjectAcpUserReferenceListArgs.builder()
.name("{{user_name}}")
.kind("user")
.uuid("{{user_uuid}}")
.build())
.description("{{description}}")
.build())
.apiVersion("3.1")
.build());
//# Create a project with user which not added in the PC
var projectTestNutanixIndex_projectProject = new Project("projectTestNutanixIndex/projectProject", ProjectArgs.builder()
.description("This is my project")
.clusterUuid("<YOUR_CLUSTER_ID>")
.useProjectInternal(true)
.defaultSubnetReference(ProjectDefaultSubnetReferenceArgs.builder()
.uuid(subnet.metadata().applyValue(metadata -> metadata.uuid()))
.build())
.userReferenceLists(ProjectUserReferenceListArgs.builder()
.name("{{user_name}}")
.kind("user")
.uuid("{{user_uuid}}")
.build())
.subnetReferenceLists(ProjectSubnetReferenceListArgs.builder()
.uuid(resource.nutanix_subnet().sub().id())
.build())
.acps(ProjectAcpArgs.builder()
.name("{{acp_name}}")
.roleReference(ProjectAcpRoleReferenceArgs.builder()
.kind("role")
.uuid("{{role_uuid}}")
.name("Developer")
.build())
.userReferenceLists(ProjectAcpUserReferenceListArgs.builder()
.name("{{user_name}}")
.kind("user")
.uuid("{{user_uuid}}")
.build())
.description("{{description}}")
.build())
.userLists(ProjectUserListArgs.builder()
.metadata(Map.ofEntries(
Map.entry("kind", "user"),
Map.entry("uuid", "{{ UUID of the USER }}")
))
.directoryServiceUser(ProjectUserListDirectoryServiceUserArgs.builder()
.userPrincipalName("{{ Name of user }}")
.directoryServiceReference(ProjectUserListDirectoryServiceUserDirectoryServiceReferenceArgs.builder()
.uuid("{{ DIRECTORY SERVICE UUID }}")
.kind("directory_service")
.build())
.build())
.build())
.apiVersion("3.1")
.build());
}
}
resources:
subnet:
type: nutanix:Subnet
properties:
clusterUuid: <YOUR_CLUSTER_ID>
description: Description of my unit test VLAN
vlanId: 31
subnetType: VLAN
subnetIp: 10.250.140.0
defaultGatewayIp: 10.250.140.1
prefixLength: 24
dhcpOptions:
boot_file_name: bootfile
domain_name: nutanix
tftp_server_name: 10.250.140.200
dhcpDomainNameServerLists:
- 8.8.8.8
- 4.2.2.2
dhcpDomainSearchLists:
- terraform.nutanix.com
- terraform.unit.test.com
projectTestProject: # set use_project_internal flag to create project with acps
type: nutanix:Project
properties:
description: This is my project
categories:
- name: Environment
value: Staging
resourceDomain:
resources:
- limit: 4
resourceType: STORAGE
defaultSubnetReference:
uuid: ${subnet.metadata.uuid}
apiVersion: '3.1'
projectTestIndex/projectProject: ## Create a project with user which not added in the PC
type: nutanix:Project
properties:
description: This is my project
clusterUuid: <YOUR_CLUSTER_ID>
useProjectInternal: true
defaultSubnetReference:
uuid: ${subnet.metadata.uuid}
userReferenceLists:
- name: '{{user_name}}'
kind: user
uuid: '{{user_uuid}}'
subnetReferenceLists:
- uuid: ${resource.nutanix_subnet.sub.id}
acps:
- name: '{{acp_name}}'
roleReference:
kind: role
uuid: '{{role_uuid}}'
name: Developer
userReferenceLists:
- name: '{{user_name}}'
kind: user
uuid: '{{user_uuid}}'
description: '{{description}}'
apiVersion: '3.1'
projectTestNutanixIndex/projectProject:
type: nutanix:Project
properties:
description: This is my project
clusterUuid: <YOUR_CLUSTER_ID>
useProjectInternal: true
defaultSubnetReference:
uuid: ${subnet.metadata.uuid}
userReferenceLists:
- name: '{{user_name}}'
kind: user
uuid: '{{user_uuid}}'
subnetReferenceLists:
- uuid: ${resource.nutanix_subnet.sub.id}
acps:
- name: '{{acp_name}}'
roleReference:
kind: role
uuid: '{{role_uuid}}'
name: Developer
userReferenceLists:
- name: '{{user_name}}'
kind: user
uuid: '{{user_uuid}}'
description: '{{description}}'
userLists:
- metadata:
kind: user
uuid: '{{ UUID of the USER }}'
directoryServiceUser:
userPrincipalName: '{{ Name of user }}'
directoryServiceReference:
uuid: '{{ DIRECTORY SERVICE UUID }}'
kind: directory_service
apiVersion: '3.1'
Create Project Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Project(name: string, args: ProjectArgs, opts?: CustomResourceOptions);
@overload
def Project(resource_name: str,
args: ProjectArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Project(resource_name: str,
opts: Optional[ResourceOptions] = None,
default_subnet_reference: Optional[ProjectDefaultSubnetReferenceArgs] = None,
description: Optional[str] = None,
external_user_group_reference_lists: Optional[Sequence[ProjectExternalUserGroupReferenceListArgs]] = None,
cluster_reference_lists: Optional[Sequence[ProjectClusterReferenceListArgs]] = None,
name: Optional[str] = None,
cluster_uuid: Optional[str] = None,
default_environment_reference: Optional[ProjectDefaultEnvironmentReferenceArgs] = None,
api_version: Optional[str] = None,
acps: Optional[Sequence[ProjectAcpArgs]] = None,
enable_collab: Optional[bool] = None,
owner_reference: Optional[Mapping[str, str]] = None,
external_network_lists: Optional[Sequence[ProjectExternalNetworkListArgs]] = None,
vpc_reference_lists: Optional[Sequence[ProjectVpcReferenceListArgs]] = None,
categories: Optional[Sequence[ProjectCategoryArgs]] = None,
environment_reference_lists: Optional[Sequence[ProjectEnvironmentReferenceListArgs]] = None,
project_reference: Optional[Mapping[str, str]] = None,
resource_domain: Optional[ProjectResourceDomainArgs] = None,
subnet_reference_lists: Optional[Sequence[ProjectSubnetReferenceListArgs]] = None,
tunnel_reference_lists: Optional[Sequence[ProjectTunnelReferenceListArgs]] = None,
use_project_internal: Optional[bool] = None,
user_group_lists: Optional[Sequence[ProjectUserGroupListArgs]] = None,
user_lists: Optional[Sequence[ProjectUserListArgs]] = None,
user_reference_lists: Optional[Sequence[ProjectUserReferenceListArgs]] = None,
account_reference_lists: Optional[Sequence[ProjectAccountReferenceListArgs]] = None)
func NewProject(ctx *Context, name string, args ProjectArgs, opts ...ResourceOption) (*Project, error)
public Project(string name, ProjectArgs args, CustomResourceOptions? opts = null)
public Project(String name, ProjectArgs args)
public Project(String name, ProjectArgs args, CustomResourceOptions options)
type: nutanix:Project
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ProjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ProjectArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ProjectArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProjectArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var projectResource = new Nutanix.Project("projectResource", new()
{
DefaultSubnetReference = new Nutanix.Inputs.ProjectDefaultSubnetReferenceArgs
{
Uuid = "string",
Kind = "string",
Name = "string",
},
Description = "string",
ExternalUserGroupReferenceLists = new[]
{
new Nutanix.Inputs.ProjectExternalUserGroupReferenceListArgs
{
Uuid = "string",
Kind = "string",
Name = "string",
},
},
ClusterReferenceLists = new[]
{
new Nutanix.Inputs.ProjectClusterReferenceListArgs
{
Uuid = "string",
Kind = "string",
Name = "string",
},
},
Name = "string",
ClusterUuid = "string",
DefaultEnvironmentReference = new Nutanix.Inputs.ProjectDefaultEnvironmentReferenceArgs
{
Uuid = "string",
Kind = "string",
Name = "string",
},
ApiVersion = "string",
Acps = new[]
{
new Nutanix.Inputs.ProjectAcpArgs
{
RoleReference = new Nutanix.Inputs.ProjectAcpRoleReferenceArgs
{
Kind = "string",
Uuid = "string",
Name = "string",
},
ContextFilterLists = new[]
{
new Nutanix.Inputs.ProjectAcpContextFilterListArgs
{
EntityFilterExpressionLists = new[]
{
new Nutanix.Inputs.ProjectAcpContextFilterListEntityFilterExpressionListArgs
{
Operator = "string",
RightHandSide = new Nutanix.Inputs.ProjectAcpContextFilterListEntityFilterExpressionListRightHandSideArgs
{
Categories = new Nutanix.Inputs.ProjectAcpContextFilterListEntityFilterExpressionListRightHandSideCategoriesArgs
{
Name = "string",
Values = new[]
{
"string",
},
},
Collection = "string",
UuidLists = new[]
{
"string",
},
},
LeftHandSideEntityType = "string",
},
},
ScopeFilterExpressionLists = new[]
{
new Nutanix.Inputs.ProjectAcpContextFilterListScopeFilterExpressionListArgs
{
LeftHandSide = "string",
Operator = "string",
RightHandSide = new Nutanix.Inputs.ProjectAcpContextFilterListScopeFilterExpressionListRightHandSideArgs
{
Categories = new Nutanix.Inputs.ProjectAcpContextFilterListScopeFilterExpressionListRightHandSideCategoriesArgs
{
Name = "string",
Values = new[]
{
"string",
},
},
Collection = "string",
UuidLists = new[]
{
"string",
},
},
},
},
},
},
Description = "string",
Metadata =
{
{ "string", "string" },
},
Name = "string",
UserGroupReferenceLists = new[]
{
new Nutanix.Inputs.ProjectAcpUserGroupReferenceListArgs
{
Uuid = "string",
Kind = "string",
Name = "string",
},
},
UserReferenceLists = new[]
{
new Nutanix.Inputs.ProjectAcpUserReferenceListArgs
{
Uuid = "string",
Kind = "string",
Name = "string",
},
},
},
},
EnableCollab = false,
OwnerReference =
{
{ "string", "string" },
},
ExternalNetworkLists = new[]
{
new Nutanix.Inputs.ProjectExternalNetworkListArgs
{
Uuid = "string",
Name = "string",
},
},
VpcReferenceLists = new[]
{
new Nutanix.Inputs.ProjectVpcReferenceListArgs
{
Uuid = "string",
Kind = "string",
Name = "string",
},
},
Categories = new[]
{
new Nutanix.Inputs.ProjectCategoryArgs
{
Name = "string",
Value = "string",
},
},
EnvironmentReferenceLists = new[]
{
new Nutanix.Inputs.ProjectEnvironmentReferenceListArgs
{
Uuid = "string",
Kind = "string",
Name = "string",
},
},
ProjectReference =
{
{ "string", "string" },
},
ResourceDomain = new Nutanix.Inputs.ProjectResourceDomainArgs
{
Resources = new[]
{
new Nutanix.Inputs.ProjectResourceDomainResourceArgs
{
Limit = 0,
ResourceType = "string",
Units = "string",
Value = 0,
},
},
},
SubnetReferenceLists = new[]
{
new Nutanix.Inputs.ProjectSubnetReferenceListArgs
{
Uuid = "string",
Kind = "string",
Name = "string",
},
},
TunnelReferenceLists = new[]
{
new Nutanix.Inputs.ProjectTunnelReferenceListArgs
{
Uuid = "string",
Kind = "string",
Name = "string",
},
},
UseProjectInternal = false,
UserGroupLists = new[]
{
new Nutanix.Inputs.ProjectUserGroupListArgs
{
DirectoryServiceOus = new[]
{
new Nutanix.Inputs.ProjectUserGroupListDirectoryServiceOusArgs
{
DistinguishedName = "string",
},
},
DirectoryServiceUserGroups = new[]
{
new Nutanix.Inputs.ProjectUserGroupListDirectoryServiceUserGroupArgs
{
DistinguishedName = "string",
},
},
Metadata =
{
{ "string", "string" },
},
SamlUserGroups = new[]
{
new Nutanix.Inputs.ProjectUserGroupListSamlUserGroupArgs
{
IdpUuid = "string",
Name = "string",
},
},
},
},
UserLists = new[]
{
new Nutanix.Inputs.ProjectUserListArgs
{
DirectoryServiceUser = new Nutanix.Inputs.ProjectUserListDirectoryServiceUserArgs
{
DirectoryServiceReference = new Nutanix.Inputs.ProjectUserListDirectoryServiceUserDirectoryServiceReferenceArgs
{
Uuid = "string",
Kind = "string",
Name = "string",
},
DefaultUserPrincipalName = "string",
UserPrincipalName = "string",
},
IdentityProviderUser = new Nutanix.Inputs.ProjectUserListIdentityProviderUserArgs
{
IdentityProviderReference = new Nutanix.Inputs.ProjectUserListIdentityProviderUserIdentityProviderReferenceArgs
{
Uuid = "string",
Kind = "string",
Name = "string",
},
Username = "string",
},
Metadata =
{
{ "string", "string" },
},
},
},
UserReferenceLists = new[]
{
new Nutanix.Inputs.ProjectUserReferenceListArgs
{
Uuid = "string",
Kind = "string",
Name = "string",
},
},
AccountReferenceLists = new[]
{
new Nutanix.Inputs.ProjectAccountReferenceListArgs
{
Uuid = "string",
Kind = "string",
Name = "string",
},
},
});
example, err := nutanix.NewProject(ctx, "projectResource", &nutanix.ProjectArgs{
DefaultSubnetReference: &nutanix.ProjectDefaultSubnetReferenceArgs{
Uuid: pulumi.String("string"),
Kind: pulumi.String("string"),
Name: pulumi.String("string"),
},
Description: pulumi.String("string"),
ExternalUserGroupReferenceLists: nutanix.ProjectExternalUserGroupReferenceListArray{
&nutanix.ProjectExternalUserGroupReferenceListArgs{
Uuid: pulumi.String("string"),
Kind: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
ClusterReferenceLists: nutanix.ProjectClusterReferenceListArray{
&nutanix.ProjectClusterReferenceListArgs{
Uuid: pulumi.String("string"),
Kind: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
ClusterUuid: pulumi.String("string"),
DefaultEnvironmentReference: &nutanix.ProjectDefaultEnvironmentReferenceArgs{
Uuid: pulumi.String("string"),
Kind: pulumi.String("string"),
Name: pulumi.String("string"),
},
ApiVersion: pulumi.String("string"),
Acps: nutanix.ProjectAcpArray{
&nutanix.ProjectAcpArgs{
RoleReference: &nutanix.ProjectAcpRoleReferenceArgs{
Kind: pulumi.String("string"),
Uuid: pulumi.String("string"),
Name: pulumi.String("string"),
},
ContextFilterLists: nutanix.ProjectAcpContextFilterListArray{
&nutanix.ProjectAcpContextFilterListArgs{
EntityFilterExpressionLists: nutanix.ProjectAcpContextFilterListEntityFilterExpressionListArray{
&nutanix.ProjectAcpContextFilterListEntityFilterExpressionListArgs{
Operator: pulumi.String("string"),
RightHandSide: &nutanix.ProjectAcpContextFilterListEntityFilterExpressionListRightHandSideArgs{
Categories: &nutanix.ProjectAcpContextFilterListEntityFilterExpressionListRightHandSideCategoriesArgs{
Name: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
Collection: pulumi.String("string"),
UuidLists: pulumi.StringArray{
pulumi.String("string"),
},
},
LeftHandSideEntityType: pulumi.String("string"),
},
},
ScopeFilterExpressionLists: nutanix.ProjectAcpContextFilterListScopeFilterExpressionListArray{
&nutanix.ProjectAcpContextFilterListScopeFilterExpressionListArgs{
LeftHandSide: pulumi.String("string"),
Operator: pulumi.String("string"),
RightHandSide: &nutanix.ProjectAcpContextFilterListScopeFilterExpressionListRightHandSideArgs{
Categories: &nutanix.ProjectAcpContextFilterListScopeFilterExpressionListRightHandSideCategoriesArgs{
Name: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
Collection: pulumi.String("string"),
UuidLists: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
},
},
Description: pulumi.String("string"),
Metadata: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
UserGroupReferenceLists: nutanix.ProjectAcpUserGroupReferenceListArray{
&nutanix.ProjectAcpUserGroupReferenceListArgs{
Uuid: pulumi.String("string"),
Kind: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
UserReferenceLists: nutanix.ProjectAcpUserReferenceListArray{
&nutanix.ProjectAcpUserReferenceListArgs{
Uuid: pulumi.String("string"),
Kind: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
},
},
EnableCollab: pulumi.Bool(false),
OwnerReference: pulumi.StringMap{
"string": pulumi.String("string"),
},
ExternalNetworkLists: nutanix.ProjectExternalNetworkListArray{
&nutanix.ProjectExternalNetworkListArgs{
Uuid: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
VpcReferenceLists: nutanix.ProjectVpcReferenceListArray{
&nutanix.ProjectVpcReferenceListArgs{
Uuid: pulumi.String("string"),
Kind: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
Categories: nutanix.ProjectCategoryArray{
&nutanix.ProjectCategoryArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
EnvironmentReferenceLists: nutanix.ProjectEnvironmentReferenceListArray{
&nutanix.ProjectEnvironmentReferenceListArgs{
Uuid: pulumi.String("string"),
Kind: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
ProjectReference: pulumi.StringMap{
"string": pulumi.String("string"),
},
ResourceDomain: &nutanix.ProjectResourceDomainArgs{
Resources: nutanix.ProjectResourceDomainResourceArray{
&nutanix.ProjectResourceDomainResourceArgs{
Limit: pulumi.Int(0),
ResourceType: pulumi.String("string"),
Units: pulumi.String("string"),
Value: pulumi.Int(0),
},
},
},
SubnetReferenceLists: nutanix.ProjectSubnetReferenceListArray{
&nutanix.ProjectSubnetReferenceListArgs{
Uuid: pulumi.String("string"),
Kind: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
TunnelReferenceLists: nutanix.ProjectTunnelReferenceListArray{
&nutanix.ProjectTunnelReferenceListArgs{
Uuid: pulumi.String("string"),
Kind: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
UseProjectInternal: pulumi.Bool(false),
UserGroupLists: nutanix.ProjectUserGroupListArray{
&nutanix.ProjectUserGroupListArgs{
DirectoryServiceOus: nutanix.ProjectUserGroupListDirectoryServiceOusArray{
&nutanix.ProjectUserGroupListDirectoryServiceOusArgs{
DistinguishedName: pulumi.String("string"),
},
},
DirectoryServiceUserGroups: nutanix.ProjectUserGroupListDirectoryServiceUserGroupArray{
&nutanix.ProjectUserGroupListDirectoryServiceUserGroupArgs{
DistinguishedName: pulumi.String("string"),
},
},
Metadata: pulumi.StringMap{
"string": pulumi.String("string"),
},
SamlUserGroups: nutanix.ProjectUserGroupListSamlUserGroupArray{
&nutanix.ProjectUserGroupListSamlUserGroupArgs{
IdpUuid: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
},
},
UserLists: nutanix.ProjectUserListArray{
&nutanix.ProjectUserListArgs{
DirectoryServiceUser: &nutanix.ProjectUserListDirectoryServiceUserArgs{
DirectoryServiceReference: &nutanix.ProjectUserListDirectoryServiceUserDirectoryServiceReferenceArgs{
Uuid: pulumi.String("string"),
Kind: pulumi.String("string"),
Name: pulumi.String("string"),
},
DefaultUserPrincipalName: pulumi.String("string"),
UserPrincipalName: pulumi.String("string"),
},
IdentityProviderUser: &nutanix.ProjectUserListIdentityProviderUserArgs{
IdentityProviderReference: &nutanix.ProjectUserListIdentityProviderUserIdentityProviderReferenceArgs{
Uuid: pulumi.String("string"),
Kind: pulumi.String("string"),
Name: pulumi.String("string"),
},
Username: pulumi.String("string"),
},
Metadata: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
UserReferenceLists: nutanix.ProjectUserReferenceListArray{
&nutanix.ProjectUserReferenceListArgs{
Uuid: pulumi.String("string"),
Kind: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
AccountReferenceLists: nutanix.ProjectAccountReferenceListArray{
&nutanix.ProjectAccountReferenceListArgs{
Uuid: pulumi.String("string"),
Kind: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
})
var projectResource = new Project("projectResource", ProjectArgs.builder()
.defaultSubnetReference(ProjectDefaultSubnetReferenceArgs.builder()
.uuid("string")
.kind("string")
.name("string")
.build())
.description("string")
.externalUserGroupReferenceLists(ProjectExternalUserGroupReferenceListArgs.builder()
.uuid("string")
.kind("string")
.name("string")
.build())
.clusterReferenceLists(ProjectClusterReferenceListArgs.builder()
.uuid("string")
.kind("string")
.name("string")
.build())
.name("string")
.clusterUuid("string")
.defaultEnvironmentReference(ProjectDefaultEnvironmentReferenceArgs.builder()
.uuid("string")
.kind("string")
.name("string")
.build())
.apiVersion("string")
.acps(ProjectAcpArgs.builder()
.roleReference(ProjectAcpRoleReferenceArgs.builder()
.kind("string")
.uuid("string")
.name("string")
.build())
.contextFilterLists(ProjectAcpContextFilterListArgs.builder()
.entityFilterExpressionLists(ProjectAcpContextFilterListEntityFilterExpressionListArgs.builder()
.operator("string")
.rightHandSide(ProjectAcpContextFilterListEntityFilterExpressionListRightHandSideArgs.builder()
.categories(ProjectAcpContextFilterListEntityFilterExpressionListRightHandSideCategoriesArgs.builder()
.name("string")
.values("string")
.build())
.collection("string")
.uuidLists("string")
.build())
.leftHandSideEntityType("string")
.build())
.scopeFilterExpressionLists(ProjectAcpContextFilterListScopeFilterExpressionListArgs.builder()
.leftHandSide("string")
.operator("string")
.rightHandSide(ProjectAcpContextFilterListScopeFilterExpressionListRightHandSideArgs.builder()
.categories(ProjectAcpContextFilterListScopeFilterExpressionListRightHandSideCategoriesArgs.builder()
.name("string")
.values("string")
.build())
.collection("string")
.uuidLists("string")
.build())
.build())
.build())
.description("string")
.metadata(Map.of("string", "string"))
.name("string")
.userGroupReferenceLists(ProjectAcpUserGroupReferenceListArgs.builder()
.uuid("string")
.kind("string")
.name("string")
.build())
.userReferenceLists(ProjectAcpUserReferenceListArgs.builder()
.uuid("string")
.kind("string")
.name("string")
.build())
.build())
.enableCollab(false)
.ownerReference(Map.of("string", "string"))
.externalNetworkLists(ProjectExternalNetworkListArgs.builder()
.uuid("string")
.name("string")
.build())
.vpcReferenceLists(ProjectVpcReferenceListArgs.builder()
.uuid("string")
.kind("string")
.name("string")
.build())
.categories(ProjectCategoryArgs.builder()
.name("string")
.value("string")
.build())
.environmentReferenceLists(ProjectEnvironmentReferenceListArgs.builder()
.uuid("string")
.kind("string")
.name("string")
.build())
.projectReference(Map.of("string", "string"))
.resourceDomain(ProjectResourceDomainArgs.builder()
.resources(ProjectResourceDomainResourceArgs.builder()
.limit(0)
.resourceType("string")
.units("string")
.value(0)
.build())
.build())
.subnetReferenceLists(ProjectSubnetReferenceListArgs.builder()
.uuid("string")
.kind("string")
.name("string")
.build())
.tunnelReferenceLists(ProjectTunnelReferenceListArgs.builder()
.uuid("string")
.kind("string")
.name("string")
.build())
.useProjectInternal(false)
.userGroupLists(ProjectUserGroupListArgs.builder()
.directoryServiceOus(ProjectUserGroupListDirectoryServiceOusArgs.builder()
.distinguishedName("string")
.build())
.directoryServiceUserGroups(ProjectUserGroupListDirectoryServiceUserGroupArgs.builder()
.distinguishedName("string")
.build())
.metadata(Map.of("string", "string"))
.samlUserGroups(ProjectUserGroupListSamlUserGroupArgs.builder()
.idpUuid("string")
.name("string")
.build())
.build())
.userLists(ProjectUserListArgs.builder()
.directoryServiceUser(ProjectUserListDirectoryServiceUserArgs.builder()
.directoryServiceReference(ProjectUserListDirectoryServiceUserDirectoryServiceReferenceArgs.builder()
.uuid("string")
.kind("string")
.name("string")
.build())
.defaultUserPrincipalName("string")
.userPrincipalName("string")
.build())
.identityProviderUser(ProjectUserListIdentityProviderUserArgs.builder()
.identityProviderReference(ProjectUserListIdentityProviderUserIdentityProviderReferenceArgs.builder()
.uuid("string")
.kind("string")
.name("string")
.build())
.username("string")
.build())
.metadata(Map.of("string", "string"))
.build())
.userReferenceLists(ProjectUserReferenceListArgs.builder()
.uuid("string")
.kind("string")
.name("string")
.build())
.accountReferenceLists(ProjectAccountReferenceListArgs.builder()
.uuid("string")
.kind("string")
.name("string")
.build())
.build());
project_resource = nutanix.Project("projectResource",
default_subnet_reference=nutanix.ProjectDefaultSubnetReferenceArgs(
uuid="string",
kind="string",
name="string",
),
description="string",
external_user_group_reference_lists=[nutanix.ProjectExternalUserGroupReferenceListArgs(
uuid="string",
kind="string",
name="string",
)],
cluster_reference_lists=[nutanix.ProjectClusterReferenceListArgs(
uuid="string",
kind="string",
name="string",
)],
name="string",
cluster_uuid="string",
default_environment_reference=nutanix.ProjectDefaultEnvironmentReferenceArgs(
uuid="string",
kind="string",
name="string",
),
api_version="string",
acps=[nutanix.ProjectAcpArgs(
role_reference=nutanix.ProjectAcpRoleReferenceArgs(
kind="string",
uuid="string",
name="string",
),
context_filter_lists=[nutanix.ProjectAcpContextFilterListArgs(
entity_filter_expression_lists=[nutanix.ProjectAcpContextFilterListEntityFilterExpressionListArgs(
operator="string",
right_hand_side=nutanix.ProjectAcpContextFilterListEntityFilterExpressionListRightHandSideArgs(
categories=nutanix.ProjectAcpContextFilterListEntityFilterExpressionListRightHandSideCategoriesArgs(
name="string",
values=["string"],
),
collection="string",
uuid_lists=["string"],
),
left_hand_side_entity_type="string",
)],
scope_filter_expression_lists=[nutanix.ProjectAcpContextFilterListScopeFilterExpressionListArgs(
left_hand_side="string",
operator="string",
right_hand_side=nutanix.ProjectAcpContextFilterListScopeFilterExpressionListRightHandSideArgs(
categories=nutanix.ProjectAcpContextFilterListScopeFilterExpressionListRightHandSideCategoriesArgs(
name="string",
values=["string"],
),
collection="string",
uuid_lists=["string"],
),
)],
)],
description="string",
metadata={
"string": "string",
},
name="string",
user_group_reference_lists=[nutanix.ProjectAcpUserGroupReferenceListArgs(
uuid="string",
kind="string",
name="string",
)],
user_reference_lists=[nutanix.ProjectAcpUserReferenceListArgs(
uuid="string",
kind="string",
name="string",
)],
)],
enable_collab=False,
owner_reference={
"string": "string",
},
external_network_lists=[nutanix.ProjectExternalNetworkListArgs(
uuid="string",
name="string",
)],
vpc_reference_lists=[nutanix.ProjectVpcReferenceListArgs(
uuid="string",
kind="string",
name="string",
)],
categories=[nutanix.ProjectCategoryArgs(
name="string",
value="string",
)],
environment_reference_lists=[nutanix.ProjectEnvironmentReferenceListArgs(
uuid="string",
kind="string",
name="string",
)],
project_reference={
"string": "string",
},
resource_domain=nutanix.ProjectResourceDomainArgs(
resources=[nutanix.ProjectResourceDomainResourceArgs(
limit=0,
resource_type="string",
units="string",
value=0,
)],
),
subnet_reference_lists=[nutanix.ProjectSubnetReferenceListArgs(
uuid="string",
kind="string",
name="string",
)],
tunnel_reference_lists=[nutanix.ProjectTunnelReferenceListArgs(
uuid="string",
kind="string",
name="string",
)],
use_project_internal=False,
user_group_lists=[nutanix.ProjectUserGroupListArgs(
directory_service_ous=[nutanix.ProjectUserGroupListDirectoryServiceOusArgs(
distinguished_name="string",
)],
directory_service_user_groups=[nutanix.ProjectUserGroupListDirectoryServiceUserGroupArgs(
distinguished_name="string",
)],
metadata={
"string": "string",
},
saml_user_groups=[nutanix.ProjectUserGroupListSamlUserGroupArgs(
idp_uuid="string",
name="string",
)],
)],
user_lists=[nutanix.ProjectUserListArgs(
directory_service_user=nutanix.ProjectUserListDirectoryServiceUserArgs(
directory_service_reference=nutanix.ProjectUserListDirectoryServiceUserDirectoryServiceReferenceArgs(
uuid="string",
kind="string",
name="string",
),
default_user_principal_name="string",
user_principal_name="string",
),
identity_provider_user=nutanix.ProjectUserListIdentityProviderUserArgs(
identity_provider_reference=nutanix.ProjectUserListIdentityProviderUserIdentityProviderReferenceArgs(
uuid="string",
kind="string",
name="string",
),
username="string",
),
metadata={
"string": "string",
},
)],
user_reference_lists=[nutanix.ProjectUserReferenceListArgs(
uuid="string",
kind="string",
name="string",
)],
account_reference_lists=[nutanix.ProjectAccountReferenceListArgs(
uuid="string",
kind="string",
name="string",
)])
const projectResource = new nutanix.Project("projectResource", {
defaultSubnetReference: {
uuid: "string",
kind: "string",
name: "string",
},
description: "string",
externalUserGroupReferenceLists: [{
uuid: "string",
kind: "string",
name: "string",
}],
clusterReferenceLists: [{
uuid: "string",
kind: "string",
name: "string",
}],
name: "string",
clusterUuid: "string",
defaultEnvironmentReference: {
uuid: "string",
kind: "string",
name: "string",
},
apiVersion: "string",
acps: [{
roleReference: {
kind: "string",
uuid: "string",
name: "string",
},
contextFilterLists: [{
entityFilterExpressionLists: [{
operator: "string",
rightHandSide: {
categories: {
name: "string",
values: ["string"],
},
collection: "string",
uuidLists: ["string"],
},
leftHandSideEntityType: "string",
}],
scopeFilterExpressionLists: [{
leftHandSide: "string",
operator: "string",
rightHandSide: {
categories: {
name: "string",
values: ["string"],
},
collection: "string",
uuidLists: ["string"],
},
}],
}],
description: "string",
metadata: {
string: "string",
},
name: "string",
userGroupReferenceLists: [{
uuid: "string",
kind: "string",
name: "string",
}],
userReferenceLists: [{
uuid: "string",
kind: "string",
name: "string",
}],
}],
enableCollab: false,
ownerReference: {
string: "string",
},
externalNetworkLists: [{
uuid: "string",
name: "string",
}],
vpcReferenceLists: [{
uuid: "string",
kind: "string",
name: "string",
}],
categories: [{
name: "string",
value: "string",
}],
environmentReferenceLists: [{
uuid: "string",
kind: "string",
name: "string",
}],
projectReference: {
string: "string",
},
resourceDomain: {
resources: [{
limit: 0,
resourceType: "string",
units: "string",
value: 0,
}],
},
subnetReferenceLists: [{
uuid: "string",
kind: "string",
name: "string",
}],
tunnelReferenceLists: [{
uuid: "string",
kind: "string",
name: "string",
}],
useProjectInternal: false,
userGroupLists: [{
directoryServiceOus: [{
distinguishedName: "string",
}],
directoryServiceUserGroups: [{
distinguishedName: "string",
}],
metadata: {
string: "string",
},
samlUserGroups: [{
idpUuid: "string",
name: "string",
}],
}],
userLists: [{
directoryServiceUser: {
directoryServiceReference: {
uuid: "string",
kind: "string",
name: "string",
},
defaultUserPrincipalName: "string",
userPrincipalName: "string",
},
identityProviderUser: {
identityProviderReference: {
uuid: "string",
kind: "string",
name: "string",
},
username: "string",
},
metadata: {
string: "string",
},
}],
userReferenceLists: [{
uuid: "string",
kind: "string",
name: "string",
}],
accountReferenceLists: [{
uuid: "string",
kind: "string",
name: "string",
}],
});
type: nutanix:Project
properties:
accountReferenceLists:
- kind: string
name: string
uuid: string
acps:
- contextFilterLists:
- entityFilterExpressionLists:
- leftHandSideEntityType: string
operator: string
rightHandSide:
categories:
name: string
values:
- string
collection: string
uuidLists:
- string
scopeFilterExpressionLists:
- leftHandSide: string
operator: string
rightHandSide:
categories:
name: string
values:
- string
collection: string
uuidLists:
- string
description: string
metadata:
string: string
name: string
roleReference:
kind: string
name: string
uuid: string
userGroupReferenceLists:
- kind: string
name: string
uuid: string
userReferenceLists:
- kind: string
name: string
uuid: string
apiVersion: string
categories:
- name: string
value: string
clusterReferenceLists:
- kind: string
name: string
uuid: string
clusterUuid: string
defaultEnvironmentReference:
kind: string
name: string
uuid: string
defaultSubnetReference:
kind: string
name: string
uuid: string
description: string
enableCollab: false
environmentReferenceLists:
- kind: string
name: string
uuid: string
externalNetworkLists:
- name: string
uuid: string
externalUserGroupReferenceLists:
- kind: string
name: string
uuid: string
name: string
ownerReference:
string: string
projectReference:
string: string
resourceDomain:
resources:
- limit: 0
resourceType: string
units: string
value: 0
subnetReferenceLists:
- kind: string
name: string
uuid: string
tunnelReferenceLists:
- kind: string
name: string
uuid: string
useProjectInternal: false
userGroupLists:
- directoryServiceOus:
- distinguishedName: string
directoryServiceUserGroups:
- distinguishedName: string
metadata:
string: string
samlUserGroups:
- idpUuid: string
name: string
userLists:
- directoryServiceUser:
defaultUserPrincipalName: string
directoryServiceReference:
kind: string
name: string
uuid: string
userPrincipalName: string
identityProviderUser:
identityProviderReference:
kind: string
name: string
uuid: string
username: string
metadata:
string: string
userReferenceLists:
- kind: string
name: string
uuid: string
vpcReferenceLists:
- kind: string
name: string
uuid: string
Project Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Project resource accepts the following input properties:
- Default
Subnet PiersReference Karsenbarg. Nutanix. Inputs. Project Default Subnet Reference - Description string
- A description for project.
- Account
Reference List<PiersLists Karsenbarg. Nutanix. Inputs. Project Account Reference List> - Acps
List<Piers
Karsenbarg. Nutanix. Inputs. Project Acp> - Api
Version string - Categories
List<Piers
Karsenbarg. Nutanix. Inputs. Project Category> - (Optional) The category values represented as a dictionary of key > list of values.
- Cluster
Reference List<PiersLists Karsenbarg. Nutanix. Inputs. Project Cluster Reference List> - Cluster
Uuid string - The UUID of cluster. (Required when using project_internal flag).
- Default
Environment PiersReference Karsenbarg. Nutanix. Inputs. Project Default Environment Reference - Enable
Collab bool - flag to allow collaboration of projects. (Use with project_internal flag)
- Environment
Reference List<PiersLists Karsenbarg. Nutanix. Inputs. Project Environment Reference List> - External
Network List<PiersLists Karsenbarg. Nutanix. Inputs. Project External Network List> - External
User List<PiersGroup Reference Lists Karsenbarg. Nutanix. Inputs. Project External User Group Reference List> - Name string
- The name for the project.
- Owner
Reference Dictionary<string, string> - Project
Reference Dictionary<string, string> - Resource
Domain PiersKarsenbarg. Nutanix. Inputs. Project Resource Domain - Subnet
Reference List<PiersLists Karsenbarg. Nutanix. Inputs. Project Subnet Reference List> - Tunnel
Reference List<PiersLists Karsenbarg. Nutanix. Inputs. Project Tunnel Reference List> - Use
Project boolInternal - flag to use project internal for user role mapping
- User
Group List<PiersLists Karsenbarg. Nutanix. Inputs. Project User Group List> - User
Lists List<PiersKarsenbarg. Nutanix. Inputs. Project User List> - User
Reference List<PiersLists Karsenbarg. Nutanix. Inputs. Project User Reference List> - List of Reference of users.
- Vpc
Reference List<PiersLists Karsenbarg. Nutanix. Inputs. Project Vpc Reference List>
- Default
Subnet ProjectReference Default Subnet Reference Args - Description string
- A description for project.
- Account
Reference []ProjectLists Account Reference List Args - Acps
[]Project
Acp Args - Api
Version string - Categories
[]Project
Category Args - (Optional) The category values represented as a dictionary of key > list of values.
- Cluster
Reference []ProjectLists Cluster Reference List Args - Cluster
Uuid string - The UUID of cluster. (Required when using project_internal flag).
- Default
Environment ProjectReference Default Environment Reference Args - Enable
Collab bool - flag to allow collaboration of projects. (Use with project_internal flag)
- Environment
Reference []ProjectLists Environment Reference List Args - External
Network []ProjectLists External Network List Args - External
User []ProjectGroup Reference Lists External User Group Reference List Args - Name string
- The name for the project.
- Owner
Reference map[string]string - Project
Reference map[string]string - Resource
Domain ProjectResource Domain Args - Subnet
Reference []ProjectLists Subnet Reference List Args - Tunnel
Reference []ProjectLists Tunnel Reference List Args - Use
Project boolInternal - flag to use project internal for user role mapping
- User
Group []ProjectLists User Group List Args - User
Lists []ProjectUser List Args - User
Reference []ProjectLists User Reference List Args - List of Reference of users.
- Vpc
Reference []ProjectLists Vpc Reference List Args
- default
Subnet ProjectReference Default Subnet Reference - description String
- A description for project.
- account
Reference List<ProjectLists Account Reference List> - acps
List<Project
Acp> - api
Version String - categories
List<Project
Category> - (Optional) The category values represented as a dictionary of key > list of values.
- cluster
Reference List<ProjectLists Cluster Reference List> - cluster
Uuid String - The UUID of cluster. (Required when using project_internal flag).
- default
Environment ProjectReference Default Environment Reference - enable
Collab Boolean - flag to allow collaboration of projects. (Use with project_internal flag)
- environment
Reference List<ProjectLists Environment Reference List> - external
Network List<ProjectLists External Network List> - external
User List<ProjectGroup Reference Lists External User Group Reference List> - name String
- The name for the project.
- owner
Reference Map<String,String> - project
Reference Map<String,String> - resource
Domain ProjectResource Domain - subnet
Reference List<ProjectLists Subnet Reference List> - tunnel
Reference List<ProjectLists Tunnel Reference List> - use
Project BooleanInternal - flag to use project internal for user role mapping
- user
Group List<ProjectLists User Group List> - user
Lists List<ProjectUser List> - user
Reference List<ProjectLists User Reference List> - List of Reference of users.
- vpc
Reference List<ProjectLists Vpc Reference List>
- default
Subnet ProjectReference Default Subnet Reference - description string
- A description for project.
- account
Reference ProjectLists Account Reference List[] - acps
Project
Acp[] - api
Version string - categories
Project
Category[] - (Optional) The category values represented as a dictionary of key > list of values.
- cluster
Reference ProjectLists Cluster Reference List[] - cluster
Uuid string - The UUID of cluster. (Required when using project_internal flag).
- default
Environment ProjectReference Default Environment Reference - enable
Collab boolean - flag to allow collaboration of projects. (Use with project_internal flag)
- environment
Reference ProjectLists Environment Reference List[] - external
Network ProjectLists External Network List[] - external
User ProjectGroup Reference Lists External User Group Reference List[] - name string
- The name for the project.
- owner
Reference {[key: string]: string} - project
Reference {[key: string]: string} - resource
Domain ProjectResource Domain - subnet
Reference ProjectLists Subnet Reference List[] - tunnel
Reference ProjectLists Tunnel Reference List[] - use
Project booleanInternal - flag to use project internal for user role mapping
- user
Group ProjectLists User Group List[] - user
Lists ProjectUser List[] - user
Reference ProjectLists User Reference List[] - List of Reference of users.
- vpc
Reference ProjectLists Vpc Reference List[]
- default_
subnet_ Projectreference Default Subnet Reference Args - description str
- A description for project.
- account_
reference_ Sequence[Projectlists Account Reference List Args] - acps
Sequence[Project
Acp Args] - api_
version str - categories
Sequence[Project
Category Args] - (Optional) The category values represented as a dictionary of key > list of values.
- cluster_
reference_ Sequence[Projectlists Cluster Reference List Args] - cluster_
uuid str - The UUID of cluster. (Required when using project_internal flag).
- default_
environment_ Projectreference Default Environment Reference Args - enable_
collab bool - flag to allow collaboration of projects. (Use with project_internal flag)
- environment_
reference_ Sequence[Projectlists Environment Reference List Args] - external_
network_ Sequence[Projectlists External Network List Args] - external_
user_ Sequence[Projectgroup_ reference_ lists External User Group Reference List Args] - name str
- The name for the project.
- owner_
reference Mapping[str, str] - project_
reference Mapping[str, str] - resource_
domain ProjectResource Domain Args - subnet_
reference_ Sequence[Projectlists Subnet Reference List Args] - tunnel_
reference_ Sequence[Projectlists Tunnel Reference List Args] - use_
project_ boolinternal - flag to use project internal for user role mapping
- user_
group_ Sequence[Projectlists User Group List Args] - user_
lists Sequence[ProjectUser List Args] - user_
reference_ Sequence[Projectlists User Reference List Args] - List of Reference of users.
- vpc_
reference_ Sequence[Projectlists Vpc Reference List Args]
- default
Subnet Property MapReference - description String
- A description for project.
- account
Reference List<Property Map>Lists - acps List<Property Map>
- api
Version String - categories List<Property Map>
- (Optional) The category values represented as a dictionary of key > list of values.
- cluster
Reference List<Property Map>Lists - cluster
Uuid String - The UUID of cluster. (Required when using project_internal flag).
- default
Environment Property MapReference - enable
Collab Boolean - flag to allow collaboration of projects. (Use with project_internal flag)
- environment
Reference List<Property Map>Lists - external
Network List<Property Map>Lists - external
User List<Property Map>Group Reference Lists - name String
- The name for the project.
- owner
Reference Map<String> - project
Reference Map<String> - resource
Domain Property Map - subnet
Reference List<Property Map>Lists - tunnel
Reference List<Property Map>Lists - use
Project BooleanInternal - flag to use project internal for user role mapping
- user
Group List<Property Map>Lists - user
Lists List<Property Map> - user
Reference List<Property Map>Lists - List of Reference of users.
- vpc
Reference List<Property Map>Lists
Outputs
All input properties are implicitly available as output properties. Additionally, the Project resource produces the following output properties:
- id str
- The provider-assigned unique ID for this managed resource.
- is_
default bool - metadata Mapping[str, str]
- state str
Look up Existing Project Resource
Get an existing Project resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ProjectState, opts?: CustomResourceOptions): Project
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_reference_lists: Optional[Sequence[ProjectAccountReferenceListArgs]] = None,
acps: Optional[Sequence[ProjectAcpArgs]] = None,
api_version: Optional[str] = None,
categories: Optional[Sequence[ProjectCategoryArgs]] = None,
cluster_reference_lists: Optional[Sequence[ProjectClusterReferenceListArgs]] = None,
cluster_uuid: Optional[str] = None,
default_environment_reference: Optional[ProjectDefaultEnvironmentReferenceArgs] = None,
default_subnet_reference: Optional[ProjectDefaultSubnetReferenceArgs] = None,
description: Optional[str] = None,
enable_collab: Optional[bool] = None,
environment_reference_lists: Optional[Sequence[ProjectEnvironmentReferenceListArgs]] = None,
external_network_lists: Optional[Sequence[ProjectExternalNetworkListArgs]] = None,
external_user_group_reference_lists: Optional[Sequence[ProjectExternalUserGroupReferenceListArgs]] = None,
is_default: Optional[bool] = None,
metadata: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
owner_reference: Optional[Mapping[str, str]] = None,
project_reference: Optional[Mapping[str, str]] = None,
resource_domain: Optional[ProjectResourceDomainArgs] = None,
state: Optional[str] = None,
subnet_reference_lists: Optional[Sequence[ProjectSubnetReferenceListArgs]] = None,
tunnel_reference_lists: Optional[Sequence[ProjectTunnelReferenceListArgs]] = None,
use_project_internal: Optional[bool] = None,
user_group_lists: Optional[Sequence[ProjectUserGroupListArgs]] = None,
user_lists: Optional[Sequence[ProjectUserListArgs]] = None,
user_reference_lists: Optional[Sequence[ProjectUserReferenceListArgs]] = None,
vpc_reference_lists: Optional[Sequence[ProjectVpcReferenceListArgs]] = None) -> Project
func GetProject(ctx *Context, name string, id IDInput, state *ProjectState, opts ...ResourceOption) (*Project, error)
public static Project Get(string name, Input<string> id, ProjectState? state, CustomResourceOptions? opts = null)
public static Project get(String name, Output<String> id, ProjectState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Reference List<PiersLists Karsenbarg. Nutanix. Inputs. Project Account Reference List> - Acps
List<Piers
Karsenbarg. Nutanix. Inputs. Project Acp> - Api
Version string - Categories
List<Piers
Karsenbarg. Nutanix. Inputs. Project Category> - (Optional) The category values represented as a dictionary of key > list of values.
- Cluster
Reference List<PiersLists Karsenbarg. Nutanix. Inputs. Project Cluster Reference List> - Cluster
Uuid string - The UUID of cluster. (Required when using project_internal flag).
- Default
Environment PiersReference Karsenbarg. Nutanix. Inputs. Project Default Environment Reference - Default
Subnet PiersReference Karsenbarg. Nutanix. Inputs. Project Default Subnet Reference - Description string
- A description for project.
- Enable
Collab bool - flag to allow collaboration of projects. (Use with project_internal flag)
- Environment
Reference List<PiersLists Karsenbarg. Nutanix. Inputs. Project Environment Reference List> - External
Network List<PiersLists Karsenbarg. Nutanix. Inputs. Project External Network List> - External
User List<PiersGroup Reference Lists Karsenbarg. Nutanix. Inputs. Project External User Group Reference List> - Is
Default bool - Metadata Dictionary<string, string>
- Name string
- The name for the project.
- Owner
Reference Dictionary<string, string> - Project
Reference Dictionary<string, string> - Resource
Domain PiersKarsenbarg. Nutanix. Inputs. Project Resource Domain - State string
- Subnet
Reference List<PiersLists Karsenbarg. Nutanix. Inputs. Project Subnet Reference List> - Tunnel
Reference List<PiersLists Karsenbarg. Nutanix. Inputs. Project Tunnel Reference List> - Use
Project boolInternal - flag to use project internal for user role mapping
- User
Group List<PiersLists Karsenbarg. Nutanix. Inputs. Project User Group List> - User
Lists List<PiersKarsenbarg. Nutanix. Inputs. Project User List> - User
Reference List<PiersLists Karsenbarg. Nutanix. Inputs. Project User Reference List> - List of Reference of users.
- Vpc
Reference List<PiersLists Karsenbarg. Nutanix. Inputs. Project Vpc Reference List>
- Account
Reference []ProjectLists Account Reference List Args - Acps
[]Project
Acp Args - Api
Version string - Categories
[]Project
Category Args - (Optional) The category values represented as a dictionary of key > list of values.
- Cluster
Reference []ProjectLists Cluster Reference List Args - Cluster
Uuid string - The UUID of cluster. (Required when using project_internal flag).
- Default
Environment ProjectReference Default Environment Reference Args - Default
Subnet ProjectReference Default Subnet Reference Args - Description string
- A description for project.
- Enable
Collab bool - flag to allow collaboration of projects. (Use with project_internal flag)
- Environment
Reference []ProjectLists Environment Reference List Args - External
Network []ProjectLists External Network List Args - External
User []ProjectGroup Reference Lists External User Group Reference List Args - Is
Default bool - Metadata map[string]string
- Name string
- The name for the project.
- Owner
Reference map[string]string - Project
Reference map[string]string - Resource
Domain ProjectResource Domain Args - State string
- Subnet
Reference []ProjectLists Subnet Reference List Args - Tunnel
Reference []ProjectLists Tunnel Reference List Args - Use
Project boolInternal - flag to use project internal for user role mapping
- User
Group []ProjectLists User Group List Args - User
Lists []ProjectUser List Args - User
Reference []ProjectLists User Reference List Args - List of Reference of users.
- Vpc
Reference []ProjectLists Vpc Reference List Args
- account
Reference List<ProjectLists Account Reference List> - acps
List<Project
Acp> - api
Version String - categories
List<Project
Category> - (Optional) The category values represented as a dictionary of key > list of values.
- cluster
Reference List<ProjectLists Cluster Reference List> - cluster
Uuid String - The UUID of cluster. (Required when using project_internal flag).
- default
Environment ProjectReference Default Environment Reference - default
Subnet ProjectReference Default Subnet Reference - description String
- A description for project.
- enable
Collab Boolean - flag to allow collaboration of projects. (Use with project_internal flag)
- environment
Reference List<ProjectLists Environment Reference List> - external
Network List<ProjectLists External Network List> - external
User List<ProjectGroup Reference Lists External User Group Reference List> - is
Default Boolean - metadata Map<String,String>
- name String
- The name for the project.
- owner
Reference Map<String,String> - project
Reference Map<String,String> - resource
Domain ProjectResource Domain - state String
- subnet
Reference List<ProjectLists Subnet Reference List> - tunnel
Reference List<ProjectLists Tunnel Reference List> - use
Project BooleanInternal - flag to use project internal for user role mapping
- user
Group List<ProjectLists User Group List> - user
Lists List<ProjectUser List> - user
Reference List<ProjectLists User Reference List> - List of Reference of users.
- vpc
Reference List<ProjectLists Vpc Reference List>
- account
Reference ProjectLists Account Reference List[] - acps
Project
Acp[] - api
Version string - categories
Project
Category[] - (Optional) The category values represented as a dictionary of key > list of values.
- cluster
Reference ProjectLists Cluster Reference List[] - cluster
Uuid string - The UUID of cluster. (Required when using project_internal flag).
- default
Environment ProjectReference Default Environment Reference - default
Subnet ProjectReference Default Subnet Reference - description string
- A description for project.
- enable
Collab boolean - flag to allow collaboration of projects. (Use with project_internal flag)
- environment
Reference ProjectLists Environment Reference List[] - external
Network ProjectLists External Network List[] - external
User ProjectGroup Reference Lists External User Group Reference List[] - is
Default boolean - metadata {[key: string]: string}
- name string
- The name for the project.
- owner
Reference {[key: string]: string} - project
Reference {[key: string]: string} - resource
Domain ProjectResource Domain - state string
- subnet
Reference ProjectLists Subnet Reference List[] - tunnel
Reference ProjectLists Tunnel Reference List[] - use
Project booleanInternal - flag to use project internal for user role mapping
- user
Group ProjectLists User Group List[] - user
Lists ProjectUser List[] - user
Reference ProjectLists User Reference List[] - List of Reference of users.
- vpc
Reference ProjectLists Vpc Reference List[]
- account_
reference_ Sequence[Projectlists Account Reference List Args] - acps
Sequence[Project
Acp Args] - api_
version str - categories
Sequence[Project
Category Args] - (Optional) The category values represented as a dictionary of key > list of values.
- cluster_
reference_ Sequence[Projectlists Cluster Reference List Args] - cluster_
uuid str - The UUID of cluster. (Required when using project_internal flag).
- default_
environment_ Projectreference Default Environment Reference Args - default_
subnet_ Projectreference Default Subnet Reference Args - description str
- A description for project.
- enable_
collab bool - flag to allow collaboration of projects. (Use with project_internal flag)
- environment_
reference_ Sequence[Projectlists Environment Reference List Args] - external_
network_ Sequence[Projectlists External Network List Args] - external_
user_ Sequence[Projectgroup_ reference_ lists External User Group Reference List Args] - is_
default bool - metadata Mapping[str, str]
- name str
- The name for the project.
- owner_
reference Mapping[str, str] - project_
reference Mapping[str, str] - resource_
domain ProjectResource Domain Args - state str
- subnet_
reference_ Sequence[Projectlists Subnet Reference List Args] - tunnel_
reference_ Sequence[Projectlists Tunnel Reference List Args] - use_
project_ boolinternal - flag to use project internal for user role mapping
- user_
group_ Sequence[Projectlists User Group List Args] - user_
lists Sequence[ProjectUser List Args] - user_
reference_ Sequence[Projectlists User Reference List Args] - List of Reference of users.
- vpc_
reference_ Sequence[Projectlists Vpc Reference List Args]
- account
Reference List<Property Map>Lists - acps List<Property Map>
- api
Version String - categories List<Property Map>
- (Optional) The category values represented as a dictionary of key > list of values.
- cluster
Reference List<Property Map>Lists - cluster
Uuid String - The UUID of cluster. (Required when using project_internal flag).
- default
Environment Property MapReference - default
Subnet Property MapReference - description String
- A description for project.
- enable
Collab Boolean - flag to allow collaboration of projects. (Use with project_internal flag)
- environment
Reference List<Property Map>Lists - external
Network List<Property Map>Lists - external
User List<Property Map>Group Reference Lists - is
Default Boolean - metadata Map<String>
- name String
- The name for the project.
- owner
Reference Map<String> - project
Reference Map<String> - resource
Domain Property Map - state String
- subnet
Reference List<Property Map>Lists - tunnel
Reference List<Property Map>Lists - use
Project BooleanInternal - flag to use project internal for user role mapping
- user
Group List<Property Map>Lists - user
Lists List<Property Map> - user
Reference List<Property Map>Lists - List of Reference of users.
- vpc
Reference List<Property Map>Lists
Supporting Types
ProjectAccountReferenceList, ProjectAccountReferenceListArgs
ProjectAcp, ProjectAcpArgs
- Role
Reference PiersKarsenbarg. Nutanix. Inputs. Project Acp Role Reference - Reference to role.
- Context
Filter List<PiersLists Karsenbarg. Nutanix. Inputs. Project Acp Context Filter List> - The list of context filters. These are OR filters. The scope-expression-list defines the context, and the filter works in conjunction with the entity-expression-list.
- Description string
- A description for project.
- Metadata Dictionary<string, string>
- Name string
- The name for the project.
- User
Group List<PiersReference Lists Karsenbarg. Nutanix. Inputs. Project Acp User Group Reference List> - List of Reference of users groups.
- User
Reference List<PiersLists Karsenbarg. Nutanix. Inputs. Project Acp User Reference List> - List of Reference of users.
- Role
Reference ProjectAcp Role Reference - Reference to role.
- Context
Filter []ProjectLists Acp Context Filter List - The list of context filters. These are OR filters. The scope-expression-list defines the context, and the filter works in conjunction with the entity-expression-list.
- Description string
- A description for project.
- Metadata map[string]string
- Name string
- The name for the project.
- User
Group []ProjectReference Lists Acp User Group Reference List - List of Reference of users groups.
- User
Reference []ProjectLists Acp User Reference List - List of Reference of users.
- role
Reference ProjectAcp Role Reference - Reference to role.
- context
Filter List<ProjectLists Acp Context Filter List> - The list of context filters. These are OR filters. The scope-expression-list defines the context, and the filter works in conjunction with the entity-expression-list.
- description String
- A description for project.
- metadata Map<String,String>
- name String
- The name for the project.
- user
Group List<ProjectReference Lists Acp User Group Reference List> - List of Reference of users groups.
- user
Reference List<ProjectLists Acp User Reference List> - List of Reference of users.
- role
Reference ProjectAcp Role Reference - Reference to role.
- context
Filter ProjectLists Acp Context Filter List[] - The list of context filters. These are OR filters. The scope-expression-list defines the context, and the filter works in conjunction with the entity-expression-list.
- description string
- A description for project.
- metadata {[key: string]: string}
- name string
- The name for the project.
- user
Group ProjectReference Lists Acp User Group Reference List[] - List of Reference of users groups.
- user
Reference ProjectLists Acp User Reference List[] - List of Reference of users.
- role_
reference ProjectAcp Role Reference - Reference to role.
- context_
filter_ Sequence[Projectlists Acp Context Filter List] - The list of context filters. These are OR filters. The scope-expression-list defines the context, and the filter works in conjunction with the entity-expression-list.
- description str
- A description for project.
- metadata Mapping[str, str]
- name str
- The name for the project.
- user_
group_ Sequence[Projectreference_ lists Acp User Group Reference List] - List of Reference of users groups.
- user_
reference_ Sequence[Projectlists Acp User Reference List] - List of Reference of users.
- role
Reference Property Map - Reference to role.
- context
Filter List<Property Map>Lists - The list of context filters. These are OR filters. The scope-expression-list defines the context, and the filter works in conjunction with the entity-expression-list.
- description String
- A description for project.
- metadata Map<String>
- name String
- The name for the project.
- user
Group List<Property Map>Reference Lists - List of Reference of users groups.
- user
Reference List<Property Map>Lists - List of Reference of users.
ProjectAcpContextFilterList, ProjectAcpContextFilterListArgs
- Entity
Filter List<PiersExpression Lists Karsenbarg. Nutanix. Inputs. Project Acp Context Filter List Entity Filter Expression List> - (Required) A list of Entity filter expressions.
- Scope
Filter List<PiersExpression Lists Karsenbarg. Nutanix. Inputs. Project Acp Context Filter List Scope Filter Expression List> - (Optional) Filter the scope of an Access Control Policy.
- Entity
Filter []ProjectExpression Lists Acp Context Filter List Entity Filter Expression List - (Required) A list of Entity filter expressions.
- Scope
Filter []ProjectExpression Lists Acp Context Filter List Scope Filter Expression List - (Optional) Filter the scope of an Access Control Policy.
- entity
Filter List<ProjectExpression Lists Acp Context Filter List Entity Filter Expression List> - (Required) A list of Entity filter expressions.
- scope
Filter List<ProjectExpression Lists Acp Context Filter List Scope Filter Expression List> - (Optional) Filter the scope of an Access Control Policy.
- entity
Filter ProjectExpression Lists Acp Context Filter List Entity Filter Expression List[] - (Required) A list of Entity filter expressions.
- scope
Filter ProjectExpression Lists Acp Context Filter List Scope Filter Expression List[] - (Optional) Filter the scope of an Access Control Policy.
- entity_
filter_ Sequence[Projectexpression_ lists Acp Context Filter List Entity Filter Expression List] - (Required) A list of Entity filter expressions.
- scope_
filter_ Sequence[Projectexpression_ lists Acp Context Filter List Scope Filter Expression List] - (Optional) Filter the scope of an Access Control Policy.
- entity
Filter List<Property Map>Expression Lists - (Required) A list of Entity filter expressions.
- scope
Filter List<Property Map>Expression Lists - (Optional) Filter the scope of an Access Control Policy.
ProjectAcpContextFilterListEntityFilterExpressionList, ProjectAcpContextFilterListEntityFilterExpressionListArgs
- Operator string
- (Required) The operator in the filter expression.
- Right
Hand PiersSide Karsenbarg. Nutanix. Inputs. Project Acp Context Filter List Entity Filter Expression List Right Hand Side - (Required) The right hand side (RHS) of an scope expression.
- Left
Hand stringSide Entity Type - (Optional) The LHS of the filter expression - the entity type.
- Operator string
- (Required) The operator in the filter expression.
- Right
Hand ProjectSide Acp Context Filter List Entity Filter Expression List Right Hand Side - (Required) The right hand side (RHS) of an scope expression.
- Left
Hand stringSide Entity Type - (Optional) The LHS of the filter expression - the entity type.
- operator String
- (Required) The operator in the filter expression.
- right
Hand ProjectSide Acp Context Filter List Entity Filter Expression List Right Hand Side - (Required) The right hand side (RHS) of an scope expression.
- left
Hand StringSide Entity Type - (Optional) The LHS of the filter expression - the entity type.
- operator string
- (Required) The operator in the filter expression.
- right
Hand ProjectSide Acp Context Filter List Entity Filter Expression List Right Hand Side - (Required) The right hand side (RHS) of an scope expression.
- left
Hand stringSide Entity Type - (Optional) The LHS of the filter expression - the entity type.
- operator str
- (Required) The operator in the filter expression.
- right_
hand_ Projectside Acp Context Filter List Entity Filter Expression List Right Hand Side - (Required) The right hand side (RHS) of an scope expression.
- left_
hand_ strside_ entity_ type - (Optional) The LHS of the filter expression - the entity type.
- operator String
- (Required) The operator in the filter expression.
- right
Hand Property MapSide - (Required) The right hand side (RHS) of an scope expression.
- left
Hand StringSide Entity Type - (Optional) The LHS of the filter expression - the entity type.
ProjectAcpContextFilterListEntityFilterExpressionListRightHandSide, ProjectAcpContextFilterListEntityFilterExpressionListRightHandSideArgs
- Categories
Piers
Karsenbarg. Nutanix. Inputs. Project Acp Context Filter List Entity Filter Expression List Right Hand Side Categories - (Optional) The category values represented as a dictionary of key > list of values.
- Collection string
- (Optional) A representative term for supported groupings of entities. ALL = All the entities of a given kind.
- Uuid
Lists List<string> - (Optional) The explicit list of UUIDs for the given kind.
- Categories
Project
Acp Context Filter List Entity Filter Expression List Right Hand Side Categories - (Optional) The category values represented as a dictionary of key > list of values.
- Collection string
- (Optional) A representative term for supported groupings of entities. ALL = All the entities of a given kind.
- Uuid
Lists []string - (Optional) The explicit list of UUIDs for the given kind.
- categories
Project
Acp Context Filter List Entity Filter Expression List Right Hand Side Categories - (Optional) The category values represented as a dictionary of key > list of values.
- collection String
- (Optional) A representative term for supported groupings of entities. ALL = All the entities of a given kind.
- uuid
Lists List<String> - (Optional) The explicit list of UUIDs for the given kind.
- categories
Project
Acp Context Filter List Entity Filter Expression List Right Hand Side Categories - (Optional) The category values represented as a dictionary of key > list of values.
- collection string
- (Optional) A representative term for supported groupings of entities. ALL = All the entities of a given kind.
- uuid
Lists string[] - (Optional) The explicit list of UUIDs for the given kind.
- categories
Project
Acp Context Filter List Entity Filter Expression List Right Hand Side Categories - (Optional) The category values represented as a dictionary of key > list of values.
- collection str
- (Optional) A representative term for supported groupings of entities. ALL = All the entities of a given kind.
- uuid_
lists Sequence[str] - (Optional) The explicit list of UUIDs for the given kind.
- categories Property Map
- (Optional) The category values represented as a dictionary of key > list of values.
- collection String
- (Optional) A representative term for supported groupings of entities. ALL = All the entities of a given kind.
- uuid
Lists List<String> - (Optional) The explicit list of UUIDs for the given kind.
ProjectAcpContextFilterListEntityFilterExpressionListRightHandSideCategories, ProjectAcpContextFilterListEntityFilterExpressionListRightHandSideCategoriesArgs
ProjectAcpContextFilterListScopeFilterExpressionList, ProjectAcpContextFilterListScopeFilterExpressionListArgs
- Left
Hand stringSide - (Optional) The LHS of the filter expression - the scope type.
- Operator string
- (Required) The operator in the filter expression.
- Right
Hand PiersSide Karsenbarg. Nutanix. Inputs. Project Acp Context Filter List Scope Filter Expression List Right Hand Side - (Required) The right hand side (RHS) of an scope expression.
- Left
Hand stringSide - (Optional) The LHS of the filter expression - the scope type.
- Operator string
- (Required) The operator in the filter expression.
- Right
Hand ProjectSide Acp Context Filter List Scope Filter Expression List Right Hand Side - (Required) The right hand side (RHS) of an scope expression.
- left
Hand StringSide - (Optional) The LHS of the filter expression - the scope type.
- operator String
- (Required) The operator in the filter expression.
- right
Hand ProjectSide Acp Context Filter List Scope Filter Expression List Right Hand Side - (Required) The right hand side (RHS) of an scope expression.
- left
Hand stringSide - (Optional) The LHS of the filter expression - the scope type.
- operator string
- (Required) The operator in the filter expression.
- right
Hand ProjectSide Acp Context Filter List Scope Filter Expression List Right Hand Side - (Required) The right hand side (RHS) of an scope expression.
- left_
hand_ strside - (Optional) The LHS of the filter expression - the scope type.
- operator str
- (Required) The operator in the filter expression.
- right_
hand_ Projectside Acp Context Filter List Scope Filter Expression List Right Hand Side - (Required) The right hand side (RHS) of an scope expression.
- left
Hand StringSide - (Optional) The LHS of the filter expression - the scope type.
- operator String
- (Required) The operator in the filter expression.
- right
Hand Property MapSide - (Required) The right hand side (RHS) of an scope expression.
ProjectAcpContextFilterListScopeFilterExpressionListRightHandSide, ProjectAcpContextFilterListScopeFilterExpressionListRightHandSideArgs
- Categories
Piers
Karsenbarg. Nutanix. Inputs. Project Acp Context Filter List Scope Filter Expression List Right Hand Side Categories - (Optional) The category values represented as a dictionary of key > list of values.
- Collection string
- (Optional) A representative term for supported groupings of entities. ALL = All the entities of a given kind.
- Uuid
Lists List<string> - (Optional) The explicit list of UUIDs for the given kind.
- Categories
Project
Acp Context Filter List Scope Filter Expression List Right Hand Side Categories - (Optional) The category values represented as a dictionary of key > list of values.
- Collection string
- (Optional) A representative term for supported groupings of entities. ALL = All the entities of a given kind.
- Uuid
Lists []string - (Optional) The explicit list of UUIDs for the given kind.
- categories
Project
Acp Context Filter List Scope Filter Expression List Right Hand Side Categories - (Optional) The category values represented as a dictionary of key > list of values.
- collection String
- (Optional) A representative term for supported groupings of entities. ALL = All the entities of a given kind.
- uuid
Lists List<String> - (Optional) The explicit list of UUIDs for the given kind.
- categories
Project
Acp Context Filter List Scope Filter Expression List Right Hand Side Categories - (Optional) The category values represented as a dictionary of key > list of values.
- collection string
- (Optional) A representative term for supported groupings of entities. ALL = All the entities of a given kind.
- uuid
Lists string[] - (Optional) The explicit list of UUIDs for the given kind.
- categories
Project
Acp Context Filter List Scope Filter Expression List Right Hand Side Categories - (Optional) The category values represented as a dictionary of key > list of values.
- collection str
- (Optional) A representative term for supported groupings of entities. ALL = All the entities of a given kind.
- uuid_
lists Sequence[str] - (Optional) The explicit list of UUIDs for the given kind.
- categories Property Map
- (Optional) The category values represented as a dictionary of key > list of values.
- collection String
- (Optional) A representative term for supported groupings of entities. ALL = All the entities of a given kind.
- uuid
Lists List<String> - (Optional) The explicit list of UUIDs for the given kind.
ProjectAcpContextFilterListScopeFilterExpressionListRightHandSideCategories, ProjectAcpContextFilterListScopeFilterExpressionListRightHandSideCategoriesArgs
ProjectAcpRoleReference, ProjectAcpRoleReferenceArgs
ProjectAcpUserGroupReferenceList, ProjectAcpUserGroupReferenceListArgs
ProjectAcpUserReferenceList, ProjectAcpUserReferenceListArgs
ProjectCategory, ProjectCategoryArgs
ProjectClusterReferenceList, ProjectClusterReferenceListArgs
ProjectDefaultEnvironmentReference, ProjectDefaultEnvironmentReferenceArgs
ProjectDefaultSubnetReference, ProjectDefaultSubnetReferenceArgs
ProjectEnvironmentReferenceList, ProjectEnvironmentReferenceListArgs
ProjectExternalNetworkList, ProjectExternalNetworkListArgs
ProjectExternalUserGroupReferenceList, ProjectExternalUserGroupReferenceListArgs
ProjectResourceDomain, ProjectResourceDomainArgs
ProjectResourceDomainResource, ProjectResourceDomainResourceArgs
- 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.
ProjectSubnetReferenceList, ProjectSubnetReferenceListArgs
ProjectTunnelReferenceList, ProjectTunnelReferenceListArgs
ProjectUserGroupList, ProjectUserGroupListArgs
- Directory
Service List<PiersOus Karsenbarg. Nutanix. Inputs. Project User Group List Directory Service Ous> - Directory
Service List<PiersUser Groups Karsenbarg. Nutanix. Inputs. Project User Group List Directory Service User Group> - Metadata Dictionary<string, string>
- Saml
User List<PiersGroups Karsenbarg. Nutanix. Inputs. Project User Group List Saml User Group>
ProjectUserGroupListDirectoryServiceOus, ProjectUserGroupListDirectoryServiceOusArgs
- Distinguished
Name string
- Distinguished
Name string
- distinguished
Name String
- distinguished
Name string
- distinguished
Name String
ProjectUserGroupListDirectoryServiceUserGroup, ProjectUserGroupListDirectoryServiceUserGroupArgs
- Distinguished
Name string
- Distinguished
Name string
- distinguished
Name String
- distinguished
Name string
- distinguished
Name String
ProjectUserGroupListSamlUserGroup, ProjectUserGroupListSamlUserGroupArgs
ProjectUserList, ProjectUserListArgs
ProjectUserListDirectoryServiceUser, ProjectUserListDirectoryServiceUserArgs
ProjectUserListDirectoryServiceUserDirectoryServiceReference, ProjectUserListDirectoryServiceUserDirectoryServiceReferenceArgs
ProjectUserListIdentityProviderUser, ProjectUserListIdentityProviderUserArgs
ProjectUserListIdentityProviderUserIdentityProviderReference, ProjectUserListIdentityProviderUserIdentityProviderReferenceArgs
ProjectUserReferenceList, ProjectUserReferenceListArgs
ProjectVpcReferenceList, ProjectVpcReferenceListArgs
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nutanix
Terraform Provider.
Nutanix v0.1.0 published on Tuesday, Sep 24, 2024 by Piers Karsenbarg