vsphere.OfflineSoftwareDepot
Explore with Pulumi AI
Provides a VMware vSphere offline software depot resource.
Example Usage
Create OfflineSoftwareDepot Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OfflineSoftwareDepot(name: string, args: OfflineSoftwareDepotArgs, opts?: CustomResourceOptions);
@overload
def OfflineSoftwareDepot(resource_name: str,
args: OfflineSoftwareDepotArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OfflineSoftwareDepot(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[str] = None)
func NewOfflineSoftwareDepot(ctx *Context, name string, args OfflineSoftwareDepotArgs, opts ...ResourceOption) (*OfflineSoftwareDepot, error)
public OfflineSoftwareDepot(string name, OfflineSoftwareDepotArgs args, CustomResourceOptions? opts = null)
public OfflineSoftwareDepot(String name, OfflineSoftwareDepotArgs args)
public OfflineSoftwareDepot(String name, OfflineSoftwareDepotArgs args, CustomResourceOptions options)
type: vsphere:OfflineSoftwareDepot
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 OfflineSoftwareDepotArgs
- 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 OfflineSoftwareDepotArgs
- 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 OfflineSoftwareDepotArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OfflineSoftwareDepotArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OfflineSoftwareDepotArgs
- 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 offlineSoftwareDepotResource = new VSphere.OfflineSoftwareDepot("offlineSoftwareDepotResource", new()
{
Location = "string",
});
example, err := vsphere.NewOfflineSoftwareDepot(ctx, "offlineSoftwareDepotResource", &vsphere.OfflineSoftwareDepotArgs{
Location: pulumi.String("string"),
})
var offlineSoftwareDepotResource = new OfflineSoftwareDepot("offlineSoftwareDepotResource", OfflineSoftwareDepotArgs.builder()
.location("string")
.build());
offline_software_depot_resource = vsphere.OfflineSoftwareDepot("offlineSoftwareDepotResource", location="string")
const offlineSoftwareDepotResource = new vsphere.OfflineSoftwareDepot("offlineSoftwareDepotResource", {location: "string"});
type: vsphere:OfflineSoftwareDepot
properties:
location: string
OfflineSoftwareDepot 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 OfflineSoftwareDepot resource accepts the following input properties:
- Location string
- The URL where the depot source is hosted.
- Location string
- The URL where the depot source is hosted.
- location String
- The URL where the depot source is hosted.
- location string
- The URL where the depot source is hosted.
- location str
- The URL where the depot source is hosted.
- location String
- The URL where the depot source is hosted.
Outputs
All input properties are implicitly available as output properties. Additionally, the OfflineSoftwareDepot resource produces the following output properties:
- Components
List<Pulumi.
VSphere. Outputs. Offline Software Depot Component> - The list of custom components in the depot.
- Id string
- The provider-assigned unique ID for this managed resource.
- Components
[]Offline
Software Depot Component - The list of custom components in the depot.
- Id string
- The provider-assigned unique ID for this managed resource.
- components
List<Offline
Software Depot Component> - The list of custom components in the depot.
- id String
- The provider-assigned unique ID for this managed resource.
- components
Offline
Software Depot Component[] - The list of custom components in the depot.
- id string
- The provider-assigned unique ID for this managed resource.
- components
Sequence[Offline
Software Depot Component] - The list of custom components in the depot.
- id str
- The provider-assigned unique ID for this managed resource.
- components List<Property Map>
- The list of custom components in the depot.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing OfflineSoftwareDepot Resource
Get an existing OfflineSoftwareDepot 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?: OfflineSoftwareDepotState, opts?: CustomResourceOptions): OfflineSoftwareDepot
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
components: Optional[Sequence[OfflineSoftwareDepotComponentArgs]] = None,
location: Optional[str] = None) -> OfflineSoftwareDepot
func GetOfflineSoftwareDepot(ctx *Context, name string, id IDInput, state *OfflineSoftwareDepotState, opts ...ResourceOption) (*OfflineSoftwareDepot, error)
public static OfflineSoftwareDepot Get(string name, Input<string> id, OfflineSoftwareDepotState? state, CustomResourceOptions? opts = null)
public static OfflineSoftwareDepot get(String name, Output<String> id, OfflineSoftwareDepotState 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.
- Components
List<Pulumi.
VSphere. Inputs. Offline Software Depot Component> - The list of custom components in the depot.
- Location string
- The URL where the depot source is hosted.
- Components
[]Offline
Software Depot Component Args - The list of custom components in the depot.
- Location string
- The URL where the depot source is hosted.
- components
List<Offline
Software Depot Component> - The list of custom components in the depot.
- location String
- The URL where the depot source is hosted.
- components
Offline
Software Depot Component[] - The list of custom components in the depot.
- location string
- The URL where the depot source is hosted.
- components
Sequence[Offline
Software Depot Component Args] - The list of custom components in the depot.
- location str
- The URL where the depot source is hosted.
- components List<Property Map>
- The list of custom components in the depot.
- location String
- The URL where the depot source is hosted.
Supporting Types
OfflineSoftwareDepotComponent, OfflineSoftwareDepotComponentArgs
- Display
Name string - The name of the component. Useful for easier identification.
- Key string
- The identifier of the component.
- Versions List<string>
- The list of available versions of the component.
- Display
Name string - The name of the component. Useful for easier identification.
- Key string
- The identifier of the component.
- Versions []string
- The list of available versions of the component.
- display
Name String - The name of the component. Useful for easier identification.
- key String
- The identifier of the component.
- versions List<String>
- The list of available versions of the component.
- display
Name string - The name of the component. Useful for easier identification.
- key string
- The identifier of the component.
- versions string[]
- The list of available versions of the component.
- display_
name str - The name of the component. Useful for easier identification.
- key str
- The identifier of the component.
- versions Sequence[str]
- The list of available versions of the component.
- display
Name String - The name of the component. Useful for easier identification.
- key String
- The identifier of the component.
- versions List<String>
- The list of available versions of the component.
Package Details
- Repository
- vSphere pulumi/pulumi-vsphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vsphere
Terraform Provider.