checkpoint.ManagementRepositoryScript
Explore with Pulumi AI
This resource allows you to execute Check Point Repository Script.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as checkpoint from "@pulumi/checkpoint";
const example = new checkpoint.ManagementRepositoryScript("example", {scriptBody: "ls -l /"});
import pulumi
import pulumi_checkpoint as checkpoint
example = checkpoint.ManagementRepositoryScript("example", script_body="ls -l /")
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.NewManagementRepositoryScript(ctx, "example", &checkpoint.ManagementRepositoryScriptArgs{
ScriptBody: pulumi.String("ls -l /"),
})
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.ManagementRepositoryScript("example", new()
{
ScriptBody = "ls -l /",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.checkpoint.ManagementRepositoryScript;
import com.pulumi.checkpoint.ManagementRepositoryScriptArgs;
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 ManagementRepositoryScript("example", ManagementRepositoryScriptArgs.builder()
.scriptBody("ls -l /")
.build());
}
}
resources:
example:
type: checkpoint:ManagementRepositoryScript
properties:
scriptBody: ls -l /
Create ManagementRepositoryScript Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ManagementRepositoryScript(name: string, args?: ManagementRepositoryScriptArgs, opts?: CustomResourceOptions);
@overload
def ManagementRepositoryScript(resource_name: str,
args: Optional[ManagementRepositoryScriptArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ManagementRepositoryScript(resource_name: str,
opts: Optional[ResourceOptions] = None,
color: Optional[str] = None,
comments: Optional[str] = None,
ignore_errors: Optional[bool] = None,
ignore_warnings: Optional[bool] = None,
management_repository_script_id: Optional[str] = None,
name: Optional[str] = None,
script_body: Optional[str] = None,
script_body_base64: Optional[str] = None,
tags: Optional[Sequence[str]] = None)
func NewManagementRepositoryScript(ctx *Context, name string, args *ManagementRepositoryScriptArgs, opts ...ResourceOption) (*ManagementRepositoryScript, error)
public ManagementRepositoryScript(string name, ManagementRepositoryScriptArgs? args = null, CustomResourceOptions? opts = null)
public ManagementRepositoryScript(String name, ManagementRepositoryScriptArgs args)
public ManagementRepositoryScript(String name, ManagementRepositoryScriptArgs args, CustomResourceOptions options)
type: checkpoint:ManagementRepositoryScript
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 ManagementRepositoryScriptArgs
- 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 ManagementRepositoryScriptArgs
- 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 ManagementRepositoryScriptArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ManagementRepositoryScriptArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ManagementRepositoryScriptArgs
- 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 managementRepositoryScriptResource = new Checkpoint.ManagementRepositoryScript("managementRepositoryScriptResource", new()
{
Color = "string",
Comments = "string",
IgnoreErrors = false,
IgnoreWarnings = false,
ManagementRepositoryScriptId = "string",
Name = "string",
ScriptBody = "string",
ScriptBodyBase64 = "string",
Tags = new[]
{
"string",
},
});
example, err := checkpoint.NewManagementRepositoryScript(ctx, "managementRepositoryScriptResource", &checkpoint.ManagementRepositoryScriptArgs{
Color: pulumi.String("string"),
Comments: pulumi.String("string"),
IgnoreErrors: pulumi.Bool(false),
IgnoreWarnings: pulumi.Bool(false),
ManagementRepositoryScriptId: pulumi.String("string"),
Name: pulumi.String("string"),
ScriptBody: pulumi.String("string"),
ScriptBodyBase64: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
var managementRepositoryScriptResource = new ManagementRepositoryScript("managementRepositoryScriptResource", ManagementRepositoryScriptArgs.builder()
.color("string")
.comments("string")
.ignoreErrors(false)
.ignoreWarnings(false)
.managementRepositoryScriptId("string")
.name("string")
.scriptBody("string")
.scriptBodyBase64("string")
.tags("string")
.build());
management_repository_script_resource = checkpoint.ManagementRepositoryScript("managementRepositoryScriptResource",
color="string",
comments="string",
ignore_errors=False,
ignore_warnings=False,
management_repository_script_id="string",
name="string",
script_body="string",
script_body_base64="string",
tags=["string"])
const managementRepositoryScriptResource = new checkpoint.ManagementRepositoryScript("managementRepositoryScriptResource", {
color: "string",
comments: "string",
ignoreErrors: false,
ignoreWarnings: false,
managementRepositoryScriptId: "string",
name: "string",
scriptBody: "string",
scriptBodyBase64: "string",
tags: ["string"],
});
type: checkpoint:ManagementRepositoryScript
properties:
color: string
comments: string
ignoreErrors: false
ignoreWarnings: false
managementRepositoryScriptId: string
name: string
scriptBody: string
scriptBodyBase64: string
tags:
- string
ManagementRepositoryScript 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 ManagementRepositoryScript resource accepts the following input properties:
- Color string
- Color of the object. Should be one of existing colors.
- Comments string
- Comments string.
- Ignore
Errors bool - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- Ignore
Warnings bool - Apply changes ignoring warnings.
- Management
Repository stringScript Id - Name string
- Object name.
- Script
Body string - The entire content of the script.
- Script
Body stringBase64 - The entire content of the script encoded in Base64.
- List<string>
- Collection of tag identifiers.tags blocks are documented below.
- Color string
- Color of the object. Should be one of existing colors.
- Comments string
- Comments string.
- Ignore
Errors bool - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- Ignore
Warnings bool - Apply changes ignoring warnings.
- Management
Repository stringScript Id - Name string
- Object name.
- Script
Body string - The entire content of the script.
- Script
Body stringBase64 - The entire content of the script encoded in Base64.
- []string
- Collection of tag identifiers.tags blocks are documented below.
- color String
- Color of the object. Should be one of existing colors.
- comments String
- Comments string.
- ignore
Errors Boolean - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- ignore
Warnings Boolean - Apply changes ignoring warnings.
- management
Repository StringScript Id - name String
- Object name.
- script
Body String - The entire content of the script.
- script
Body StringBase64 - The entire content of the script encoded in Base64.
- List<String>
- Collection of tag identifiers.tags blocks are documented below.
- color string
- Color of the object. Should be one of existing colors.
- comments string
- Comments string.
- ignore
Errors boolean - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- ignore
Warnings boolean - Apply changes ignoring warnings.
- management
Repository stringScript Id - name string
- Object name.
- script
Body string - The entire content of the script.
- script
Body stringBase64 - The entire content of the script encoded in Base64.
- string[]
- Collection of tag identifiers.tags blocks are documented below.
- color str
- Color of the object. Should be one of existing colors.
- comments str
- Comments string.
- ignore_
errors bool - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- ignore_
warnings bool - Apply changes ignoring warnings.
- management_
repository_ strscript_ id - name str
- Object name.
- script_
body str - The entire content of the script.
- script_
body_ strbase64 - The entire content of the script encoded in Base64.
- Sequence[str]
- Collection of tag identifiers.tags blocks are documented below.
- color String
- Color of the object. Should be one of existing colors.
- comments String
- Comments string.
- ignore
Errors Boolean - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- ignore
Warnings Boolean - Apply changes ignoring warnings.
- management
Repository StringScript Id - name String
- Object name.
- script
Body String - The entire content of the script.
- script
Body StringBase64 - The entire content of the script encoded in Base64.
- List<String>
- Collection of tag identifiers.tags blocks are documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the ManagementRepositoryScript resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Script
Body stringBase64Return - The entire content of the script encoded in Base64.
- Id string
- The provider-assigned unique ID for this managed resource.
- Script
Body stringBase64Return - The entire content of the script encoded in Base64.
- id String
- The provider-assigned unique ID for this managed resource.
- script
Body StringBase64Return - The entire content of the script encoded in Base64.
- id string
- The provider-assigned unique ID for this managed resource.
- script
Body stringBase64Return - The entire content of the script encoded in Base64.
- id str
- The provider-assigned unique ID for this managed resource.
- script_
body_ strbase64_ return - The entire content of the script encoded in Base64.
- id String
- The provider-assigned unique ID for this managed resource.
- script
Body StringBase64Return - The entire content of the script encoded in Base64.
Look up Existing ManagementRepositoryScript Resource
Get an existing ManagementRepositoryScript 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?: ManagementRepositoryScriptState, opts?: CustomResourceOptions): ManagementRepositoryScript
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
color: Optional[str] = None,
comments: Optional[str] = None,
ignore_errors: Optional[bool] = None,
ignore_warnings: Optional[bool] = None,
management_repository_script_id: Optional[str] = None,
name: Optional[str] = None,
script_body: Optional[str] = None,
script_body_base64: Optional[str] = None,
script_body_base64_return: Optional[str] = None,
tags: Optional[Sequence[str]] = None) -> ManagementRepositoryScript
func GetManagementRepositoryScript(ctx *Context, name string, id IDInput, state *ManagementRepositoryScriptState, opts ...ResourceOption) (*ManagementRepositoryScript, error)
public static ManagementRepositoryScript Get(string name, Input<string> id, ManagementRepositoryScriptState? state, CustomResourceOptions? opts = null)
public static ManagementRepositoryScript get(String name, Output<String> id, ManagementRepositoryScriptState state, CustomResourceOptions options)
resources: _: type: checkpoint:ManagementRepositoryScript 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.
- Color string
- Color of the object. Should be one of existing colors.
- Comments string
- Comments string.
- Ignore
Errors bool - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- Ignore
Warnings bool - Apply changes ignoring warnings.
- Management
Repository stringScript Id - Name string
- Object name.
- Script
Body string - The entire content of the script.
- Script
Body stringBase64 - The entire content of the script encoded in Base64.
- Script
Body stringBase64Return - The entire content of the script encoded in Base64.
- List<string>
- Collection of tag identifiers.tags blocks are documented below.
- Color string
- Color of the object. Should be one of existing colors.
- Comments string
- Comments string.
- Ignore
Errors bool - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- Ignore
Warnings bool - Apply changes ignoring warnings.
- Management
Repository stringScript Id - Name string
- Object name.
- Script
Body string - The entire content of the script.
- Script
Body stringBase64 - The entire content of the script encoded in Base64.
- Script
Body stringBase64Return - The entire content of the script encoded in Base64.
- []string
- Collection of tag identifiers.tags blocks are documented below.
- color String
- Color of the object. Should be one of existing colors.
- comments String
- Comments string.
- ignore
Errors Boolean - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- ignore
Warnings Boolean - Apply changes ignoring warnings.
- management
Repository StringScript Id - name String
- Object name.
- script
Body String - The entire content of the script.
- script
Body StringBase64 - The entire content of the script encoded in Base64.
- script
Body StringBase64Return - The entire content of the script encoded in Base64.
- List<String>
- Collection of tag identifiers.tags blocks are documented below.
- color string
- Color of the object. Should be one of existing colors.
- comments string
- Comments string.
- ignore
Errors boolean - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- ignore
Warnings boolean - Apply changes ignoring warnings.
- management
Repository stringScript Id - name string
- Object name.
- script
Body string - The entire content of the script.
- script
Body stringBase64 - The entire content of the script encoded in Base64.
- script
Body stringBase64Return - The entire content of the script encoded in Base64.
- string[]
- Collection of tag identifiers.tags blocks are documented below.
- color str
- Color of the object. Should be one of existing colors.
- comments str
- Comments string.
- ignore_
errors bool - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- ignore_
warnings bool - Apply changes ignoring warnings.
- management_
repository_ strscript_ id - name str
- Object name.
- script_
body str - The entire content of the script.
- script_
body_ strbase64 - The entire content of the script encoded in Base64.
- script_
body_ strbase64_ return - The entire content of the script encoded in Base64.
- Sequence[str]
- Collection of tag identifiers.tags blocks are documented below.
- color String
- Color of the object. Should be one of existing colors.
- comments String
- Comments string.
- ignore
Errors Boolean - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- ignore
Warnings Boolean - Apply changes ignoring warnings.
- management
Repository StringScript Id - name String
- Object name.
- script
Body String - The entire content of the script.
- script
Body StringBase64 - The entire content of the script encoded in Base64.
- script
Body StringBase64Return - The entire content of the script encoded in Base64.
- List<String>
- Collection of tag identifiers.tags blocks are documented below.
Package Details
- Repository
- checkpoint checkpointsw/terraform-provider-checkpoint
- License
- Notes
- This Pulumi package is based on the
checkpoint
Terraform Provider.