ovh.CloudProject.Project
Explore with Pulumi AI
Import
Cloud project can be imported using the project_id
.
Using the following configuration:
hcl
import {
to = ovh_cloud_project.my_cloud_project
id = “
}
You can then run:
bash
$ pulumi preview -generate-config-out=cloudproject.tf
$ pulumi up
The file cloudproject.tf
will then contain the imported resource’s configuration, that can be copied next to the import
block above.
See https://developer.hashicorp.com/terraform/language/import/generating-configuration for more details.
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: Optional[ProjectArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Project(resource_name: str,
opts: Optional[ResourceOptions] = 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)
func NewProject(ctx *Context, name string, args *ProjectArgs, opts ...ResourceOption) (*Project, error)
public Project(string name, ProjectArgs? args = null, 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()
{
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,
},
},
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",
},
},
},
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{
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),
},
},
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"),
},
},
},
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()
.description("string")
.orders(ProjectOrderArgs.builder()
.date("string")
.details(ProjectOrderDetailArgs.builder()
.description("string")
.domain("string")
.orderDetailId(0)
.quantity("string")
.build())
.expirationDate("string")
.orderId(0)
.build())
.ovhSubsidiary("string")
.plan(ProjectPlanArgs.builder()
.duration("string")
.planCode("string")
.pricingMode("string")
.catalogName("string")
.configurations(ProjectPlanConfigurationArgs.builder()
.label("string")
.value("string")
.build())
.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",
description="string",
orders=[{
"date": "string",
"details": [{
"description": "string",
"domain": "string",
"order_detail_id": 0,
"quantity": "string",
}],
"expiration_date": "string",
"order_id": 0,
}],
ovh_subsidiary="string",
plan={
"duration": "string",
"plan_code": "string",
"pricing_mode": "string",
"catalog_name": "string",
"configurations": [{
"label": "string",
"value": "string",
}],
},
plan_options=[{
"duration": "string",
"plan_code": "string",
"pricing_mode": "string",
"catalog_name": "string",
"configurations": [{
"label": "string",
"value": "string",
}],
}])
const projectResource = new ovh.cloudproject.Project("projectResource", {
description: "string",
orders: [{
date: "string",
details: [{
description: "string",
domain: "string",
orderDetailId: 0,
quantity: "string",
}],
expirationDate: "string",
orderId: 0,
}],
ovhSubsidiary: "string",
plan: {
duration: "string",
planCode: "string",
pricingMode: "string",
catalogName: "string",
configurations: [{
label: "string",
value: "string",
}],
},
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Project resource accepts the following input properties:
- 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
- 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
- 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
- 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
- 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
- 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
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.