Package com.pulumi.openstack.identity
Class Project
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.openstack.identity.Project
-
public class Project extends com.pulumi.resources.CustomResourceManages a V3 Project resource within OpenStack Keystone. > **Note:** You _must_ have admin privileges in your OpenStack cloud to use this resource. ## Example Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.openstack.identity.Project; import com.pulumi.openstack.identity.ProjectArgs; 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 project1 = new Project("project1", ProjectArgs.builder() .description("A project") .build()); } } ``` ## Import Projects can be imported using the `id`, e.g. ```sh $ pulumi import openstack:identity/project:Project project_1 89c60255-9bd6-460c-822a-e2b959ede9d2 ```
-
-
Constructor Summary
Constructors Constructor Description Project(java.lang.String name)Project(java.lang.String name, ProjectArgs args)Project(java.lang.String name, ProjectArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.util.Optional<java.lang.String>>description()com.pulumi.core.Output<java.lang.String>domainId()com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>>enabled()static Projectget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, ProjectState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>>isDomain()com.pulumi.core.Output<java.lang.String>name()com.pulumi.core.Output<java.lang.String>parentId()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>tags()
-
-
-
Constructor Detail
-
Project
public Project(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
Project
public Project(java.lang.String name, @Nullable ProjectArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
Project
public Project(java.lang.String name, @Nullable ProjectArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
description
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
- Returns:
- A description of the project.
-
domainId
public com.pulumi.core.Output<java.lang.String> domainId()
- Returns:
- The domain this project belongs to.
-
enabled
public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> enabled()
- Returns:
- Whether the project is enabled or disabled. Valid values are `true` and `false`. Default is `true`.
-
isDomain
public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> isDomain()
- Returns:
- Whether this project is a domain. Valid values are `true` and `false`. Default is `false`. Changing this creates a new project/domain.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- The name of the project.
-
parentId
public com.pulumi.core.Output<java.lang.String> parentId()
- Returns:
- The parent of this project. Changing this creates a new project.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- The region in which to obtain the V3 Keystone client. If omitted, the `region` argument of the provider is used. Changing this creates a new project.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> tags()
- Returns:
- Tags for the project. Changing this updates the existing project.
-
get
public static Project get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable ProjectState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-