1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ApmSynthetics
  5. Script
Oracle Cloud Infrastructure v0.20.0 published on Wednesday, May 31, 2023 by Pulumi

oci.ApmSynthetics.Script

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v0.20.0 published on Wednesday, May 31, 2023 by Pulumi

    This resource provides the Script resource in Oracle Cloud Infrastructure Apm Synthetics service.

    Creates a new script.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testScript = new Oci.ApmSynthetics.Script("testScript", new()
        {
            ApmDomainId = oci_apm_synthetics_apm_domain.Test_apm_domain.Id,
            Content = @var.Script_content,
            ContentType = @var.Script_content_type,
            DisplayName = @var.Script_display_name,
            ContentFileName = @var.Script_content_file_name,
            DefinedTags = 
            {
                { "foo-namespace.bar-key", "value" },
            },
            FreeformTags = 
            {
                { "bar-key", "value" },
            },
            Parameters = new[]
            {
                new Oci.ApmSynthetics.Inputs.ScriptParameterArgs
                {
                    ParamName = @var.Script_parameters_param_name,
                    IsSecret = @var.Script_parameters_is_secret,
                    ParamValue = @var.Script_parameters_param_value,
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/ApmSynthetics"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ApmSynthetics.NewScript(ctx, "testScript", &ApmSynthetics.ScriptArgs{
    			ApmDomainId:     pulumi.Any(oci_apm_synthetics_apm_domain.Test_apm_domain.Id),
    			Content:         pulumi.Any(_var.Script_content),
    			ContentType:     pulumi.Any(_var.Script_content_type),
    			DisplayName:     pulumi.Any(_var.Script_display_name),
    			ContentFileName: pulumi.Any(_var.Script_content_file_name),
    			DefinedTags: pulumi.AnyMap{
    				"foo-namespace.bar-key": pulumi.Any("value"),
    			},
    			FreeformTags: pulumi.AnyMap{
    				"bar-key": pulumi.Any("value"),
    			},
    			Parameters: apmsynthetics.ScriptParameterArray{
    				&apmsynthetics.ScriptParameterArgs{
    					ParamName:  pulumi.Any(_var.Script_parameters_param_name),
    					IsSecret:   pulumi.Any(_var.Script_parameters_is_secret),
    					ParamValue: pulumi.Any(_var.Script_parameters_param_value),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.ApmSynthetics.Script;
    import com.pulumi.oci.ApmSynthetics.ScriptArgs;
    import com.pulumi.oci.ApmSynthetics.inputs.ScriptParameterArgs;
    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 testScript = new Script("testScript", ScriptArgs.builder()        
                .apmDomainId(oci_apm_synthetics_apm_domain.test_apm_domain().id())
                .content(var_.script_content())
                .contentType(var_.script_content_type())
                .displayName(var_.script_display_name())
                .contentFileName(var_.script_content_file_name())
                .definedTags(Map.of("foo-namespace.bar-key", "value"))
                .freeformTags(Map.of("bar-key", "value"))
                .parameters(ScriptParameterArgs.builder()
                    .paramName(var_.script_parameters_param_name())
                    .isSecret(var_.script_parameters_is_secret())
                    .paramValue(var_.script_parameters_param_value())
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_script = oci.apm_synthetics.Script("testScript",
        apm_domain_id=oci_apm_synthetics_apm_domain["test_apm_domain"]["id"],
        content=var["script_content"],
        content_type=var["script_content_type"],
        display_name=var["script_display_name"],
        content_file_name=var["script_content_file_name"],
        defined_tags={
            "foo-namespace.bar-key": "value",
        },
        freeform_tags={
            "bar-key": "value",
        },
        parameters=[oci.apm_synthetics.ScriptParameterArgs(
            param_name=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
            is_secret=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
            param_value=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
        )])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testScript = new oci.apmsynthetics.Script("testScript", {
        apmDomainId: oci_apm_synthetics_apm_domain.test_apm_domain.id,
        content: _var.script_content,
        contentType: _var.script_content_type,
        displayName: _var.script_display_name,
        contentFileName: _var.script_content_file_name,
        definedTags: {
            "foo-namespace.bar-key": "value",
        },
        freeformTags: {
            "bar-key": "value",
        },
        parameters: [{
            paramName: _var.script_parameters_param_name,
            isSecret: _var.script_parameters_is_secret,
            paramValue: _var.script_parameters_param_value,
        }],
    });
    
    resources:
      testScript:
        type: oci:ApmSynthetics:Script
        properties:
          #Required
          apmDomainId: ${oci_apm_synthetics_apm_domain.test_apm_domain.id}
          content: ${var.script_content}
          contentType: ${var.script_content_type}
          displayName: ${var.script_display_name}
          #Optional
          contentFileName: ${var.script_content_file_name}
          definedTags:
            foo-namespace.bar-key: value
          freeformTags:
            bar-key: value
          parameters:
            - paramName: ${var.script_parameters_param_name}
              isSecret: ${var.script_parameters_is_secret}
              paramValue: ${var.script_parameters_param_value}
    

    Create Script Resource

    new Script(name: string, args: ScriptArgs, opts?: CustomResourceOptions);
    @overload
    def Script(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               apm_domain_id: Optional[str] = None,
               content: Optional[str] = None,
               content_file_name: Optional[str] = None,
               content_type: Optional[str] = None,
               defined_tags: Optional[Mapping[str, Any]] = None,
               display_name: Optional[str] = None,
               freeform_tags: Optional[Mapping[str, Any]] = None,
               parameters: Optional[Sequence[_apmsynthetics.ScriptParameterArgs]] = None)
    @overload
    def Script(resource_name: str,
               args: ScriptArgs,
               opts: Optional[ResourceOptions] = None)
    func NewScript(ctx *Context, name string, args ScriptArgs, opts ...ResourceOption) (*Script, error)
    public Script(string name, ScriptArgs args, CustomResourceOptions? opts = null)
    public Script(String name, ScriptArgs args)
    public Script(String name, ScriptArgs args, CustomResourceOptions options)
    
    type: oci:ApmSynthetics:Script
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ScriptArgs
    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 ScriptArgs
    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 ScriptArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ScriptArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ScriptArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Script Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Script resource accepts the following input properties:

    ApmDomainId string

    (Updatable) The APM domain ID the request is intended for.

    Content string

    (Updatable) The content of the script. It may contain custom-defined tags that can be used for setting dynamic parameters. The format to set dynamic parameters is: <ORAP><ON>param name</ON><OV>param value</OV><OS>isParamValueSecret(true/false)</OS></ORAP>. Param value and isParamValueSecret are optional, the default value for isParamValueSecret is false. Examples: With mandatory param name : <ORAP><ON>param name</ON></ORAP> With parameter name and value : <ORAP><ON>param name</ON><OV>param value</OV></ORAP> Note that the content is valid if it matches the given content type. For example, if the content type is SIDE, then the content should be in Side script format. If the content type is JS, then the content should be in JavaScript format.

    ContentType string

    (Updatable) Content type of script.

    DisplayName string

    (Updatable) Unique name that can be edited. The name should not contain any confidential information.

    ContentFileName string

    (Updatable) File name of uploaded script content.

    DefinedTags Dictionary<string, object>

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

    FreeformTags Dictionary<string, object>

    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

    Parameters List<ScriptParameterArgs>

    (Updatable) List of script parameters. Example: [{"paramName": "userid", "paramValue":"testuser", "isSecret": false}]

    ApmDomainId string

    (Updatable) The APM domain ID the request is intended for.

    Content string

    (Updatable) The content of the script. It may contain custom-defined tags that can be used for setting dynamic parameters. The format to set dynamic parameters is: <ORAP><ON>param name</ON><OV>param value</OV><OS>isParamValueSecret(true/false)</OS></ORAP>. Param value and isParamValueSecret are optional, the default value for isParamValueSecret is false. Examples: With mandatory param name : <ORAP><ON>param name</ON></ORAP> With parameter name and value : <ORAP><ON>param name</ON><OV>param value</OV></ORAP> Note that the content is valid if it matches the given content type. For example, if the content type is SIDE, then the content should be in Side script format. If the content type is JS, then the content should be in JavaScript format.

    ContentType string

    (Updatable) Content type of script.

    DisplayName string

    (Updatable) Unique name that can be edited. The name should not contain any confidential information.

    ContentFileName string

    (Updatable) File name of uploaded script content.

    DefinedTags map[string]interface{}

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

    FreeformTags map[string]interface{}

    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

    Parameters []ScriptParameterArgs

    (Updatable) List of script parameters. Example: [{"paramName": "userid", "paramValue":"testuser", "isSecret": false}]

    apmDomainId String

    (Updatable) The APM domain ID the request is intended for.

    content String

    (Updatable) The content of the script. It may contain custom-defined tags that can be used for setting dynamic parameters. The format to set dynamic parameters is: <ORAP><ON>param name</ON><OV>param value</OV><OS>isParamValueSecret(true/false)</OS></ORAP>. Param value and isParamValueSecret are optional, the default value for isParamValueSecret is false. Examples: With mandatory param name : <ORAP><ON>param name</ON></ORAP> With parameter name and value : <ORAP><ON>param name</ON><OV>param value</OV></ORAP> Note that the content is valid if it matches the given content type. For example, if the content type is SIDE, then the content should be in Side script format. If the content type is JS, then the content should be in JavaScript format.

    contentType String

    (Updatable) Content type of script.

    displayName String

    (Updatable) Unique name that can be edited. The name should not contain any confidential information.

    contentFileName String

    (Updatable) File name of uploaded script content.

    definedTags Map<String,Object>

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

    freeformTags Map<String,Object>

    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

    parameters List<ScriptParameterArgs>

    (Updatable) List of script parameters. Example: [{"paramName": "userid", "paramValue":"testuser", "isSecret": false}]

    apmDomainId string

    (Updatable) The APM domain ID the request is intended for.

    content string

    (Updatable) The content of the script. It may contain custom-defined tags that can be used for setting dynamic parameters. The format to set dynamic parameters is: <ORAP><ON>param name</ON><OV>param value</OV><OS>isParamValueSecret(true/false)</OS></ORAP>. Param value and isParamValueSecret are optional, the default value for isParamValueSecret is false. Examples: With mandatory param name : <ORAP><ON>param name</ON></ORAP> With parameter name and value : <ORAP><ON>param name</ON><OV>param value</OV></ORAP> Note that the content is valid if it matches the given content type. For example, if the content type is SIDE, then the content should be in Side script format. If the content type is JS, then the content should be in JavaScript format.

    contentType string

    (Updatable) Content type of script.

    displayName string

    (Updatable) Unique name that can be edited. The name should not contain any confidential information.

    contentFileName string

    (Updatable) File name of uploaded script content.

    definedTags {[key: string]: any}

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

    freeformTags {[key: string]: any}

    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

    parameters ScriptParameterArgs[]

    (Updatable) List of script parameters. Example: [{"paramName": "userid", "paramValue":"testuser", "isSecret": false}]

    apm_domain_id str

    (Updatable) The APM domain ID the request is intended for.

    content str

    (Updatable) The content of the script. It may contain custom-defined tags that can be used for setting dynamic parameters. The format to set dynamic parameters is: <ORAP><ON>param name</ON><OV>param value</OV><OS>isParamValueSecret(true/false)</OS></ORAP>. Param value and isParamValueSecret are optional, the default value for isParamValueSecret is false. Examples: With mandatory param name : <ORAP><ON>param name</ON></ORAP> With parameter name and value : <ORAP><ON>param name</ON><OV>param value</OV></ORAP> Note that the content is valid if it matches the given content type. For example, if the content type is SIDE, then the content should be in Side script format. If the content type is JS, then the content should be in JavaScript format.

    content_type str

    (Updatable) Content type of script.

    display_name str

    (Updatable) Unique name that can be edited. The name should not contain any confidential information.

    content_file_name str

    (Updatable) File name of uploaded script content.

    defined_tags Mapping[str, Any]

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

    freeform_tags Mapping[str, Any]

    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

    parameters ScriptParameterArgs]

    (Updatable) List of script parameters. Example: [{"paramName": "userid", "paramValue":"testuser", "isSecret": false}]

    apmDomainId String

    (Updatable) The APM domain ID the request is intended for.

    content String

    (Updatable) The content of the script. It may contain custom-defined tags that can be used for setting dynamic parameters. The format to set dynamic parameters is: <ORAP><ON>param name</ON><OV>param value</OV><OS>isParamValueSecret(true/false)</OS></ORAP>. Param value and isParamValueSecret are optional, the default value for isParamValueSecret is false. Examples: With mandatory param name : <ORAP><ON>param name</ON></ORAP> With parameter name and value : <ORAP><ON>param name</ON><OV>param value</OV></ORAP> Note that the content is valid if it matches the given content type. For example, if the content type is SIDE, then the content should be in Side script format. If the content type is JS, then the content should be in JavaScript format.

    contentType String

    (Updatable) Content type of script.

    displayName String

    (Updatable) Unique name that can be edited. The name should not contain any confidential information.

    contentFileName String

    (Updatable) File name of uploaded script content.

    definedTags Map<Any>

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

    freeformTags Map<Any>

    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

    parameters List<Property Map>

    (Updatable) List of script parameters. Example: [{"paramName": "userid", "paramValue":"testuser", "isSecret": false}]

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Script resource produces the following output properties:

    ContentSizeInBytes int

    Size of the script content.

    Id string

    The provider-assigned unique ID for this managed resource.

    MonitorStatusCountMaps List<ScriptMonitorStatusCountMap>

    Details of the monitor count per state. Example: { "total" : 5, "enabled" : 3 , "disabled" : 2, "invalid" : 0 }

    TimeCreated string

    The time the resource was created, expressed in RFC 3339 timestamp format. Example: 2020-02-12T22:47:12.613Z

    TimeUpdated string

    The time the resource was updated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z

    TimeUploaded string

    The time the script was uploaded.

    ContentSizeInBytes int

    Size of the script content.

    Id string

    The provider-assigned unique ID for this managed resource.

    MonitorStatusCountMaps []ScriptMonitorStatusCountMap

    Details of the monitor count per state. Example: { "total" : 5, "enabled" : 3 , "disabled" : 2, "invalid" : 0 }

    TimeCreated string

    The time the resource was created, expressed in RFC 3339 timestamp format. Example: 2020-02-12T22:47:12.613Z

    TimeUpdated string

    The time the resource was updated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z

    TimeUploaded string

    The time the script was uploaded.

    contentSizeInBytes Integer

    Size of the script content.

    id String

    The provider-assigned unique ID for this managed resource.

    monitorStatusCountMaps List<ScriptMonitorStatusCountMap>

    Details of the monitor count per state. Example: { "total" : 5, "enabled" : 3 , "disabled" : 2, "invalid" : 0 }

    timeCreated String

    The time the resource was created, expressed in RFC 3339 timestamp format. Example: 2020-02-12T22:47:12.613Z

    timeUpdated String

    The time the resource was updated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z

    timeUploaded String

    The time the script was uploaded.

    contentSizeInBytes number

    Size of the script content.

    id string

    The provider-assigned unique ID for this managed resource.

    monitorStatusCountMaps ScriptMonitorStatusCountMap[]

    Details of the monitor count per state. Example: { "total" : 5, "enabled" : 3 , "disabled" : 2, "invalid" : 0 }

    timeCreated string

    The time the resource was created, expressed in RFC 3339 timestamp format. Example: 2020-02-12T22:47:12.613Z

    timeUpdated string

    The time the resource was updated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z

    timeUploaded string

    The time the script was uploaded.

    content_size_in_bytes int

    Size of the script content.

    id str

    The provider-assigned unique ID for this managed resource.

    monitor_status_count_maps ScriptMonitorStatusCountMap]

    Details of the monitor count per state. Example: { "total" : 5, "enabled" : 3 , "disabled" : 2, "invalid" : 0 }

    time_created str

    The time the resource was created, expressed in RFC 3339 timestamp format. Example: 2020-02-12T22:47:12.613Z

    time_updated str

    The time the resource was updated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z

    time_uploaded str

    The time the script was uploaded.

    contentSizeInBytes Number

    Size of the script content.

    id String

    The provider-assigned unique ID for this managed resource.

    monitorStatusCountMaps List<Property Map>

    Details of the monitor count per state. Example: { "total" : 5, "enabled" : 3 , "disabled" : 2, "invalid" : 0 }

    timeCreated String

    The time the resource was created, expressed in RFC 3339 timestamp format. Example: 2020-02-12T22:47:12.613Z

    timeUpdated String

    The time the resource was updated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z

    timeUploaded String

    The time the script was uploaded.

    Look up Existing Script Resource

    Get an existing Script 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?: ScriptState, opts?: CustomResourceOptions): Script
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            apm_domain_id: Optional[str] = None,
            content: Optional[str] = None,
            content_file_name: Optional[str] = None,
            content_size_in_bytes: Optional[int] = None,
            content_type: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            monitor_status_count_maps: Optional[Sequence[_apmsynthetics.ScriptMonitorStatusCountMapArgs]] = None,
            parameters: Optional[Sequence[_apmsynthetics.ScriptParameterArgs]] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None,
            time_uploaded: Optional[str] = None) -> Script
    func GetScript(ctx *Context, name string, id IDInput, state *ScriptState, opts ...ResourceOption) (*Script, error)
    public static Script Get(string name, Input<string> id, ScriptState? state, CustomResourceOptions? opts = null)
    public static Script get(String name, Output<String> id, ScriptState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    ApmDomainId string

    (Updatable) The APM domain ID the request is intended for.

    Content string

    (Updatable) The content of the script. It may contain custom-defined tags that can be used for setting dynamic parameters. The format to set dynamic parameters is: <ORAP><ON>param name</ON><OV>param value</OV><OS>isParamValueSecret(true/false)</OS></ORAP>. Param value and isParamValueSecret are optional, the default value for isParamValueSecret is false. Examples: With mandatory param name : <ORAP><ON>param name</ON></ORAP> With parameter name and value : <ORAP><ON>param name</ON><OV>param value</OV></ORAP> Note that the content is valid if it matches the given content type. For example, if the content type is SIDE, then the content should be in Side script format. If the content type is JS, then the content should be in JavaScript format.

    ContentFileName string

    (Updatable) File name of uploaded script content.

    ContentSizeInBytes int

    Size of the script content.

    ContentType string

    (Updatable) Content type of script.

    DefinedTags Dictionary<string, object>

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

    DisplayName string

    (Updatable) Unique name that can be edited. The name should not contain any confidential information.

    FreeformTags Dictionary<string, object>

    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

    MonitorStatusCountMaps List<ScriptMonitorStatusCountMapArgs>

    Details of the monitor count per state. Example: { "total" : 5, "enabled" : 3 , "disabled" : 2, "invalid" : 0 }

    Parameters List<ScriptParameterArgs>

    (Updatable) List of script parameters. Example: [{"paramName": "userid", "paramValue":"testuser", "isSecret": false}]

    TimeCreated string

    The time the resource was created, expressed in RFC 3339 timestamp format. Example: 2020-02-12T22:47:12.613Z

    TimeUpdated string

    The time the resource was updated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z

    TimeUploaded string

    The time the script was uploaded.

    ApmDomainId string

    (Updatable) The APM domain ID the request is intended for.

    Content string

    (Updatable) The content of the script. It may contain custom-defined tags that can be used for setting dynamic parameters. The format to set dynamic parameters is: <ORAP><ON>param name</ON><OV>param value</OV><OS>isParamValueSecret(true/false)</OS></ORAP>. Param value and isParamValueSecret are optional, the default value for isParamValueSecret is false. Examples: With mandatory param name : <ORAP><ON>param name</ON></ORAP> With parameter name and value : <ORAP><ON>param name</ON><OV>param value</OV></ORAP> Note that the content is valid if it matches the given content type. For example, if the content type is SIDE, then the content should be in Side script format. If the content type is JS, then the content should be in JavaScript format.

    ContentFileName string

    (Updatable) File name of uploaded script content.

    ContentSizeInBytes int

    Size of the script content.

    ContentType string

    (Updatable) Content type of script.

    DefinedTags map[string]interface{}

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

    DisplayName string

    (Updatable) Unique name that can be edited. The name should not contain any confidential information.

    FreeformTags map[string]interface{}

    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

    MonitorStatusCountMaps []ScriptMonitorStatusCountMapArgs

    Details of the monitor count per state. Example: { "total" : 5, "enabled" : 3 , "disabled" : 2, "invalid" : 0 }

    Parameters []ScriptParameterArgs

    (Updatable) List of script parameters. Example: [{"paramName": "userid", "paramValue":"testuser", "isSecret": false}]

    TimeCreated string

    The time the resource was created, expressed in RFC 3339 timestamp format. Example: 2020-02-12T22:47:12.613Z

    TimeUpdated string

    The time the resource was updated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z

    TimeUploaded string

    The time the script was uploaded.

    apmDomainId String

    (Updatable) The APM domain ID the request is intended for.

    content String

    (Updatable) The content of the script. It may contain custom-defined tags that can be used for setting dynamic parameters. The format to set dynamic parameters is: <ORAP><ON>param name</ON><OV>param value</OV><OS>isParamValueSecret(true/false)</OS></ORAP>. Param value and isParamValueSecret are optional, the default value for isParamValueSecret is false. Examples: With mandatory param name : <ORAP><ON>param name</ON></ORAP> With parameter name and value : <ORAP><ON>param name</ON><OV>param value</OV></ORAP> Note that the content is valid if it matches the given content type. For example, if the content type is SIDE, then the content should be in Side script format. If the content type is JS, then the content should be in JavaScript format.

    contentFileName String

    (Updatable) File name of uploaded script content.

    contentSizeInBytes Integer

    Size of the script content.

    contentType String

    (Updatable) Content type of script.

    definedTags Map<String,Object>

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

    displayName String

    (Updatable) Unique name that can be edited. The name should not contain any confidential information.

    freeformTags Map<String,Object>

    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

    monitorStatusCountMaps List<ScriptMonitorStatusCountMapArgs>

    Details of the monitor count per state. Example: { "total" : 5, "enabled" : 3 , "disabled" : 2, "invalid" : 0 }

    parameters List<ScriptParameterArgs>

    (Updatable) List of script parameters. Example: [{"paramName": "userid", "paramValue":"testuser", "isSecret": false}]

    timeCreated String

    The time the resource was created, expressed in RFC 3339 timestamp format. Example: 2020-02-12T22:47:12.613Z

    timeUpdated String

    The time the resource was updated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z

    timeUploaded String

    The time the script was uploaded.

    apmDomainId string

    (Updatable) The APM domain ID the request is intended for.

    content string

    (Updatable) The content of the script. It may contain custom-defined tags that can be used for setting dynamic parameters. The format to set dynamic parameters is: <ORAP><ON>param name</ON><OV>param value</OV><OS>isParamValueSecret(true/false)</OS></ORAP>. Param value and isParamValueSecret are optional, the default value for isParamValueSecret is false. Examples: With mandatory param name : <ORAP><ON>param name</ON></ORAP> With parameter name and value : <ORAP><ON>param name</ON><OV>param value</OV></ORAP> Note that the content is valid if it matches the given content type. For example, if the content type is SIDE, then the content should be in Side script format. If the content type is JS, then the content should be in JavaScript format.

    contentFileName string

    (Updatable) File name of uploaded script content.

    contentSizeInBytes number

    Size of the script content.

    contentType string

    (Updatable) Content type of script.

    definedTags {[key: string]: any}

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

    displayName string

    (Updatable) Unique name that can be edited. The name should not contain any confidential information.

    freeformTags {[key: string]: any}

    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

    monitorStatusCountMaps ScriptMonitorStatusCountMapArgs[]

    Details of the monitor count per state. Example: { "total" : 5, "enabled" : 3 , "disabled" : 2, "invalid" : 0 }

    parameters ScriptParameterArgs[]

    (Updatable) List of script parameters. Example: [{"paramName": "userid", "paramValue":"testuser", "isSecret": false}]

    timeCreated string

    The time the resource was created, expressed in RFC 3339 timestamp format. Example: 2020-02-12T22:47:12.613Z

    timeUpdated string

    The time the resource was updated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z

    timeUploaded string

    The time the script was uploaded.

    apm_domain_id str

    (Updatable) The APM domain ID the request is intended for.

    content str

    (Updatable) The content of the script. It may contain custom-defined tags that can be used for setting dynamic parameters. The format to set dynamic parameters is: <ORAP><ON>param name</ON><OV>param value</OV><OS>isParamValueSecret(true/false)</OS></ORAP>. Param value and isParamValueSecret are optional, the default value for isParamValueSecret is false. Examples: With mandatory param name : <ORAP><ON>param name</ON></ORAP> With parameter name and value : <ORAP><ON>param name</ON><OV>param value</OV></ORAP> Note that the content is valid if it matches the given content type. For example, if the content type is SIDE, then the content should be in Side script format. If the content type is JS, then the content should be in JavaScript format.

    content_file_name str

    (Updatable) File name of uploaded script content.

    content_size_in_bytes int

    Size of the script content.

    content_type str

    (Updatable) Content type of script.

    defined_tags Mapping[str, Any]

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

    display_name str

    (Updatable) Unique name that can be edited. The name should not contain any confidential information.

    freeform_tags Mapping[str, Any]

    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

    monitor_status_count_maps ScriptMonitorStatusCountMapArgs]

    Details of the monitor count per state. Example: { "total" : 5, "enabled" : 3 , "disabled" : 2, "invalid" : 0 }

    parameters ScriptParameterArgs]

    (Updatable) List of script parameters. Example: [{"paramName": "userid", "paramValue":"testuser", "isSecret": false}]

    time_created str

    The time the resource was created, expressed in RFC 3339 timestamp format. Example: 2020-02-12T22:47:12.613Z

    time_updated str

    The time the resource was updated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z

    time_uploaded str

    The time the script was uploaded.

    apmDomainId String

    (Updatable) The APM domain ID the request is intended for.

    content String

    (Updatable) The content of the script. It may contain custom-defined tags that can be used for setting dynamic parameters. The format to set dynamic parameters is: <ORAP><ON>param name</ON><OV>param value</OV><OS>isParamValueSecret(true/false)</OS></ORAP>. Param value and isParamValueSecret are optional, the default value for isParamValueSecret is false. Examples: With mandatory param name : <ORAP><ON>param name</ON></ORAP> With parameter name and value : <ORAP><ON>param name</ON><OV>param value</OV></ORAP> Note that the content is valid if it matches the given content type. For example, if the content type is SIDE, then the content should be in Side script format. If the content type is JS, then the content should be in JavaScript format.

    contentFileName String

    (Updatable) File name of uploaded script content.

    contentSizeInBytes Number

    Size of the script content.

    contentType String

    (Updatable) Content type of script.

    definedTags Map<Any>

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

    displayName String

    (Updatable) Unique name that can be edited. The name should not contain any confidential information.

    freeformTags Map<Any>

    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

    monitorStatusCountMaps List<Property Map>

    Details of the monitor count per state. Example: { "total" : 5, "enabled" : 3 , "disabled" : 2, "invalid" : 0 }

    parameters List<Property Map>

    (Updatable) List of script parameters. Example: [{"paramName": "userid", "paramValue":"testuser", "isSecret": false}]

    timeCreated String

    The time the resource was created, expressed in RFC 3339 timestamp format. Example: 2020-02-12T22:47:12.613Z

    timeUpdated String

    The time the resource was updated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z

    timeUploaded String

    The time the script was uploaded.

    Supporting Types

    ScriptMonitorStatusCountMap

    Disabled int

    Number of disabled monitors using the script.

    Enabled int

    Number of enabled monitors using the script.

    Invalid int

    Number of invalid monitors using the script.

    Total int

    Total number of monitors using the script.

    Disabled int

    Number of disabled monitors using the script.

    Enabled int

    Number of enabled monitors using the script.

    Invalid int

    Number of invalid monitors using the script.

    Total int

    Total number of monitors using the script.

    disabled Integer

    Number of disabled monitors using the script.

    enabled Integer

    Number of enabled monitors using the script.

    invalid Integer

    Number of invalid monitors using the script.

    total Integer

    Total number of monitors using the script.

    disabled number

    Number of disabled monitors using the script.

    enabled number

    Number of enabled monitors using the script.

    invalid number

    Number of invalid monitors using the script.

    total number

    Total number of monitors using the script.

    disabled int

    Number of disabled monitors using the script.

    enabled int

    Number of enabled monitors using the script.

    invalid int

    Number of invalid monitors using the script.

    total int

    Total number of monitors using the script.

    disabled Number

    Number of disabled monitors using the script.

    enabled Number

    Number of enabled monitors using the script.

    invalid Number

    Number of invalid monitors using the script.

    total Number

    Total number of monitors using the script.

    ScriptParameter

    ParamName string

    (Updatable) Name of the parameter.

    IsOverwritten bool

    If parameter value is default or overwritten.

    IsSecret bool

    (Updatable) If the parameter value is secret and should be kept confidential, then set isSecret to true.

    ParamValue string

    (Updatable) Value of the parameter.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    ScriptParameters List<ScriptParameterScriptParameter>

    Details of the script parameters, paramName must be from the script content and these details can be used to overwrite the default parameter present in the script content.

    ParamName string

    (Updatable) Name of the parameter.

    IsOverwritten bool

    If parameter value is default or overwritten.

    IsSecret bool

    (Updatable) If the parameter value is secret and should be kept confidential, then set isSecret to true.

    ParamValue string

    (Updatable) Value of the parameter.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    ScriptParameters []ScriptParameterScriptParameter

    Details of the script parameters, paramName must be from the script content and these details can be used to overwrite the default parameter present in the script content.

    paramName String

    (Updatable) Name of the parameter.

    isOverwritten Boolean

    If parameter value is default or overwritten.

    isSecret Boolean

    (Updatable) If the parameter value is secret and should be kept confidential, then set isSecret to true.

    paramValue String

    (Updatable) Value of the parameter.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    scriptParameters List<ScriptParameterScriptParameter>

    Details of the script parameters, paramName must be from the script content and these details can be used to overwrite the default parameter present in the script content.

    paramName string

    (Updatable) Name of the parameter.

    isOverwritten boolean

    If parameter value is default or overwritten.

    isSecret boolean

    (Updatable) If the parameter value is secret and should be kept confidential, then set isSecret to true.

    paramValue string

    (Updatable) Value of the parameter.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    scriptParameters ScriptParameterScriptParameter[]

    Details of the script parameters, paramName must be from the script content and these details can be used to overwrite the default parameter present in the script content.

    param_name str

    (Updatable) Name of the parameter.

    is_overwritten bool

    If parameter value is default or overwritten.

    is_secret bool

    (Updatable) If the parameter value is secret and should be kept confidential, then set isSecret to true.

    param_value str

    (Updatable) Value of the parameter.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    script_parameters ScriptParameterScriptParameter]

    Details of the script parameters, paramName must be from the script content and these details can be used to overwrite the default parameter present in the script content.

    paramName String

    (Updatable) Name of the parameter.

    isOverwritten Boolean

    If parameter value is default or overwritten.

    isSecret Boolean

    (Updatable) If the parameter value is secret and should be kept confidential, then set isSecret to true.

    paramValue String

    (Updatable) Value of the parameter.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    scriptParameters List<Property Map>

    Details of the script parameters, paramName must be from the script content and these details can be used to overwrite the default parameter present in the script content.

    ScriptParameterScriptParameter

    IsSecret bool

    (Updatable) If the parameter value is secret and should be kept confidential, then set isSecret to true.

    ParamName string

    (Updatable) Name of the parameter.

    ParamValue string

    (Updatable) Value of the parameter.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    IsSecret bool

    (Updatable) If the parameter value is secret and should be kept confidential, then set isSecret to true.

    ParamName string

    (Updatable) Name of the parameter.

    ParamValue string

    (Updatable) Value of the parameter.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    isSecret Boolean

    (Updatable) If the parameter value is secret and should be kept confidential, then set isSecret to true.

    paramName String

    (Updatable) Name of the parameter.

    paramValue String

    (Updatable) Value of the parameter.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    isSecret boolean

    (Updatable) If the parameter value is secret and should be kept confidential, then set isSecret to true.

    paramName string

    (Updatable) Name of the parameter.

    paramValue string

    (Updatable) Value of the parameter.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    is_secret bool

    (Updatable) If the parameter value is secret and should be kept confidential, then set isSecret to true.

    param_name str

    (Updatable) Name of the parameter.

    param_value str

    (Updatable) Value of the parameter.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    isSecret Boolean

    (Updatable) If the parameter value is secret and should be kept confidential, then set isSecret to true.

    paramName String

    (Updatable) Name of the parameter.

    paramValue String

    (Updatable) Value of the parameter.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Import

    Scripts can be imported using the id, e.g.

     $ pulumi import oci:ApmSynthetics/script:Script test_script "scripts/{scriptId}/apmDomainId/{apmDomainId}"
    

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the oci Terraform Provider.

    oci logo
    Oracle Cloud Infrastructure v0.20.0 published on Wednesday, May 31, 2023 by Pulumi