checkpoint.ManagementSetHaState
Explore with Pulumi AI
This command resource allows you to execute Check Point Set HA State.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as checkpoint from "@pulumi/checkpoint";
const example = new checkpoint.ManagementSetHaState("example", {newState: "active"});
import pulumi
import pulumi_checkpoint as checkpoint
example = checkpoint.ManagementSetHaState("example", new_state="active")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/checkpoint/v2/checkpoint"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := checkpoint.NewManagementSetHaState(ctx, "example", &checkpoint.ManagementSetHaStateArgs{
NewState: pulumi.String("active"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Checkpoint = Pulumi.Checkpoint;
return await Deployment.RunAsync(() =>
{
var example = new Checkpoint.ManagementSetHaState("example", new()
{
NewState = "active",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.checkpoint.ManagementSetHaState;
import com.pulumi.checkpoint.ManagementSetHaStateArgs;
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 example = new ManagementSetHaState("example", ManagementSetHaStateArgs.builder()
.newState("active")
.build());
}
}
resources:
example:
type: checkpoint:ManagementSetHaState
properties:
newState: active
How To Use
Make sure this command will be executed in the right execution order.
Create ManagementSetHaState Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ManagementSetHaState(name: string, args: ManagementSetHaStateArgs, opts?: CustomResourceOptions);
@overload
def ManagementSetHaState(resource_name: str,
args: ManagementSetHaStateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ManagementSetHaState(resource_name: str,
opts: Optional[ResourceOptions] = None,
new_state: Optional[str] = None,
management_set_ha_state_id: Optional[str] = None)
func NewManagementSetHaState(ctx *Context, name string, args ManagementSetHaStateArgs, opts ...ResourceOption) (*ManagementSetHaState, error)
public ManagementSetHaState(string name, ManagementSetHaStateArgs args, CustomResourceOptions? opts = null)
public ManagementSetHaState(String name, ManagementSetHaStateArgs args)
public ManagementSetHaState(String name, ManagementSetHaStateArgs args, CustomResourceOptions options)
type: checkpoint:ManagementSetHaState
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 ManagementSetHaStateArgs
- 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 ManagementSetHaStateArgs
- 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 ManagementSetHaStateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ManagementSetHaStateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ManagementSetHaStateArgs
- 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 managementSetHaStateResource = new Checkpoint.ManagementSetHaState("managementSetHaStateResource", new()
{
NewState = "string",
ManagementSetHaStateId = "string",
});
example, err := checkpoint.NewManagementSetHaState(ctx, "managementSetHaStateResource", &checkpoint.ManagementSetHaStateArgs{
NewState: pulumi.String("string"),
ManagementSetHaStateId: pulumi.String("string"),
})
var managementSetHaStateResource = new ManagementSetHaState("managementSetHaStateResource", ManagementSetHaStateArgs.builder()
.newState("string")
.managementSetHaStateId("string")
.build());
management_set_ha_state_resource = checkpoint.ManagementSetHaState("managementSetHaStateResource",
new_state="string",
management_set_ha_state_id="string")
const managementSetHaStateResource = new checkpoint.ManagementSetHaState("managementSetHaStateResource", {
newState: "string",
managementSetHaStateId: "string",
});
type: checkpoint:ManagementSetHaState
properties:
managementSetHaStateId: string
newState: string
ManagementSetHaState 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 ManagementSetHaState resource accepts the following input properties:
- New
State string - Domain server new state.
- Management
Set stringHa State Id
- New
State string - Domain server new state.
- Management
Set stringHa State Id
- new
State String - Domain server new state.
- management
Set StringHa State Id
- new
State string - Domain server new state.
- management
Set stringHa State Id
- new_
state str - Domain server new state.
- management_
set_ strha_ state_ id
- new
State String - Domain server new state.
- management
Set StringHa State Id
Outputs
All input properties are implicitly available as output properties. Additionally, the ManagementSetHaState resource produces the following output properties:
Look up Existing ManagementSetHaState Resource
Get an existing ManagementSetHaState 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?: ManagementSetHaStateState, opts?: CustomResourceOptions): ManagementSetHaState
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
management_set_ha_state_id: Optional[str] = None,
new_state: Optional[str] = None,
task_id: Optional[str] = None) -> ManagementSetHaState
func GetManagementSetHaState(ctx *Context, name string, id IDInput, state *ManagementSetHaStateState, opts ...ResourceOption) (*ManagementSetHaState, error)
public static ManagementSetHaState Get(string name, Input<string> id, ManagementSetHaStateState? state, CustomResourceOptions? opts = null)
public static ManagementSetHaState get(String name, Output<String> id, ManagementSetHaStateState state, CustomResourceOptions options)
resources: _: type: checkpoint:ManagementSetHaState 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.
- Management
Set stringHa State Id - New
State string - Domain server new state.
- Task
Id string - Asynchronous task unique identifier.
- Management
Set stringHa State Id - New
State string - Domain server new state.
- Task
Id string - Asynchronous task unique identifier.
- management
Set StringHa State Id - new
State String - Domain server new state.
- task
Id String - Asynchronous task unique identifier.
- management
Set stringHa State Id - new
State string - Domain server new state.
- task
Id string - Asynchronous task unique identifier.
- management_
set_ strha_ state_ id - new_
state str - Domain server new state.
- task_
id str - Asynchronous task unique identifier.
- management
Set StringHa State Id - new
State String - Domain server new state.
- task
Id String - Asynchronous task unique identifier.
Package Details
- Repository
- checkpoint checkpointsw/terraform-provider-checkpoint
- License
- Notes
- This Pulumi package is based on the
checkpoint
Terraform Provider.