1. Packages
  2. Spectrocloud Provider
  3. API Docs
  4. ClusterProfileImport
spectrocloud 0.23.4 published on Monday, Apr 14, 2025 by spectrocloud

spectrocloud.ClusterProfileImport

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as spectrocloud from "@pulumi/spectrocloud";

const _import = new spectrocloud.ClusterProfileImport("import", {importFile: "/tmp/profile_import.json"});
Copy
import pulumi
import pulumi_spectrocloud as spectrocloud

import_ = spectrocloud.ClusterProfileImport("import", import_file="/tmp/profile_import.json")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/spectrocloud/spectrocloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := spectrocloud.NewClusterProfileImport(ctx, "import", &spectrocloud.ClusterProfileImportArgs{
			ImportFile: pulumi.String("/tmp/profile_import.json"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Spectrocloud = Pulumi.Spectrocloud;

return await Deployment.RunAsync(() => 
{
    var import = new Spectrocloud.ClusterProfileImport("import", new()
    {
        ImportFile = "/tmp/profile_import.json",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spectrocloud.ClusterProfileImport;
import com.pulumi.spectrocloud.ClusterProfileImportArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var import_ = new ClusterProfileImport("import", ClusterProfileImportArgs.builder()
            .importFile("/tmp/profile_import.json")
            .build());

    }
}
Copy
resources:
  import:
    type: spectrocloud:ClusterProfileImport
    properties:
      importFile: /tmp/profile_import.json
Copy

Create ClusterProfileImport Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ClusterProfileImport(name: string, args: ClusterProfileImportArgs, opts?: CustomResourceOptions);
@overload
def ClusterProfileImport(resource_name: str,
                         args: ClusterProfileImportArgs,
                         opts: Optional[ResourceOptions] = None)

@overload
def ClusterProfileImport(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         import_file: Optional[str] = None,
                         cluster_profile_import_id: Optional[str] = None,
                         context: Optional[str] = None)
func NewClusterProfileImport(ctx *Context, name string, args ClusterProfileImportArgs, opts ...ResourceOption) (*ClusterProfileImport, error)
public ClusterProfileImport(string name, ClusterProfileImportArgs args, CustomResourceOptions? opts = null)
public ClusterProfileImport(String name, ClusterProfileImportArgs args)
public ClusterProfileImport(String name, ClusterProfileImportArgs args, CustomResourceOptions options)
type: spectrocloud:ClusterProfileImport
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ClusterProfileImportArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ClusterProfileImportArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ClusterProfileImportArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ClusterProfileImportArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ClusterProfileImportArgs
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 clusterProfileImportResource = new Spectrocloud.ClusterProfileImport("clusterProfileImportResource", new()
{
    ImportFile = "string",
    ClusterProfileImportId = "string",
    Context = "string",
});
Copy
example, err := spectrocloud.NewClusterProfileImport(ctx, "clusterProfileImportResource", &spectrocloud.ClusterProfileImportArgs{
ImportFile: pulumi.String("string"),
ClusterProfileImportId: pulumi.String("string"),
Context: pulumi.String("string"),
})
Copy
var clusterProfileImportResource = new ClusterProfileImport("clusterProfileImportResource", ClusterProfileImportArgs.builder()
    .importFile("string")
    .clusterProfileImportId("string")
    .context("string")
    .build());
Copy
cluster_profile_import_resource = spectrocloud.ClusterProfileImport("clusterProfileImportResource",
    import_file="string",
    cluster_profile_import_id="string",
    context="string")
Copy
const clusterProfileImportResource = new spectrocloud.ClusterProfileImport("clusterProfileImportResource", {
    importFile: "string",
    clusterProfileImportId: "string",
    context: "string",
});
Copy
type: spectrocloud:ClusterProfileImport
properties:
    clusterProfileImportId: string
    context: string
    importFile: string
Copy

ClusterProfileImport 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 ClusterProfileImport resource accepts the following input properties:

ImportFile This property is required. string
ClusterProfileImportId string
The ID of this resource.
Context string
Allowed values are project, tenant or system. Defaults to project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
ImportFile This property is required. string
ClusterProfileImportId string
The ID of this resource.
Context string
Allowed values are project, tenant or system. Defaults to project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
importFile This property is required. String
clusterProfileImportId String
The ID of this resource.
context String
Allowed values are project, tenant or system. Defaults to project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
importFile This property is required. string
clusterProfileImportId string
The ID of this resource.
context string
Allowed values are project, tenant or system. Defaults to project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
import_file This property is required. str
cluster_profile_import_id str
The ID of this resource.
context str
Allowed values are project, tenant or system. Defaults to project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
importFile This property is required. String
clusterProfileImportId String
The ID of this resource.
context String
Allowed values are project, tenant or system. Defaults to project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.

Outputs

All input properties are implicitly available as output properties. Additionally, the ClusterProfileImport 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 ClusterProfileImport Resource

Get an existing ClusterProfileImport 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?: ClusterProfileImportState, opts?: CustomResourceOptions): ClusterProfileImport
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cluster_profile_import_id: Optional[str] = None,
        context: Optional[str] = None,
        import_file: Optional[str] = None) -> ClusterProfileImport
func GetClusterProfileImport(ctx *Context, name string, id IDInput, state *ClusterProfileImportState, opts ...ResourceOption) (*ClusterProfileImport, error)
public static ClusterProfileImport Get(string name, Input<string> id, ClusterProfileImportState? state, CustomResourceOptions? opts = null)
public static ClusterProfileImport get(String name, Output<String> id, ClusterProfileImportState state, CustomResourceOptions options)
resources:  _:    type: spectrocloud:ClusterProfileImport    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
ClusterProfileImportId string
The ID of this resource.
Context string
Allowed values are project, tenant or system. Defaults to project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
ImportFile string
ClusterProfileImportId string
The ID of this resource.
Context string
Allowed values are project, tenant or system. Defaults to project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
ImportFile string
clusterProfileImportId String
The ID of this resource.
context String
Allowed values are project, tenant or system. Defaults to project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
importFile String
clusterProfileImportId string
The ID of this resource.
context string
Allowed values are project, tenant or system. Defaults to project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
importFile string
cluster_profile_import_id str
The ID of this resource.
context str
Allowed values are project, tenant or system. Defaults to project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
import_file str
clusterProfileImportId String
The ID of this resource.
context String
Allowed values are project, tenant or system. Defaults to project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
importFile String

Package Details

Repository
spectrocloud spectrocloud/terraform-provider-spectrocloud
License
Notes
This Pulumi package is based on the spectrocloud Terraform Provider.