1. Packages
  2. Ibm Provider
  3. API Docs
  4. ComputeProvisioningHook
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

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"});
Copy
import pulumi
import pulumi_ibm as ibm

test_provisioning_hook = ibm.ComputeProvisioningHook("testProvisioningHook", uri="https://raw.githubusercontent.com/test/slvm/master/test-script.sh")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
resources:
  testProvisioningHook:
    type: ibm:ComputeProvisioningHook
    properties:
      uri: https://raw.githubusercontent.com/test/slvm/master/test-script.sh
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. ComputeProvisioningHookArgs
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. 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 This property is required. string
The unique name of the resource.
args This property is required. ComputeProvisioningHookArgs
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. ComputeProvisioningHookArgs
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. 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",
    },
});
Copy
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"),
},
})
Copy
var computeProvisioningHookResource = new ComputeProvisioningHook("computeProvisioningHookResource", ComputeProvisioningHookArgs.builder()
    .uri("string")
    .computeProvisioningHookId("string")
    .name("string")
    .tags("string")
    .build());
Copy
compute_provisioning_hook_resource = ibm.ComputeProvisioningHook("computeProvisioningHookResource",
    uri="string",
    compute_provisioning_hook_id="string",
    name="string",
    tags=["string"])
Copy
const computeProvisioningHookResource = new ibm.ComputeProvisioningHook("computeProvisioningHookResource", {
    uri: "string",
    computeProvisioningHookId: "string",
    name: "string",
    tags: ["string"],
});
Copy
type: ibm:ComputeProvisioningHook
properties:
    computeProvisioningHookId: string
    name: string
    tags:
        - string
    uri: string
Copy

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 This property is required. string
The endpoint from which the script is downloaded or downloaded and executed.
ComputeProvisioningHookId string
(String) The unique identifier of the new provisioning hook.
Name string
The descriptive name that is used to identify a provisioning hook.
Tags 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 This property is required. string
The endpoint from which the script is downloaded or downloaded and executed.
ComputeProvisioningHookId string
(String) The unique identifier of the new provisioning hook.
Name string
The descriptive name that is used to identify a provisioning hook.
Tags []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 This property is required. String
The endpoint from which the script is downloaded or downloaded and executed.
computeProvisioningHookId String
(String) The unique identifier of the new provisioning hook.
name String
The descriptive name that is used to identify a provisioning hook.
tags 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 This property is required. string
The endpoint from which the script is downloaded or downloaded and executed.
computeProvisioningHookId string
(String) The unique identifier of the new provisioning hook.
name string
The descriptive name that is used to identify a provisioning hook.
tags 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 This property is required. str
The endpoint from which the script is downloaded or downloaded and executed.
compute_provisioning_hook_id str
(String) The unique identifier of the new provisioning hook.
name str
The descriptive name that is used to identify a provisioning hook.
tags 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 This property is required. String
The endpoint from which the script is downloaded or downloaded and executed.
computeProvisioningHookId String
(String) The unique identifier of the new provisioning hook.
name String
The descriptive name that is used to identify a provisioning hook.
tags 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 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:
ComputeProvisioningHookId string
(String) The unique identifier of the new provisioning hook.
Name string
The descriptive name that is used to identify a provisioning hook.
Tags 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.
ComputeProvisioningHookId string
(String) The unique identifier of the new provisioning hook.
Name string
The descriptive name that is used to identify a provisioning hook.
Tags []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.
computeProvisioningHookId String
(String) The unique identifier of the new provisioning hook.
name String
The descriptive name that is used to identify a provisioning hook.
tags 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.
computeProvisioningHookId string
(String) The unique identifier of the new provisioning hook.
name string
The descriptive name that is used to identify a provisioning hook.
tags 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_hook_id str
(String) The unique identifier of the new provisioning hook.
name str
The descriptive name that is used to identify a provisioning hook.
tags 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.
computeProvisioningHookId String
(String) The unique identifier of the new provisioning hook.
name String
The descriptive name that is used to identify a provisioning hook.
tags 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.