import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Describe a Nutanix Project and its values (if it has them). * * ## Example Usage * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * const subnet = new nutanix.Subnet("subnet", { * clusterUuid: "", * name: "sunet_test_name", * 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 projectTest = new nutanix.Project("project_test", { * name: "my-project", * description: "This is my project", * categories: [{ * name: "Environment", * value: "Staging", * }], * defaultSubnetReference: { * uuid: subnet.metadata.uuid, * }, * apiVersion: "3.1", * }); * const test = nutanix.getProjectOutput({ * projectId: projectTest.id, * }); * ``` * */ export declare function getProject(args?: GetProjectArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getProject. */ export interface GetProjectArgs { /** * - (Optional) The category values represented as a dictionary of key > list of values. */ categories?: inputs.GetProjectCategory[]; /** * List of directory service user groups. These groups are not managed by Nutanix. * * `external_user_group_reference_list.#.kind` - The kind name. Default value is `userGroup` * * `external_user_group_reference_list.#.uuid` - The UUID of a userGroup * * `external_user_group_reference_list.#.name` - The name of a user_group */ externalUserGroupReferenceLists?: inputs.GetProjectExternalUserGroupReferenceList[]; /** * - (Required) The `id` of the project. */ projectId?: string; projectName?: string; /** * List of subnets for the project. * * `subnet_reference_list.#.kind` - The kind name. Default value is `subnet` * * `subnet_reference_list.#.uuid` - The UUID of a subnet * * `subnet_reference_list.#.name` - The name of a subnet. */ subnetReferenceLists?: inputs.GetProjectSubnetReferenceList[]; /** * List of Reference of users. */ userReferenceLists?: inputs.GetProjectUserReferenceList[]; } /** * A collection of values returned by getProject. */ export interface GetProjectResult { /** * List of accounts associated with the project. * * `account_reference_list.#.kind` - The kind name. Default value is `account` * * `account_reference_list.#.uuid` - The UUID of an account. * * `account_reference_list.#.name` - The name of an account. */ readonly accountReferenceLists: outputs.GetProjectAccountReferenceList[]; readonly acps: outputs.GetProjectAcp[]; readonly apiVersion: string; /** * - (Optional) The category values represented as a dictionary of key > list of values. */ readonly categories: outputs.GetProjectCategory[]; /** * (Optional/Computed) List of clusters associated with the project.. * * `cluster_reference_list.#.kind` - (Optional) The kind name. Default value is `cluster` * * `cluster_reference_list.#.uuid` - (Required) The UUID of a cluster * * `cluster_reference_list.#.name` - (Optional/Computed) The name of a cluster. */ readonly clusterReferenceLists: outputs.GetProjectClusterReferenceList[]; /** * (Optional/Computed) Reference to a environment. */ readonly defaultEnvironmentReferences: outputs.GetProjectDefaultEnvironmentReference[]; /** * Reference to a subnet. */ readonly defaultSubnetReference: { [key: string]: string; }; /** * Description of ACP */ readonly description: string; /** * List of environments associated with the project. * * `environment_reference_list.#.kind` - The kind name. Default value is `environment` * * `environment_reference_list.#.uuid` - The UUID of an environment. * * `environment_reference_list.#.name` - The name of an environment. */ readonly environmentReferenceLists: outputs.GetProjectEnvironmentReferenceList[]; /** * 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. */ readonly externalNetworkLists: outputs.GetProjectExternalNetworkList[]; /** * List of directory service user groups. These groups are not managed by Nutanix. * * `external_user_group_reference_list.#.kind` - The kind name. Default value is `userGroup` * * `external_user_group_reference_list.#.uuid` - The UUID of a userGroup * * `external_user_group_reference_list.#.name` - The name of a user_group */ readonly externalUserGroupReferenceLists: outputs.GetProjectExternalUserGroupReferenceList[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly isDefault: boolean; readonly metadata: { [key: string]: string; }; /** * the name. */ readonly name: string; readonly ownerReference: { [key: string]: string; }; readonly projectId?: string; readonly projectName?: string; readonly projectReference: { [key: string]: string; }; /** * (Deprecated) Not supported starting from provider version `2.4.0` and expected to be empty. Remove any usage from configuration/scripts. */ readonly resourceDomains: outputs.GetProjectResourceDomain[]; readonly state: string; /** * List of subnets for the project. * * `subnet_reference_list.#.kind` - The kind name. Default value is `subnet` * * `subnet_reference_list.#.uuid` - The UUID of a subnet * * `subnet_reference_list.#.name` - The name of a subnet. */ readonly subnetReferenceLists: outputs.GetProjectSubnetReferenceList[]; /** * (Optional/Computed) List of tunnels associated with the project. * * `tunnel_reference_list.#.kind` - (Optional) The kind name. Default value is `tunnel` * * `tunnel_reference_list.#.uuid` - (Required) The UUID of a tunnel * * `tunnel_reference_list.#.name` - (Optional/Computed) The name of a tunnel. */ readonly tunnelReferenceLists: outputs.GetProjectTunnelReferenceList[]; /** * List of Reference of users. */ readonly userReferenceLists: outputs.GetProjectUserReferenceList[]; /** * (Optional/Computed) List of VPCs associated with the project.. * * `vpc_reference_list.#.kind` - (Optional) The kind name. Default value is `vpc` * * `vpc_reference_list.#.uuid` - (Required) The UUID of a vpc * * `vpc_reference_list.#.name` - (Optional/Computed) The name of a vpc. */ readonly vpcReferenceLists: outputs.GetProjectVpcReferenceList[]; } /** * Describe a Nutanix Project and its values (if it has them). * * ## Example Usage * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * const subnet = new nutanix.Subnet("subnet", { * clusterUuid: "", * name: "sunet_test_name", * 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 projectTest = new nutanix.Project("project_test", { * name: "my-project", * description: "This is my project", * categories: [{ * name: "Environment", * value: "Staging", * }], * defaultSubnetReference: { * uuid: subnet.metadata.uuid, * }, * apiVersion: "3.1", * }); * const test = nutanix.getProjectOutput({ * projectId: projectTest.id, * }); * ``` * */ export declare function getProjectOutput(args?: GetProjectOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getProject. */ export interface GetProjectOutputArgs { /** * - (Optional) The category values represented as a dictionary of key > list of values. */ categories?: pulumi.Input[] | undefined>; /** * List of directory service user groups. These groups are not managed by Nutanix. * * `external_user_group_reference_list.#.kind` - The kind name. Default value is `userGroup` * * `external_user_group_reference_list.#.uuid` - The UUID of a userGroup * * `external_user_group_reference_list.#.name` - The name of a user_group */ externalUserGroupReferenceLists?: pulumi.Input[] | undefined>; /** * - (Required) The `id` of the project. */ projectId?: pulumi.Input; projectName?: pulumi.Input; /** * List of subnets for the project. * * `subnet_reference_list.#.kind` - The kind name. Default value is `subnet` * * `subnet_reference_list.#.uuid` - The UUID of a subnet * * `subnet_reference_list.#.name` - The name of a subnet. */ subnetReferenceLists?: pulumi.Input[] | undefined>; /** * List of Reference of users. */ userReferenceLists?: pulumi.Input[] | undefined>; } //# sourceMappingURL=getProject.d.ts.map