nutanix.SelfServiceAppCustomAction
Explore with Pulumi AI
Triggers custom action execution using it’s name in Self Service Application.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pierskarsenbarg/nutanix";
const testSelfServiceAppProvision = new nutanix.SelfServiceAppProvision("testSelfServiceAppProvision", {
bpName: "NAME OF BLUEPRINT",
appName: "NAME OF APPLICATION",
appDescription: "DESCRIPTION OF APPLICATION",
});
const testSelfServiceAppCustomAction = new nutanix.SelfServiceAppCustomAction("testSelfServiceAppCustomAction", {
appName: testSelfServiceAppProvision.appName,
actionName: "NAME OF ACTION",
});
import pulumi
import pulumi_nutanix as nutanix
test_self_service_app_provision = nutanix.SelfServiceAppProvision("testSelfServiceAppProvision",
bp_name="NAME OF BLUEPRINT",
app_name="NAME OF APPLICATION",
app_description="DESCRIPTION OF APPLICATION")
test_self_service_app_custom_action = nutanix.SelfServiceAppCustomAction("testSelfServiceAppCustomAction",
app_name=test_self_service_app_provision.app_name,
action_name="NAME OF ACTION")
package main
import (
"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
testSelfServiceAppProvision, err := nutanix.NewSelfServiceAppProvision(ctx, "testSelfServiceAppProvision", &nutanix.SelfServiceAppProvisionArgs{
BpName: pulumi.String("NAME OF BLUEPRINT"),
AppName: pulumi.String("NAME OF APPLICATION"),
AppDescription: pulumi.String("DESCRIPTION OF APPLICATION"),
})
if err != nil {
return err
}
_, err = nutanix.NewSelfServiceAppCustomAction(ctx, "testSelfServiceAppCustomAction", &nutanix.SelfServiceAppCustomActionArgs{
AppName: testSelfServiceAppProvision.AppName,
ActionName: pulumi.String("NAME OF ACTION"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = PiersKarsenbarg.Nutanix;
return await Deployment.RunAsync(() =>
{
var testSelfServiceAppProvision = new Nutanix.SelfServiceAppProvision("testSelfServiceAppProvision", new()
{
BpName = "NAME OF BLUEPRINT",
AppName = "NAME OF APPLICATION",
AppDescription = "DESCRIPTION OF APPLICATION",
});
var testSelfServiceAppCustomAction = new Nutanix.SelfServiceAppCustomAction("testSelfServiceAppCustomAction", new()
{
AppName = testSelfServiceAppProvision.AppName,
ActionName = "NAME OF ACTION",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.SelfServiceAppProvision;
import com.pulumi.nutanix.SelfServiceAppProvisionArgs;
import com.pulumi.nutanix.SelfServiceAppCustomAction;
import com.pulumi.nutanix.SelfServiceAppCustomActionArgs;
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 testSelfServiceAppProvision = new SelfServiceAppProvision("testSelfServiceAppProvision", SelfServiceAppProvisionArgs.builder()
.bpName("NAME OF BLUEPRINT")
.appName("NAME OF APPLICATION")
.appDescription("DESCRIPTION OF APPLICATION")
.build());
var testSelfServiceAppCustomAction = new SelfServiceAppCustomAction("testSelfServiceAppCustomAction", SelfServiceAppCustomActionArgs.builder()
.appName(testSelfServiceAppProvision.appName())
.actionName("NAME OF ACTION")
.build());
}
}
resources:
testSelfServiceAppProvision:
type: nutanix:SelfServiceAppProvision
properties:
bpName: NAME OF BLUEPRINT
appName: NAME OF APPLICATION
appDescription: DESCRIPTION OF APPLICATION
testSelfServiceAppCustomAction:
type: nutanix:SelfServiceAppCustomAction
properties:
appName: ${testSelfServiceAppProvision.appName}
actionName: NAME OF ACTION
Create SelfServiceAppCustomAction Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SelfServiceAppCustomAction(name: string, args: SelfServiceAppCustomActionArgs, opts?: CustomResourceOptions);
@overload
def SelfServiceAppCustomAction(resource_name: str,
args: SelfServiceAppCustomActionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SelfServiceAppCustomAction(resource_name: str,
opts: Optional[ResourceOptions] = None,
action_name: Optional[str] = None,
app_name: Optional[str] = None,
app_uuid: Optional[str] = None,
runlog_uuid: Optional[str] = None)
func NewSelfServiceAppCustomAction(ctx *Context, name string, args SelfServiceAppCustomActionArgs, opts ...ResourceOption) (*SelfServiceAppCustomAction, error)
public SelfServiceAppCustomAction(string name, SelfServiceAppCustomActionArgs args, CustomResourceOptions? opts = null)
public SelfServiceAppCustomAction(String name, SelfServiceAppCustomActionArgs args)
public SelfServiceAppCustomAction(String name, SelfServiceAppCustomActionArgs args, CustomResourceOptions options)
type: nutanix:SelfServiceAppCustomAction
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 SelfServiceAppCustomActionArgs
- 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 SelfServiceAppCustomActionArgs
- 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 SelfServiceAppCustomActionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SelfServiceAppCustomActionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SelfServiceAppCustomActionArgs
- 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 selfServiceAppCustomActionResource = new Nutanix.SelfServiceAppCustomAction("selfServiceAppCustomActionResource", new()
{
ActionName = "string",
AppName = "string",
AppUuid = "string",
RunlogUuid = "string",
});
example, err := nutanix.NewSelfServiceAppCustomAction(ctx, "selfServiceAppCustomActionResource", &nutanix.SelfServiceAppCustomActionArgs{
ActionName: pulumi.String("string"),
AppName: pulumi.String("string"),
AppUuid: pulumi.String("string"),
RunlogUuid: pulumi.String("string"),
})
var selfServiceAppCustomActionResource = new SelfServiceAppCustomAction("selfServiceAppCustomActionResource", SelfServiceAppCustomActionArgs.builder()
.actionName("string")
.appName("string")
.appUuid("string")
.runlogUuid("string")
.build());
self_service_app_custom_action_resource = nutanix.SelfServiceAppCustomAction("selfServiceAppCustomActionResource",
action_name="string",
app_name="string",
app_uuid="string",
runlog_uuid="string")
const selfServiceAppCustomActionResource = new nutanix.SelfServiceAppCustomAction("selfServiceAppCustomActionResource", {
actionName: "string",
appName: "string",
appUuid: "string",
runlogUuid: "string",
});
type: nutanix:SelfServiceAppCustomAction
properties:
actionName: string
appName: string
appUuid: string
runlogUuid: string
SelfServiceAppCustomAction 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 SelfServiceAppCustomAction resource accepts the following input properties:
- Action
Name string - (Required) The name of the action to run.
Both (
app_name
andapp_uuid
) are optional. You can provide either of them. But atleast one of them is required to make this resource work.- App
Name string - (Optional) The name of the application.
- App
Uuid string - (Optional) The UUID of the application.
- Runlog
Uuid string - (Computed) The UUID of the runlog associated with the execution of the custom action. This can be used to track the progress or status of the action execution.
- Action
Name string - (Required) The name of the action to run.
Both (
app_name
andapp_uuid
) are optional. You can provide either of them. But atleast one of them is required to make this resource work.- App
Name string - (Optional) The name of the application.
- App
Uuid string - (Optional) The UUID of the application.
- Runlog
Uuid string - (Computed) The UUID of the runlog associated with the execution of the custom action. This can be used to track the progress or status of the action execution.
- action
Name String - (Required) The name of the action to run.
Both (
app_name
andapp_uuid
) are optional. You can provide either of them. But atleast one of them is required to make this resource work.- app
Name String - (Optional) The name of the application.
- app
Uuid String - (Optional) The UUID of the application.
- runlog
Uuid String - (Computed) The UUID of the runlog associated with the execution of the custom action. This can be used to track the progress or status of the action execution.
- action
Name string - (Required) The name of the action to run.
Both (
app_name
andapp_uuid
) are optional. You can provide either of them. But atleast one of them is required to make this resource work.- app
Name string - (Optional) The name of the application.
- app
Uuid string - (Optional) The UUID of the application.
- runlog
Uuid string - (Computed) The UUID of the runlog associated with the execution of the custom action. This can be used to track the progress or status of the action execution.
- action_
name str - (Required) The name of the action to run.
Both (
app_name
andapp_uuid
) are optional. You can provide either of them. But atleast one of them is required to make this resource work.- app_
name str - (Optional) The name of the application.
- app_
uuid str - (Optional) The UUID of the application.
- runlog_
uuid str - (Computed) The UUID of the runlog associated with the execution of the custom action. This can be used to track the progress or status of the action execution.
- action
Name String - (Required) The name of the action to run.
Both (
app_name
andapp_uuid
) are optional. You can provide either of them. But atleast one of them is required to make this resource work.- app
Name String - (Optional) The name of the application.
- app
Uuid String - (Optional) The UUID of the application.
- runlog
Uuid String - (Computed) The UUID of the runlog associated with the execution of the custom action. This can be used to track the progress or status of the action execution.
Outputs
All input properties are implicitly available as output properties. Additionally, the SelfServiceAppCustomAction 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 SelfServiceAppCustomAction Resource
Get an existing SelfServiceAppCustomAction 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?: SelfServiceAppCustomActionState, opts?: CustomResourceOptions): SelfServiceAppCustomAction
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action_name: Optional[str] = None,
app_name: Optional[str] = None,
app_uuid: Optional[str] = None,
runlog_uuid: Optional[str] = None) -> SelfServiceAppCustomAction
func GetSelfServiceAppCustomAction(ctx *Context, name string, id IDInput, state *SelfServiceAppCustomActionState, opts ...ResourceOption) (*SelfServiceAppCustomAction, error)
public static SelfServiceAppCustomAction Get(string name, Input<string> id, SelfServiceAppCustomActionState? state, CustomResourceOptions? opts = null)
public static SelfServiceAppCustomAction get(String name, Output<String> id, SelfServiceAppCustomActionState state, CustomResourceOptions options)
resources: _: type: nutanix:SelfServiceAppCustomAction 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.
- Action
Name string - (Required) The name of the action to run.
Both (
app_name
andapp_uuid
) are optional. You can provide either of them. But atleast one of them is required to make this resource work.- App
Name string - (Optional) The name of the application.
- App
Uuid string - (Optional) The UUID of the application.
- Runlog
Uuid string - (Computed) The UUID of the runlog associated with the execution of the custom action. This can be used to track the progress or status of the action execution.
- Action
Name string - (Required) The name of the action to run.
Both (
app_name
andapp_uuid
) are optional. You can provide either of them. But atleast one of them is required to make this resource work.- App
Name string - (Optional) The name of the application.
- App
Uuid string - (Optional) The UUID of the application.
- Runlog
Uuid string - (Computed) The UUID of the runlog associated with the execution of the custom action. This can be used to track the progress or status of the action execution.
- action
Name String - (Required) The name of the action to run.
Both (
app_name
andapp_uuid
) are optional. You can provide either of them. But atleast one of them is required to make this resource work.- app
Name String - (Optional) The name of the application.
- app
Uuid String - (Optional) The UUID of the application.
- runlog
Uuid String - (Computed) The UUID of the runlog associated with the execution of the custom action. This can be used to track the progress or status of the action execution.
- action
Name string - (Required) The name of the action to run.
Both (
app_name
andapp_uuid
) are optional. You can provide either of them. But atleast one of them is required to make this resource work.- app
Name string - (Optional) The name of the application.
- app
Uuid string - (Optional) The UUID of the application.
- runlog
Uuid string - (Computed) The UUID of the runlog associated with the execution of the custom action. This can be used to track the progress or status of the action execution.
- action_
name str - (Required) The name of the action to run.
Both (
app_name
andapp_uuid
) are optional. You can provide either of them. But atleast one of them is required to make this resource work.- app_
name str - (Optional) The name of the application.
- app_
uuid str - (Optional) The UUID of the application.
- runlog_
uuid str - (Computed) The UUID of the runlog associated with the execution of the custom action. This can be used to track the progress or status of the action execution.
- action
Name String - (Required) The name of the action to run.
Both (
app_name
andapp_uuid
) are optional. You can provide either of them. But atleast one of them is required to make this resource work.- app
Name String - (Optional) The name of the application.
- app
Uuid String - (Optional) The UUID of the application.
- runlog
Uuid String - (Computed) The UUID of the runlog associated with the execution of the custom action. This can be used to track the progress or status of the action execution.
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nutanix
Terraform Provider.