ovh.CloudProject.Project
Explore with Pulumi AI
Import
Cloud project can be imported using the order_id
that can be retrieved in the order page at the creation time of the Public Cloud project.
bash
$ pulumi import ovh:CloudProject/project:Project my_cloud_project order_id
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,
ovh_subsidiary: Optional[str] = None,
plan: Optional[_cloudproject.ProjectPlanArgs] = None,
description: Optional[str] = None,
orders: Optional[Sequence[_cloudproject.ProjectOrderArgs]] = None,
payment_mean: Optional[str] = None,
plan_options: Optional[Sequence[_cloudproject.ProjectPlanOptionArgs]] = 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: ovh:CloudProject: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 Ovh.CloudProject.Project("projectResource", new()
{
OvhSubsidiary = "string",
Plan = new Ovh.CloudProject.Inputs.ProjectPlanArgs
{
Duration = "string",
PlanCode = "string",
PricingMode = "string",
CatalogName = "string",
Configurations = new[]
{
new Ovh.CloudProject.Inputs.ProjectPlanConfigurationArgs
{
Label = "string",
Value = "string",
},
},
},
Description = "string",
Orders = new[]
{
new Ovh.CloudProject.Inputs.ProjectOrderArgs
{
Date = "string",
Details = new[]
{
new Ovh.CloudProject.Inputs.ProjectOrderDetailArgs
{
Description = "string",
Domain = "string",
OrderDetailId = 0,
Quantity = "string",
},
},
ExpirationDate = "string",
OrderId = 0,
},
},
PlanOptions = new[]
{
new Ovh.CloudProject.Inputs.ProjectPlanOptionArgs
{
Duration = "string",
PlanCode = "string",
PricingMode = "string",
CatalogName = "string",
Configurations = new[]
{
new Ovh.CloudProject.Inputs.ProjectPlanOptionConfigurationArgs
{
Label = "string",
Value = "string",
},
},
},
},
});
example, err := CloudProject.NewProject(ctx, "projectResource", &CloudProject.ProjectArgs{
OvhSubsidiary: pulumi.String("string"),
Plan: &cloudproject.ProjectPlanArgs{
Duration: pulumi.String("string"),
PlanCode: pulumi.String("string"),
PricingMode: pulumi.String("string"),
CatalogName: pulumi.String("string"),
Configurations: cloudproject.ProjectPlanConfigurationArray{
&cloudproject.ProjectPlanConfigurationArgs{
Label: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
Description: pulumi.String("string"),
Orders: cloudproject.ProjectOrderArray{
&cloudproject.ProjectOrderArgs{
Date: pulumi.String("string"),
Details: cloudproject.ProjectOrderDetailArray{
&cloudproject.ProjectOrderDetailArgs{
Description: pulumi.String("string"),
Domain: pulumi.String("string"),
OrderDetailId: pulumi.Int(0),
Quantity: pulumi.String("string"),
},
},
ExpirationDate: pulumi.String("string"),
OrderId: pulumi.Int(0),
},
},
PlanOptions: cloudproject.ProjectPlanOptionArray{
&cloudproject.ProjectPlanOptionArgs{
Duration: pulumi.String("string"),
PlanCode: pulumi.String("string"),
PricingMode: pulumi.String("string"),
CatalogName: pulumi.String("string"),
Configurations: cloudproject.ProjectPlanOptionConfigurationArray{
&cloudproject.ProjectPlanOptionConfigurationArgs{
Label: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
},
})
var projectResource = new Project("projectResource", ProjectArgs.builder()
.ovhSubsidiary("string")
.plan(ProjectPlanArgs.builder()
.duration("string")
.planCode("string")
.pricingMode("string")
.catalogName("string")
.configurations(ProjectPlanConfigurationArgs.builder()
.label("string")
.value("string")
.build())
.build())
.description("string")
.orders(ProjectOrderArgs.builder()
.date("string")
.details(ProjectOrderDetailArgs.builder()
.description("string")
.domain("string")
.orderDetailId(0)
.quantity("string")
.build())
.expirationDate("string")
.orderId(0)
.build())
.planOptions(ProjectPlanOptionArgs.builder()
.duration("string")
.planCode("string")
.pricingMode("string")
.catalogName("string")
.configurations(ProjectPlanOptionConfigurationArgs.builder()
.label("string")
.value("string")
.build())
.build())
.build());
project_resource = ovh.cloud_project.Project("projectResource",
ovh_subsidiary="string",
plan=ovh.cloud_project.ProjectPlanArgs(
duration="string",
plan_code="string",
pricing_mode="string",
catalog_name="string",
configurations=[ovh.cloud_project.ProjectPlanConfigurationArgs(
label="string",
value="string",
)],
),
description="string",
orders=[ovh.cloud_project.ProjectOrderArgs(
date="string",
details=[ovh.cloud_project.ProjectOrderDetailArgs(
description="string",
domain="string",
order_detail_id=0,
quantity="string",
)],
expiration_date="string",
order_id=0,
)],
plan_options=[ovh.cloud_project.ProjectPlanOptionArgs(
duration="string",
plan_code="string",
pricing_mode="string",
catalog_name="string",
configurations=[ovh.cloud_project.ProjectPlanOptionConfigurationArgs(
label="string",
value="string",
)],
)])
const projectResource = new ovh.cloudproject.Project("projectResource", {
ovhSubsidiary: "string",
plan: {
duration: "string",
planCode: "string",
pricingMode: "string",
catalogName: "string",
configurations: [{
label: "string",
value: "string",
}],
},
description: "string",
orders: [{
date: "string",
details: [{
description: "string",
domain: "string",
orderDetailId: 0,
quantity: "string",
}],
expirationDate: "string",
orderId: 0,
}],
planOptions: [{
duration: "string",
planCode: "string",
pricingMode: "string",
catalogName: "string",
configurations: [{
label: "string",
value: "string",
}],
}],
});
type: ovh:CloudProject:Project
properties:
description: string
orders:
- date: string
details:
- description: string
domain: string
orderDetailId: 0
quantity: string
expirationDate: string
orderId: 0
ovhSubsidiary: string
plan:
catalogName: string
configurations:
- label: string
value: string
duration: string
planCode: string
pricingMode: string
planOptions:
- catalogName: string
configurations:
- label: string
value: string
duration: string
planCode: string
pricingMode: 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:
- Ovh
Subsidiary string - OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under
models.nichandle.OvhSubsidiaryEnum
- Plan
Project
Plan - Product Plan to order
- Description string
- A description associated with the user.
- Orders
List<Project
Order> - Details about the order that was used to create the public cloud project
- Payment
Mean string - Ovh payment mode
- Plan
Options List<ProjectPlan Option> - Product Plan to order
- Ovh
Subsidiary string - OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under
models.nichandle.OvhSubsidiaryEnum
- Plan
Project
Plan Args - Product Plan to order
- Description string
- A description associated with the user.
- Orders
[]Project
Order Args - Details about the order that was used to create the public cloud project
- Payment
Mean string - Ovh payment mode
- Plan
Options []ProjectPlan Option Args - Product Plan to order
- ovh
Subsidiary String - OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under
models.nichandle.OvhSubsidiaryEnum
- plan
Project
Plan - Product Plan to order
- description String
- A description associated with the user.
- orders
List<Project
Order> - Details about the order that was used to create the public cloud project
- payment
Mean String - Ovh payment mode
- plan
Options List<ProjectPlan Option> - Product Plan to order
- ovh
Subsidiary string - OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under
models.nichandle.OvhSubsidiaryEnum
- plan
Project
Plan - Product Plan to order
- description string
- A description associated with the user.
- orders
Project
Order[] - Details about the order that was used to create the public cloud project
- payment
Mean string - Ovh payment mode
- plan
Options ProjectPlan Option[] - Product Plan to order
- ovh_
subsidiary str - OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under
models.nichandle.OvhSubsidiaryEnum
- plan
cloudproject.
Project Plan Args - Product Plan to order
- description str
- A description associated with the user.
- orders
Sequence[cloudproject.
Project Order Args] - Details about the order that was used to create the public cloud project
- payment_
mean str - Ovh payment mode
- plan_
options Sequence[cloudproject.Project Plan Option Args] - Product Plan to order
- ovh
Subsidiary String - OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under
models.nichandle.OvhSubsidiaryEnum
- plan Property Map
- Product Plan to order
- description String
- A description associated with the user.
- orders List<Property Map>
- Details about the order that was used to create the public cloud project
- payment
Mean String - Ovh payment mode
- plan
Options List<Property Map> - Product Plan to order
Outputs
All input properties are implicitly available as output properties. Additionally, the Project resource produces the following output properties:
- Access string
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - openstack project id
- Project
Name string - openstack project name
- Project
URN string - The URN of the cloud project
- Status string
- project status
- Access string
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - openstack project id
- Project
Name string - openstack project name
- Project
URN string - The URN of the cloud project
- Status string
- project status
- Project
URN String - The URN of the cloud project
- access String
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - openstack project id
- project
Name String - openstack project name
- status String
- project status
- Project
URN string - The URN of the cloud project
- access string
- id string
- The provider-assigned unique ID for this managed resource.
- project
Id string - openstack project id
- project
Name string - openstack project name
- status string
- project status
- access str
- id str
- The provider-assigned unique ID for this managed resource.
- project_
id str - openstack project id
- project_
name str - openstack project name
- project_
urn str - The URN of the cloud project
- status str
- project status
- Project
URN String - The URN of the cloud project
- access String
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - openstack project id
- project
Name String - openstack project name
- status String
- project status
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,
project_urn: Optional[str] = None,
access: Optional[str] = None,
description: Optional[str] = None,
orders: Optional[Sequence[_cloudproject.ProjectOrderArgs]] = None,
ovh_subsidiary: Optional[str] = None,
payment_mean: Optional[str] = None,
plan: Optional[_cloudproject.ProjectPlanArgs] = None,
plan_options: Optional[Sequence[_cloudproject.ProjectPlanOptionArgs]] = None,
project_id: Optional[str] = None,
project_name: Optional[str] = None,
status: Optional[str] = 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.
- Access string
- Description string
- A description associated with the user.
- Orders
List<Project
Order> - Details about the order that was used to create the public cloud project
- Ovh
Subsidiary string - OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under
models.nichandle.OvhSubsidiaryEnum
- Payment
Mean string - Ovh payment mode
- Plan
Project
Plan - Product Plan to order
- Plan
Options List<ProjectPlan Option> - Product Plan to order
- Project
Id string - openstack project id
- Project
Name string - openstack project name
- Project
URN string - The URN of the cloud project
- Status string
- project status
- Access string
- Description string
- A description associated with the user.
- Orders
[]Project
Order Args - Details about the order that was used to create the public cloud project
- Ovh
Subsidiary string - OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under
models.nichandle.OvhSubsidiaryEnum
- Payment
Mean string - Ovh payment mode
- Plan
Project
Plan Args - Product Plan to order
- Plan
Options []ProjectPlan Option Args - Product Plan to order
- Project
Id string - openstack project id
- Project
Name string - openstack project name
- Project
URN string - The URN of the cloud project
- Status string
- project status
- Project
URN String - The URN of the cloud project
- access String
- description String
- A description associated with the user.
- orders
List<Project
Order> - Details about the order that was used to create the public cloud project
- ovh
Subsidiary String - OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under
models.nichandle.OvhSubsidiaryEnum
- payment
Mean String - Ovh payment mode
- plan
Project
Plan - Product Plan to order
- plan
Options List<ProjectPlan Option> - Product Plan to order
- project
Id String - openstack project id
- project
Name String - openstack project name
- status String
- project status
- Project
URN string - The URN of the cloud project
- access string
- description string
- A description associated with the user.
- orders
Project
Order[] - Details about the order that was used to create the public cloud project
- ovh
Subsidiary string - OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under
models.nichandle.OvhSubsidiaryEnum
- payment
Mean string - Ovh payment mode
- plan
Project
Plan - Product Plan to order
- plan
Options ProjectPlan Option[] - Product Plan to order
- project
Id string - openstack project id
- project
Name string - openstack project name
- status string
- project status
- access str
- description str
- A description associated with the user.
- orders
Sequence[cloudproject.
Project Order Args] - Details about the order that was used to create the public cloud project
- ovh_
subsidiary str - OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under
models.nichandle.OvhSubsidiaryEnum
- payment_
mean str - Ovh payment mode
- plan
cloudproject.
Project Plan Args - Product Plan to order
- plan_
options Sequence[cloudproject.Project Plan Option Args] - Product Plan to order
- project_
id str - openstack project id
- project_
name str - openstack project name
- project_
urn str - The URN of the cloud project
- status str
- project status
- Project
URN String - The URN of the cloud project
- access String
- description String
- A description associated with the user.
- orders List<Property Map>
- Details about the order that was used to create the public cloud project
- ovh
Subsidiary String - OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under
models.nichandle.OvhSubsidiaryEnum
- payment
Mean String - Ovh payment mode
- plan Property Map
- Product Plan to order
- plan
Options List<Property Map> - Product Plan to order
- project
Id String - openstack project id
- project
Name String - openstack project name
- status String
- project status
Supporting Types
ProjectOrder, ProjectOrderArgs
- Date string
- date
- Details
List<Project
Order Detail> - Information about a Bill entry
- Expiration
Date string - expiration date
- Order
Id int - order id, the same as the
id
- Date string
- date
- Details
[]Project
Order Detail - Information about a Bill entry
- Expiration
Date string - expiration date
- Order
Id int - order id, the same as the
id
- date String
- date
- details
List<Project
Order Detail> - Information about a Bill entry
- expiration
Date String - expiration date
- order
Id Integer - order id, the same as the
id
- date string
- date
- details
Project
Order Detail[] - Information about a Bill entry
- expiration
Date string - expiration date
- order
Id number - order id, the same as the
id
- date str
- date
- details
Sequence[cloudproject.
Project Order Detail] - Information about a Bill entry
- expiration_
date str - expiration date
- order_
id int - order id, the same as the
id
- date String
- date
- details List<Property Map>
- Information about a Bill entry
- expiration
Date String - expiration date
- order
Id Number - order id, the same as the
id
ProjectOrderDetail, ProjectOrderDetailArgs
- Description string
- A description associated with the user.
- Domain string
- expiration date
- Order
Detail intId - order detail id
- Quantity string
- quantity
- Description string
- A description associated with the user.
- Domain string
- expiration date
- Order
Detail intId - order detail id
- Quantity string
- quantity
- description String
- A description associated with the user.
- domain String
- expiration date
- order
Detail IntegerId - order detail id
- quantity String
- quantity
- description string
- A description associated with the user.
- domain string
- expiration date
- order
Detail numberId - order detail id
- quantity string
- quantity
- description str
- A description associated with the user.
- domain str
- expiration date
- order_
detail_ intid - order detail id
- quantity str
- quantity
- description String
- A description associated with the user.
- domain String
- expiration date
- order
Detail NumberId - order detail id
- quantity String
- quantity
ProjectPlan, ProjectPlanArgs
- Duration string
- duration
- Plan
Code string - Plan code. This value must be adapted depending on your
OVH_ENDPOINT
value. It'sproject.2018
forovh-{eu,ca}
andproject
when usingovh-us
. - Pricing
Mode string - Pricing model identifier
- Catalog
Name string - Catalog name
- Configurations
List<Project
Plan Configuration> - Representation of a configuration item for personalizing product
- Duration string
- duration
- Plan
Code string - Plan code. This value must be adapted depending on your
OVH_ENDPOINT
value. It'sproject.2018
forovh-{eu,ca}
andproject
when usingovh-us
. - Pricing
Mode string - Pricing model identifier
- Catalog
Name string - Catalog name
- Configurations
[]Project
Plan Configuration - Representation of a configuration item for personalizing product
- duration String
- duration
- plan
Code String - Plan code. This value must be adapted depending on your
OVH_ENDPOINT
value. It'sproject.2018
forovh-{eu,ca}
andproject
when usingovh-us
. - pricing
Mode String - Pricing model identifier
- catalog
Name String - Catalog name
- configurations
List<Project
Plan Configuration> - Representation of a configuration item for personalizing product
- duration string
- duration
- plan
Code string - Plan code. This value must be adapted depending on your
OVH_ENDPOINT
value. It'sproject.2018
forovh-{eu,ca}
andproject
when usingovh-us
. - pricing
Mode string - Pricing model identifier
- catalog
Name string - Catalog name
- configurations
Project
Plan Configuration[] - Representation of a configuration item for personalizing product
- duration str
- duration
- plan_
code str - Plan code. This value must be adapted depending on your
OVH_ENDPOINT
value. It'sproject.2018
forovh-{eu,ca}
andproject
when usingovh-us
. - pricing_
mode str - Pricing model identifier
- catalog_
name str - Catalog name
- configurations
Sequence[cloudproject.
Project Plan Configuration] - Representation of a configuration item for personalizing product
- duration String
- duration
- plan
Code String - Plan code. This value must be adapted depending on your
OVH_ENDPOINT
value. It'sproject.2018
forovh-{eu,ca}
andproject
when usingovh-us
. - pricing
Mode String - Pricing model identifier
- catalog
Name String - Catalog name
- configurations List<Property Map>
- Representation of a configuration item for personalizing product
ProjectPlanConfiguration, ProjectPlanConfigurationArgs
ProjectPlanOption, ProjectPlanOptionArgs
- Duration string
- duration
- Plan
Code string - Plan code
- Pricing
Mode string - Pricing model identifier
- Catalog
Name string - Catalog name
- Configurations
List<Project
Plan Option Configuration> - Representation of a configuration item for personalizing product
- Duration string
- duration
- Plan
Code string - Plan code
- Pricing
Mode string - Pricing model identifier
- Catalog
Name string - Catalog name
- Configurations
[]Project
Plan Option Configuration - Representation of a configuration item for personalizing product
- duration String
- duration
- plan
Code String - Plan code
- pricing
Mode String - Pricing model identifier
- catalog
Name String - Catalog name
- configurations
List<Project
Plan Option Configuration> - Representation of a configuration item for personalizing product
- duration string
- duration
- plan
Code string - Plan code
- pricing
Mode string - Pricing model identifier
- catalog
Name string - Catalog name
- configurations
Project
Plan Option Configuration[] - Representation of a configuration item for personalizing product
- duration str
- duration
- plan_
code str - Plan code
- pricing_
mode str - Pricing model identifier
- catalog_
name str - Catalog name
- configurations
Sequence[cloudproject.
Project Plan Option Configuration] - Representation of a configuration item for personalizing product
- duration String
- duration
- plan
Code String - Plan code
- pricing
Mode String - Pricing model identifier
- catalog
Name String - Catalog name
- configurations List<Property Map>
- Representation of a configuration item for personalizing product
ProjectPlanOptionConfiguration, ProjectPlanOptionConfigurationArgs
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.