vsphere.ConfigurationProfile
Explore with Pulumi AI
Create ConfigurationProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ConfigurationProfile(name: string, args: ConfigurationProfileArgs, opts?: CustomResourceOptions);
@overload
def ConfigurationProfile(resource_name: str,
args: ConfigurationProfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ConfigurationProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
configuration: Optional[str] = None,
reference_host_id: Optional[str] = None)
func NewConfigurationProfile(ctx *Context, name string, args ConfigurationProfileArgs, opts ...ResourceOption) (*ConfigurationProfile, error)
public ConfigurationProfile(string name, ConfigurationProfileArgs args, CustomResourceOptions? opts = null)
public ConfigurationProfile(String name, ConfigurationProfileArgs args)
public ConfigurationProfile(String name, ConfigurationProfileArgs args, CustomResourceOptions options)
type: vsphere:ConfigurationProfile
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 ConfigurationProfileArgs
- 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 ConfigurationProfileArgs
- 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 ConfigurationProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConfigurationProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConfigurationProfileArgs
- 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 configurationProfileResource = new VSphere.ConfigurationProfile("configurationProfileResource", new()
{
ClusterId = "string",
Configuration = "string",
ReferenceHostId = "string",
});
example, err := vsphere.NewConfigurationProfile(ctx, "configurationProfileResource", &vsphere.ConfigurationProfileArgs{
ClusterId: pulumi.String("string"),
Configuration: pulumi.String("string"),
ReferenceHostId: pulumi.String("string"),
})
var configurationProfileResource = new ConfigurationProfile("configurationProfileResource", ConfigurationProfileArgs.builder()
.clusterId("string")
.configuration("string")
.referenceHostId("string")
.build());
configuration_profile_resource = vsphere.ConfigurationProfile("configurationProfileResource",
cluster_id="string",
configuration="string",
reference_host_id="string")
const configurationProfileResource = new vsphere.ConfigurationProfile("configurationProfileResource", {
clusterId: "string",
configuration: "string",
referenceHostId: "string",
});
type: vsphere:ConfigurationProfile
properties:
clusterId: string
configuration: string
referenceHostId: string
ConfigurationProfile 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 ConfigurationProfile resource accepts the following input properties:
- Cluster
Id string - The identifier of the cluster.
- Configuration string
- The configuration JSON provided as a plain string. This argument can only be specified if
reference_host_id
is not set. - Reference
Host stringId - The identifier of the host to use as a configuration source.
The host needs to be a member of the cluster identified by
cluster_id
. This argument can only be specified ifconfiguration
is not set.
- Cluster
Id string - The identifier of the cluster.
- Configuration string
- The configuration JSON provided as a plain string. This argument can only be specified if
reference_host_id
is not set. - Reference
Host stringId - The identifier of the host to use as a configuration source.
The host needs to be a member of the cluster identified by
cluster_id
. This argument can only be specified ifconfiguration
is not set.
- cluster
Id String - The identifier of the cluster.
- configuration String
- The configuration JSON provided as a plain string. This argument can only be specified if
reference_host_id
is not set. - reference
Host StringId - The identifier of the host to use as a configuration source.
The host needs to be a member of the cluster identified by
cluster_id
. This argument can only be specified ifconfiguration
is not set.
- cluster
Id string - The identifier of the cluster.
- configuration string
- The configuration JSON provided as a plain string. This argument can only be specified if
reference_host_id
is not set. - reference
Host stringId - The identifier of the host to use as a configuration source.
The host needs to be a member of the cluster identified by
cluster_id
. This argument can only be specified ifconfiguration
is not set.
- cluster_
id str - The identifier of the cluster.
- configuration str
- The configuration JSON provided as a plain string. This argument can only be specified if
reference_host_id
is not set. - reference_
host_ strid - The identifier of the host to use as a configuration source.
The host needs to be a member of the cluster identified by
cluster_id
. This argument can only be specified ifconfiguration
is not set.
- cluster
Id String - The identifier of the cluster.
- configuration String
- The configuration JSON provided as a plain string. This argument can only be specified if
reference_host_id
is not set. - reference
Host StringId - The identifier of the host to use as a configuration source.
The host needs to be a member of the cluster identified by
cluster_id
. This argument can only be specified ifconfiguration
is not set.
Outputs
All input properties are implicitly available as output properties. Additionally, the ConfigurationProfile resource produces the following output properties:
Look up Existing ConfigurationProfile Resource
Get an existing ConfigurationProfile 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?: ConfigurationProfileState, opts?: CustomResourceOptions): ConfigurationProfile
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
configuration: Optional[str] = None,
reference_host_id: Optional[str] = None,
schema: Optional[str] = None) -> ConfigurationProfile
func GetConfigurationProfile(ctx *Context, name string, id IDInput, state *ConfigurationProfileState, opts ...ResourceOption) (*ConfigurationProfile, error)
public static ConfigurationProfile Get(string name, Input<string> id, ConfigurationProfileState? state, CustomResourceOptions? opts = null)
public static ConfigurationProfile get(String name, Output<String> id, ConfigurationProfileState state, CustomResourceOptions options)
resources: _: type: vsphere:ConfigurationProfile get: id: ${id}
- 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.
- Cluster
Id string - The identifier of the cluster.
- Configuration string
- The configuration JSON provided as a plain string. This argument can only be specified if
reference_host_id
is not set. - Reference
Host stringId - The identifier of the host to use as a configuration source.
The host needs to be a member of the cluster identified by
cluster_id
. This argument can only be specified ifconfiguration
is not set. - Schema string
- The JSON schema for the profile.
- Cluster
Id string - The identifier of the cluster.
- Configuration string
- The configuration JSON provided as a plain string. This argument can only be specified if
reference_host_id
is not set. - Reference
Host stringId - The identifier of the host to use as a configuration source.
The host needs to be a member of the cluster identified by
cluster_id
. This argument can only be specified ifconfiguration
is not set. - Schema string
- The JSON schema for the profile.
- cluster
Id String - The identifier of the cluster.
- configuration String
- The configuration JSON provided as a plain string. This argument can only be specified if
reference_host_id
is not set. - reference
Host StringId - The identifier of the host to use as a configuration source.
The host needs to be a member of the cluster identified by
cluster_id
. This argument can only be specified ifconfiguration
is not set. - schema String
- The JSON schema for the profile.
- cluster
Id string - The identifier of the cluster.
- configuration string
- The configuration JSON provided as a plain string. This argument can only be specified if
reference_host_id
is not set. - reference
Host stringId - The identifier of the host to use as a configuration source.
The host needs to be a member of the cluster identified by
cluster_id
. This argument can only be specified ifconfiguration
is not set. - schema string
- The JSON schema for the profile.
- cluster_
id str - The identifier of the cluster.
- configuration str
- The configuration JSON provided as a plain string. This argument can only be specified if
reference_host_id
is not set. - reference_
host_ strid - The identifier of the host to use as a configuration source.
The host needs to be a member of the cluster identified by
cluster_id
. This argument can only be specified ifconfiguration
is not set. - schema str
- The JSON schema for the profile.
- cluster
Id String - The identifier of the cluster.
- configuration String
- The configuration JSON provided as a plain string. This argument can only be specified if
reference_host_id
is not set. - reference
Host StringId - The identifier of the host to use as a configuration source.
The host needs to be a member of the cluster identified by
cluster_id
. This argument can only be specified ifconfiguration
is not set. - schema String
- The JSON schema for the profile.
Package Details
- Repository
- vSphere pulumi/pulumi-vsphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vsphere
Terraform Provider.