vSphere v4.11.0 published on Thursday, Sep 5, 2024 by Pulumi
vsphere.ContentLibraryItem
Explore with Pulumi AI
Create ContentLibraryItem Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ContentLibraryItem(name: string, args: ContentLibraryItemArgs, opts?: CustomResourceOptions);
@overload
def ContentLibraryItem(resource_name: str,
args: ContentLibraryItemArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ContentLibraryItem(resource_name: str,
opts: Optional[ResourceOptions] = None,
library_id: Optional[str] = None,
description: Optional[str] = None,
file_url: Optional[str] = None,
name: Optional[str] = None,
source_uuid: Optional[str] = None,
type: Optional[str] = None)
func NewContentLibraryItem(ctx *Context, name string, args ContentLibraryItemArgs, opts ...ResourceOption) (*ContentLibraryItem, error)
public ContentLibraryItem(string name, ContentLibraryItemArgs args, CustomResourceOptions? opts = null)
public ContentLibraryItem(String name, ContentLibraryItemArgs args)
public ContentLibraryItem(String name, ContentLibraryItemArgs args, CustomResourceOptions options)
type: vsphere:ContentLibraryItem
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 ContentLibraryItemArgs
- 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 ContentLibraryItemArgs
- 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 ContentLibraryItemArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ContentLibraryItemArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ContentLibraryItemArgs
- 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 contentLibraryItemResource = new VSphere.ContentLibraryItem("contentLibraryItemResource", new()
{
LibraryId = "string",
Description = "string",
FileUrl = "string",
Name = "string",
SourceUuid = "string",
Type = "string",
});
example, err := vsphere.NewContentLibraryItem(ctx, "contentLibraryItemResource", &vsphere.ContentLibraryItemArgs{
LibraryId: pulumi.String("string"),
Description: pulumi.String("string"),
FileUrl: pulumi.String("string"),
Name: pulumi.String("string"),
SourceUuid: pulumi.String("string"),
Type: pulumi.String("string"),
})
var contentLibraryItemResource = new ContentLibraryItem("contentLibraryItemResource", ContentLibraryItemArgs.builder()
.libraryId("string")
.description("string")
.fileUrl("string")
.name("string")
.sourceUuid("string")
.type("string")
.build());
content_library_item_resource = vsphere.ContentLibraryItem("contentLibraryItemResource",
library_id="string",
description="string",
file_url="string",
name="string",
source_uuid="string",
type="string")
const contentLibraryItemResource = new vsphere.ContentLibraryItem("contentLibraryItemResource", {
libraryId: "string",
description: "string",
fileUrl: "string",
name: "string",
sourceUuid: "string",
type: "string",
});
type: vsphere:ContentLibraryItem
properties:
description: string
fileUrl: string
libraryId: string
name: string
sourceUuid: string
type: string
ContentLibraryItem 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 ContentLibraryItem resource accepts the following input properties:
- Library
Id string - The ID of the content library in which to create the item.
- Description string
- A description for the content library item.
- File
Url string - File to import as the content library item.
- Name string
- The name of the item to be created in the content library.
- Source
Uuid string - Virtual machine UUID to clone to content library.
- Type string
- Type of content library item.
One of "ovf", "iso", or "vm-template". Default:
ovf
.
- Library
Id string - The ID of the content library in which to create the item.
- Description string
- A description for the content library item.
- File
Url string - File to import as the content library item.
- Name string
- The name of the item to be created in the content library.
- Source
Uuid string - Virtual machine UUID to clone to content library.
- Type string
- Type of content library item.
One of "ovf", "iso", or "vm-template". Default:
ovf
.
- library
Id String - The ID of the content library in which to create the item.
- description String
- A description for the content library item.
- file
Url String - File to import as the content library item.
- name String
- The name of the item to be created in the content library.
- source
Uuid String - Virtual machine UUID to clone to content library.
- type String
- Type of content library item.
One of "ovf", "iso", or "vm-template". Default:
ovf
.
- library
Id string - The ID of the content library in which to create the item.
- description string
- A description for the content library item.
- file
Url string - File to import as the content library item.
- name string
- The name of the item to be created in the content library.
- source
Uuid string - Virtual machine UUID to clone to content library.
- type string
- Type of content library item.
One of "ovf", "iso", or "vm-template". Default:
ovf
.
- library_
id str - The ID of the content library in which to create the item.
- description str
- A description for the content library item.
- file_
url str - File to import as the content library item.
- name str
- The name of the item to be created in the content library.
- source_
uuid str - Virtual machine UUID to clone to content library.
- type str
- Type of content library item.
One of "ovf", "iso", or "vm-template". Default:
ovf
.
- library
Id String - The ID of the content library in which to create the item.
- description String
- A description for the content library item.
- file
Url String - File to import as the content library item.
- name String
- The name of the item to be created in the content library.
- source
Uuid String - Virtual machine UUID to clone to content library.
- type String
- Type of content library item.
One of "ovf", "iso", or "vm-template". Default:
ovf
.
Outputs
All input properties are implicitly available as output properties. Additionally, the ContentLibraryItem resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ContentLibraryItem Resource
Get an existing ContentLibraryItem 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?: ContentLibraryItemState, opts?: CustomResourceOptions): ContentLibraryItem
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
file_url: Optional[str] = None,
library_id: Optional[str] = None,
name: Optional[str] = None,
source_uuid: Optional[str] = None,
type: Optional[str] = None) -> ContentLibraryItem
func GetContentLibraryItem(ctx *Context, name string, id IDInput, state *ContentLibraryItemState, opts ...ResourceOption) (*ContentLibraryItem, error)
public static ContentLibraryItem Get(string name, Input<string> id, ContentLibraryItemState? state, CustomResourceOptions? opts = null)
public static ContentLibraryItem get(String name, Output<String> id, ContentLibraryItemState 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.
- Description string
- A description for the content library item.
- File
Url string - File to import as the content library item.
- Library
Id string - The ID of the content library in which to create the item.
- Name string
- The name of the item to be created in the content library.
- Source
Uuid string - Virtual machine UUID to clone to content library.
- Type string
- Type of content library item.
One of "ovf", "iso", or "vm-template". Default:
ovf
.
- Description string
- A description for the content library item.
- File
Url string - File to import as the content library item.
- Library
Id string - The ID of the content library in which to create the item.
- Name string
- The name of the item to be created in the content library.
- Source
Uuid string - Virtual machine UUID to clone to content library.
- Type string
- Type of content library item.
One of "ovf", "iso", or "vm-template". Default:
ovf
.
- description String
- A description for the content library item.
- file
Url String - File to import as the content library item.
- library
Id String - The ID of the content library in which to create the item.
- name String
- The name of the item to be created in the content library.
- source
Uuid String - Virtual machine UUID to clone to content library.
- type String
- Type of content library item.
One of "ovf", "iso", or "vm-template". Default:
ovf
.
- description string
- A description for the content library item.
- file
Url string - File to import as the content library item.
- library
Id string - The ID of the content library in which to create the item.
- name string
- The name of the item to be created in the content library.
- source
Uuid string - Virtual machine UUID to clone to content library.
- type string
- Type of content library item.
One of "ovf", "iso", or "vm-template". Default:
ovf
.
- description str
- A description for the content library item.
- file_
url str - File to import as the content library item.
- library_
id str - The ID of the content library in which to create the item.
- name str
- The name of the item to be created in the content library.
- source_
uuid str - Virtual machine UUID to clone to content library.
- type str
- Type of content library item.
One of "ovf", "iso", or "vm-template". Default:
ovf
.
- description String
- A description for the content library item.
- file
Url String - File to import as the content library item.
- library
Id String - The ID of the content library in which to create the item.
- name String
- The name of the item to be created in the content library.
- source
Uuid String - Virtual machine UUID to clone to content library.
- type String
- Type of content library item.
One of "ovf", "iso", or "vm-template". Default:
ovf
.
Package Details
- Repository
- vSphere pulumi/pulumi-vsphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vsphere
Terraform Provider.