ibm.ComputeProvisioningHook
Explore with Pulumi AI
Provides provisioning hooks that contains all the information that is needed to add a hook into a server or virtual provision and OS reload. This allows provisioning hooks to be created, updated, and deleted. For more information, about provisioning hook, see integrate third-party services using hooks.
Note
For more information, see the IBM Cloud Classic Infrastructure (SoftLayer) API docs.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const testProvisioningHook = new ibm.ComputeProvisioningHook("testProvisioningHook", {uri: "https://raw.githubusercontent.com/test/slvm/master/test-script.sh"});
import pulumi
import pulumi_ibm as ibm
test_provisioning_hook = ibm.ComputeProvisioningHook("testProvisioningHook", uri="https://raw.githubusercontent.com/test/slvm/master/test-script.sh")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.NewComputeProvisioningHook(ctx, "testProvisioningHook", &ibm.ComputeProvisioningHookArgs{
Uri: pulumi.String("https://raw.githubusercontent.com/test/slvm/master/test-script.sh"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var testProvisioningHook = new Ibm.ComputeProvisioningHook("testProvisioningHook", new()
{
Uri = "https://raw.githubusercontent.com/test/slvm/master/test-script.sh",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.ComputeProvisioningHook;
import com.pulumi.ibm.ComputeProvisioningHookArgs;
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 testProvisioningHook = new ComputeProvisioningHook("testProvisioningHook", ComputeProvisioningHookArgs.builder()
.uri("https://raw.githubusercontent.com/test/slvm/master/test-script.sh")
.build());
}
}
resources:
testProvisioningHook:
type: ibm:ComputeProvisioningHook
properties:
uri: https://raw.githubusercontent.com/test/slvm/master/test-script.sh
Create ComputeProvisioningHook Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ComputeProvisioningHook(name: string, args: ComputeProvisioningHookArgs, opts?: CustomResourceOptions);
@overload
def ComputeProvisioningHook(resource_name: str,
args: ComputeProvisioningHookArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ComputeProvisioningHook(resource_name: str,
opts: Optional[ResourceOptions] = None,
uri: Optional[str] = None,
compute_provisioning_hook_id: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Sequence[str]] = None)
func NewComputeProvisioningHook(ctx *Context, name string, args ComputeProvisioningHookArgs, opts ...ResourceOption) (*ComputeProvisioningHook, error)
public ComputeProvisioningHook(string name, ComputeProvisioningHookArgs args, CustomResourceOptions? opts = null)
public ComputeProvisioningHook(String name, ComputeProvisioningHookArgs args)
public ComputeProvisioningHook(String name, ComputeProvisioningHookArgs args, CustomResourceOptions options)
type: ibm:ComputeProvisioningHook
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 ComputeProvisioningHookArgs
- 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 ComputeProvisioningHookArgs
- 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 ComputeProvisioningHookArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ComputeProvisioningHookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ComputeProvisioningHookArgs
- 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 computeProvisioningHookResource = new Ibm.ComputeProvisioningHook("computeProvisioningHookResource", new()
{
Uri = "string",
ComputeProvisioningHookId = "string",
Name = "string",
Tags = new[]
{
"string",
},
});
example, err := ibm.NewComputeProvisioningHook(ctx, "computeProvisioningHookResource", &ibm.ComputeProvisioningHookArgs{
Uri: pulumi.String("string"),
ComputeProvisioningHookId: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
var computeProvisioningHookResource = new ComputeProvisioningHook("computeProvisioningHookResource", ComputeProvisioningHookArgs.builder()
.uri("string")
.computeProvisioningHookId("string")
.name("string")
.tags("string")
.build());
compute_provisioning_hook_resource = ibm.ComputeProvisioningHook("computeProvisioningHookResource",
uri="string",
compute_provisioning_hook_id="string",
name="string",
tags=["string"])
const computeProvisioningHookResource = new ibm.ComputeProvisioningHook("computeProvisioningHookResource", {
uri: "string",
computeProvisioningHookId: "string",
name: "string",
tags: ["string"],
});
type: ibm:ComputeProvisioningHook
properties:
computeProvisioningHookId: string
name: string
tags:
- string
uri: string
ComputeProvisioningHook 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 ComputeProvisioningHook resource accepts the following input properties:
- Uri string
- The endpoint from which the script is downloaded or downloaded and executed.
- Compute
Provisioning stringHook Id - (String) The unique identifier of the new provisioning hook.
- Name string
- The descriptive name that is used to identify a provisioning hook.
- List<string>
- Tags associated with the provisioning hook instance. Note
Tags
are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
- Uri string
- The endpoint from which the script is downloaded or downloaded and executed.
- Compute
Provisioning stringHook Id - (String) The unique identifier of the new provisioning hook.
- Name string
- The descriptive name that is used to identify a provisioning hook.
- []string
- Tags associated with the provisioning hook instance. Note
Tags
are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
- uri String
- The endpoint from which the script is downloaded or downloaded and executed.
- compute
Provisioning StringHook Id - (String) The unique identifier of the new provisioning hook.
- name String
- The descriptive name that is used to identify a provisioning hook.
- List<String>
- Tags associated with the provisioning hook instance. Note
Tags
are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
- uri string
- The endpoint from which the script is downloaded or downloaded and executed.
- compute
Provisioning stringHook Id - (String) The unique identifier of the new provisioning hook.
- name string
- The descriptive name that is used to identify a provisioning hook.
- string[]
- Tags associated with the provisioning hook instance. Note
Tags
are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
- uri str
- The endpoint from which the script is downloaded or downloaded and executed.
- compute_
provisioning_ strhook_ id - (String) The unique identifier of the new provisioning hook.
- name str
- The descriptive name that is used to identify a provisioning hook.
- Sequence[str]
- Tags associated with the provisioning hook instance. Note
Tags
are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
- uri String
- The endpoint from which the script is downloaded or downloaded and executed.
- compute
Provisioning StringHook Id - (String) The unique identifier of the new provisioning hook.
- name String
- The descriptive name that is used to identify a provisioning hook.
- List<String>
- Tags associated with the provisioning hook instance. Note
Tags
are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
Outputs
All input properties are implicitly available as output properties. Additionally, the ComputeProvisioningHook 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 ComputeProvisioningHook Resource
Get an existing ComputeProvisioningHook 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?: ComputeProvisioningHookState, opts?: CustomResourceOptions): ComputeProvisioningHook
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compute_provisioning_hook_id: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
uri: Optional[str] = None) -> ComputeProvisioningHook
func GetComputeProvisioningHook(ctx *Context, name string, id IDInput, state *ComputeProvisioningHookState, opts ...ResourceOption) (*ComputeProvisioningHook, error)
public static ComputeProvisioningHook Get(string name, Input<string> id, ComputeProvisioningHookState? state, CustomResourceOptions? opts = null)
public static ComputeProvisioningHook get(String name, Output<String> id, ComputeProvisioningHookState state, CustomResourceOptions options)
resources: _: type: ibm:ComputeProvisioningHook 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.
- Compute
Provisioning stringHook Id - (String) The unique identifier of the new provisioning hook.
- Name string
- The descriptive name that is used to identify a provisioning hook.
- List<string>
- Tags associated with the provisioning hook instance. Note
Tags
are managed locally and not stored on the IBM Cloud Service Endpoint at this moment. - Uri string
- The endpoint from which the script is downloaded or downloaded and executed.
- Compute
Provisioning stringHook Id - (String) The unique identifier of the new provisioning hook.
- Name string
- The descriptive name that is used to identify a provisioning hook.
- []string
- Tags associated with the provisioning hook instance. Note
Tags
are managed locally and not stored on the IBM Cloud Service Endpoint at this moment. - Uri string
- The endpoint from which the script is downloaded or downloaded and executed.
- compute
Provisioning StringHook Id - (String) The unique identifier of the new provisioning hook.
- name String
- The descriptive name that is used to identify a provisioning hook.
- List<String>
- Tags associated with the provisioning hook instance. Note
Tags
are managed locally and not stored on the IBM Cloud Service Endpoint at this moment. - uri String
- The endpoint from which the script is downloaded or downloaded and executed.
- compute
Provisioning stringHook Id - (String) The unique identifier of the new provisioning hook.
- name string
- The descriptive name that is used to identify a provisioning hook.
- string[]
- Tags associated with the provisioning hook instance. Note
Tags
are managed locally and not stored on the IBM Cloud Service Endpoint at this moment. - uri string
- The endpoint from which the script is downloaded or downloaded and executed.
- compute_
provisioning_ strhook_ id - (String) The unique identifier of the new provisioning hook.
- name str
- The descriptive name that is used to identify a provisioning hook.
- Sequence[str]
- Tags associated with the provisioning hook instance. Note
Tags
are managed locally and not stored on the IBM Cloud Service Endpoint at this moment. - uri str
- The endpoint from which the script is downloaded or downloaded and executed.
- compute
Provisioning StringHook Id - (String) The unique identifier of the new provisioning hook.
- name String
- The descriptive name that is used to identify a provisioning hook.
- List<String>
- Tags associated with the provisioning hook instance. Note
Tags
are managed locally and not stored on the IBM Cloud Service Endpoint at this moment. - uri String
- The endpoint from which the script is downloaded or downloaded and executed.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.