published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
Resource for publishing Terraform/OpenTofu Provider Versions in the IaCM Provider Registry. Publishing makes the provider version available for use.
Create InfraProviderVersionPublish Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InfraProviderVersionPublish(name: string, args: InfraProviderVersionPublishArgs, opts?: CustomResourceOptions);@overload
def InfraProviderVersionPublish(resource_name: str,
args: InfraProviderVersionPublishArgs,
opts: Optional[ResourceOptions] = None)
@overload
def InfraProviderVersionPublish(resource_name: str,
opts: Optional[ResourceOptions] = None,
provider_id: Optional[str] = None,
version: Optional[str] = None)func NewInfraProviderVersionPublish(ctx *Context, name string, args InfraProviderVersionPublishArgs, opts ...ResourceOption) (*InfraProviderVersionPublish, error)public InfraProviderVersionPublish(string name, InfraProviderVersionPublishArgs args, CustomResourceOptions? opts = null)
public InfraProviderVersionPublish(String name, InfraProviderVersionPublishArgs args)
public InfraProviderVersionPublish(String name, InfraProviderVersionPublishArgs args, CustomResourceOptions options)
type: harness:platform:InfraProviderVersionPublish
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 InfraProviderVersionPublishArgs
- 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 InfraProviderVersionPublishArgs
- 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 InfraProviderVersionPublishArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InfraProviderVersionPublishArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InfraProviderVersionPublishArgs
- 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 infraProviderVersionPublishResource = new Harness.Platform.InfraProviderVersionPublish("infraProviderVersionPublishResource", new()
{
ProviderId = "string",
Version = "string",
});
example, err := platform.NewInfraProviderVersionPublish(ctx, "infraProviderVersionPublishResource", &platform.InfraProviderVersionPublishArgs{
ProviderId: pulumi.String("string"),
Version: pulumi.String("string"),
})
var infraProviderVersionPublishResource = new InfraProviderVersionPublish("infraProviderVersionPublishResource", InfraProviderVersionPublishArgs.builder()
.providerId("string")
.version("string")
.build());
infra_provider_version_publish_resource = harness.platform.InfraProviderVersionPublish("infraProviderVersionPublishResource",
provider_id="string",
version="string")
const infraProviderVersionPublishResource = new harness.platform.InfraProviderVersionPublish("infraProviderVersionPublishResource", {
providerId: "string",
version: "string",
});
type: harness:platform:InfraProviderVersionPublish
properties:
providerId: string
version: string
InfraProviderVersionPublish 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 InfraProviderVersionPublish resource accepts the following input properties:
- Provider
Id string - The ID of the provider.
- Version string
- Provider version number to publish.
- Provider
Id string - The ID of the provider.
- Version string
- Provider version number to publish.
- provider
Id String - The ID of the provider.
- version String
- Provider version number to publish.
- provider
Id string - The ID of the provider.
- version string
- Provider version number to publish.
- provider_
id str - The ID of the provider.
- version str
- Provider version number to publish.
- provider
Id String - The ID of the provider.
- version String
- Provider version number to publish.
Outputs
All input properties are implicitly available as output properties. Additionally, the InfraProviderVersionPublish resource produces the following output properties:
Look up Existing InfraProviderVersionPublish Resource
Get an existing InfraProviderVersionPublish 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?: InfraProviderVersionPublishState, opts?: CustomResourceOptions): InfraProviderVersionPublish@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
provider_id: Optional[str] = None,
published: Optional[bool] = None,
version: Optional[str] = None) -> InfraProviderVersionPublishfunc GetInfraProviderVersionPublish(ctx *Context, name string, id IDInput, state *InfraProviderVersionPublishState, opts ...ResourceOption) (*InfraProviderVersionPublish, error)public static InfraProviderVersionPublish Get(string name, Input<string> id, InfraProviderVersionPublishState? state, CustomResourceOptions? opts = null)public static InfraProviderVersionPublish get(String name, Output<String> id, InfraProviderVersionPublishState state, CustomResourceOptions options)resources: _: type: harness:platform:InfraProviderVersionPublish 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.
- Provider
Id string - The ID of the provider.
- Published bool
- Indicates if the provider version is published.
- Version string
- Provider version number to publish.
- Provider
Id string - The ID of the provider.
- Published bool
- Indicates if the provider version is published.
- Version string
- Provider version number to publish.
- provider
Id String - The ID of the provider.
- published Boolean
- Indicates if the provider version is published.
- version String
- Provider version number to publish.
- provider
Id string - The ID of the provider.
- published boolean
- Indicates if the provider version is published.
- version string
- Provider version number to publish.
- provider_
id str - The ID of the provider.
- published bool
- Indicates if the provider version is published.
- version str
- Provider version number to publish.
- provider
Id String - The ID of the provider.
- published Boolean
- Indicates if the provider version is published.
- version String
- Provider version number to publish.
Import
The pulumi import command can be used, for example:
$ pulumi import harness:platform/infraProviderVersionPublish:InfraProviderVersionPublish example <provider_id>/<version>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harnessTerraform Provider.
published on Thursday, Mar 12, 2026 by Pulumi
