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"});
import pulumi
import pulumi_spectrocloud as spectrocloud
import_ = spectrocloud.ClusterProfileImport("import", import_file="/tmp/profile_import.json")
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
})
}
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",
});
});
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());
}
}
resources:
import:
type: spectrocloud:ClusterProfileImport
properties:
importFile: /tmp/profile_import.json
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 string
- The unique name of the resource.
- args ClusterProfileImportArgs
- 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 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 string
- The unique name of the resource.
- args ClusterProfileImportArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterProfileImportArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := spectrocloud.NewClusterProfileImport(ctx, "clusterProfileImportResource", &spectrocloud.ClusterProfileImportArgs{
ImportFile: pulumi.String("string"),
ClusterProfileImportId: pulumi.String("string"),
Context: pulumi.String("string"),
})
var clusterProfileImportResource = new ClusterProfileImport("clusterProfileImportResource", ClusterProfileImportArgs.builder()
.importFile("string")
.clusterProfileImportId("string")
.context("string")
.build());
cluster_profile_import_resource = spectrocloud.ClusterProfileImport("clusterProfileImportResource",
import_file="string",
cluster_profile_import_id="string",
context="string")
const clusterProfileImportResource = new spectrocloud.ClusterProfileImport("clusterProfileImportResource", {
importFile: "string",
clusterProfileImportId: "string",
context: "string",
});
type: spectrocloud:ClusterProfileImport
properties:
clusterProfileImportId: string
context: string
importFile: string
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:
- Import
File string - Cluster
Profile stringImport Id - The ID of this resource.
- Context string
- Allowed values are
project
,tenant
orsystem
. Defaults toproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
.
- Import
File string - Cluster
Profile stringImport Id - The ID of this resource.
- Context string
- Allowed values are
project
,tenant
orsystem
. Defaults toproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
.
- import
File String - cluster
Profile StringImport Id - The ID of this resource.
- context String
- Allowed values are
project
,tenant
orsystem
. Defaults toproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
.
- import
File string - cluster
Profile stringImport Id - The ID of this resource.
- context string
- Allowed values are
project
,tenant
orsystem
. Defaults toproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
.
- import_
file str - cluster_
profile_ strimport_ id - The ID of this resource.
- context str
- Allowed values are
project
,tenant
orsystem
. Defaults toproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
.
- import
File String - cluster
Profile StringImport Id - The ID of this resource.
- context String
- Allowed values are
project
,tenant
orsystem
. Defaults toproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_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
- 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
Profile stringImport Id - The ID of this resource.
- Context string
- Allowed values are
project
,tenant
orsystem
. Defaults toproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - Import
File string
- Cluster
Profile stringImport Id - The ID of this resource.
- Context string
- Allowed values are
project
,tenant
orsystem
. Defaults toproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - Import
File string
- cluster
Profile StringImport Id - The ID of this resource.
- context String
- Allowed values are
project
,tenant
orsystem
. Defaults toproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - import
File String
- cluster
Profile stringImport Id - The ID of this resource.
- context string
- Allowed values are
project
,tenant
orsystem
. Defaults toproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - import
File string
- cluster_
profile_ strimport_ id - The ID of this resource.
- context str
- Allowed values are
project
,tenant
orsystem
. Defaults toproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - import_
file str
- cluster
Profile StringImport Id - The ID of this resource.
- context String
- Allowed values are
project
,tenant
orsystem
. Defaults toproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - import
File String
Package Details
- Repository
- spectrocloud spectrocloud/terraform-provider-spectrocloud
- License
- Notes
- This Pulumi package is based on the
spectrocloud
Terraform Provider.