ns1 logo
NS1 v3.0.0, Mar 17 23

ns1.Application

Provides a NS1 Pulsar application resource. This can be used to create, modify, and delete applications.

NS1 Documentation

Application Api Docs

Example Usage

using System.Collections.Generic;
using Pulumi;
using Ns1 = Pulumi.Ns1;

return await Deployment.RunAsync(() => 
{
    // Create a new pulsar application with default config
    var ns1App = new Ns1.Application("ns1App", new()
    {
        DefaultConfig = new Ns1.Inputs.ApplicationDefaultConfigArgs
        {
            Http = true,
            Https = false,
            JobTimeoutMillis = 100,
            RequestTimeoutMillis = 100,
            StaticValues = true,
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-ns1/sdk/v3/go/ns1"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ns1.NewApplication(ctx, "ns1App", &ns1.ApplicationArgs{
			DefaultConfig: &ns1.ApplicationDefaultConfigArgs{
				Http:                 pulumi.Bool(true),
				Https:                pulumi.Bool(false),
				JobTimeoutMillis:     pulumi.Int(100),
				RequestTimeoutMillis: pulumi.Int(100),
				StaticValues:         pulumi.Bool(true),
			},
		})
		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.ns1.Application;
import com.pulumi.ns1.ApplicationArgs;
import com.pulumi.ns1.inputs.ApplicationDefaultConfigArgs;
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 ns1App = new Application("ns1App", ApplicationArgs.builder()        
            .defaultConfig(ApplicationDefaultConfigArgs.builder()
                .http(true)
                .https(false)
                .jobTimeoutMillis(100)
                .requestTimeoutMillis(100)
                .staticValues(true)
                .build())
            .build());

    }
}
import pulumi
import pulumi_ns1 as ns1

# Create a new pulsar application with default config
ns1_app = ns1.Application("ns1App", default_config=ns1.ApplicationDefaultConfigArgs(
    http=True,
    https=False,
    job_timeout_millis=100,
    request_timeout_millis=100,
    static_values=True,
))
import * as pulumi from "@pulumi/pulumi";
import * as ns1 from "@pulumi/ns1";

// Create a new pulsar application with default config
const ns1App = new ns1.Application("ns1App", {defaultConfig: {
    http: true,
    https: false,
    jobTimeoutMillis: 100,
    requestTimeoutMillis: 100,
    staticValues: true,
}});
resources:
  # Create a new pulsar application with default config
  ns1App:
    type: ns1:Application
    properties:
      defaultConfig:
        http: true
        https: false
        jobTimeoutMillis: 100
        requestTimeoutMillis: 100
        staticValues: true

Create Application Resource

new Application(name: string, args?: ApplicationArgs, opts?: CustomResourceOptions);
@overload
def Application(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                active: Optional[bool] = None,
                browser_wait_millis: Optional[int] = None,
                default_config: Optional[ApplicationDefaultConfigArgs] = None,
                jobs_per_transaction: Optional[int] = None,
                name: Optional[str] = None)
@overload
def Application(resource_name: str,
                args: Optional[ApplicationArgs] = None,
                opts: Optional[ResourceOptions] = None)
func NewApplication(ctx *Context, name string, args *ApplicationArgs, opts ...ResourceOption) (*Application, error)
public Application(string name, ApplicationArgs? args = null, CustomResourceOptions? opts = null)
public Application(String name, ApplicationArgs args)
public Application(String name, ApplicationArgs args, CustomResourceOptions options)
type: ns1:Application
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ApplicationArgs
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 ApplicationArgs
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 ApplicationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ApplicationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ApplicationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Application 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 Application resource accepts the following input properties:

Active bool

Indicates whether or not this application is currently active and usable for traffic steering.

BrowserWaitMillis int

The amount of time (in milliseconds) the browser should wait before running measurements.

DefaultConfig ApplicationDefaultConfigArgs

Default job configuration. If a field is present here and not on a specific job associated with this application, the default value specified here is used..

JobsPerTransaction int

Number of jobs to measure per user impression.

Name string

Descriptive name for this Pulsar app.

Active bool

Indicates whether or not this application is currently active and usable for traffic steering.

BrowserWaitMillis int

The amount of time (in milliseconds) the browser should wait before running measurements.

DefaultConfig ApplicationDefaultConfigArgs

Default job configuration. If a field is present here and not on a specific job associated with this application, the default value specified here is used..

JobsPerTransaction int

Number of jobs to measure per user impression.

Name string

Descriptive name for this Pulsar app.

active Boolean

Indicates whether or not this application is currently active and usable for traffic steering.

browserWaitMillis Integer

The amount of time (in milliseconds) the browser should wait before running measurements.

defaultConfig ApplicationDefaultConfigArgs

Default job configuration. If a field is present here and not on a specific job associated with this application, the default value specified here is used..

jobsPerTransaction Integer

Number of jobs to measure per user impression.

name String

Descriptive name for this Pulsar app.

active boolean

Indicates whether or not this application is currently active and usable for traffic steering.

browserWaitMillis number

The amount of time (in milliseconds) the browser should wait before running measurements.

defaultConfig ApplicationDefaultConfigArgs

Default job configuration. If a field is present here and not on a specific job associated with this application, the default value specified here is used..

jobsPerTransaction number

Number of jobs to measure per user impression.

name string

Descriptive name for this Pulsar app.

active bool

Indicates whether or not this application is currently active and usable for traffic steering.

browser_wait_millis int

The amount of time (in milliseconds) the browser should wait before running measurements.

default_config ApplicationDefaultConfigArgs

Default job configuration. If a field is present here and not on a specific job associated with this application, the default value specified here is used..

jobs_per_transaction int

Number of jobs to measure per user impression.

name str

Descriptive name for this Pulsar app.

active Boolean

Indicates whether or not this application is currently active and usable for traffic steering.

browserWaitMillis Number

The amount of time (in milliseconds) the browser should wait before running measurements.

defaultConfig Property Map

Default job configuration. If a field is present here and not on a specific job associated with this application, the default value specified here is used..

jobsPerTransaction Number

Number of jobs to measure per user impression.

name String

Descriptive name for this Pulsar app.

Outputs

All input properties are implicitly available as output properties. Additionally, the Application 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 Application Resource

Get an existing Application 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?: ApplicationState, opts?: CustomResourceOptions): Application
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        active: Optional[bool] = None,
        browser_wait_millis: Optional[int] = None,
        default_config: Optional[ApplicationDefaultConfigArgs] = None,
        jobs_per_transaction: Optional[int] = None,
        name: Optional[str] = None) -> Application
func GetApplication(ctx *Context, name string, id IDInput, state *ApplicationState, opts ...ResourceOption) (*Application, error)
public static Application Get(string name, Input<string> id, ApplicationState? state, CustomResourceOptions? opts = null)
public static Application get(String name, Output<String> id, ApplicationState 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:
Active bool

Indicates whether or not this application is currently active and usable for traffic steering.

BrowserWaitMillis int

The amount of time (in milliseconds) the browser should wait before running measurements.

DefaultConfig ApplicationDefaultConfigArgs

Default job configuration. If a field is present here and not on a specific job associated with this application, the default value specified here is used..

JobsPerTransaction int

Number of jobs to measure per user impression.

Name string

Descriptive name for this Pulsar app.

Active bool

Indicates whether or not this application is currently active and usable for traffic steering.

BrowserWaitMillis int

The amount of time (in milliseconds) the browser should wait before running measurements.

DefaultConfig ApplicationDefaultConfigArgs

Default job configuration. If a field is present here and not on a specific job associated with this application, the default value specified here is used..

JobsPerTransaction int

Number of jobs to measure per user impression.

Name string

Descriptive name for this Pulsar app.

active Boolean

Indicates whether or not this application is currently active and usable for traffic steering.

browserWaitMillis Integer

The amount of time (in milliseconds) the browser should wait before running measurements.

defaultConfig ApplicationDefaultConfigArgs

Default job configuration. If a field is present here and not on a specific job associated with this application, the default value specified here is used..

jobsPerTransaction Integer

Number of jobs to measure per user impression.

name String

Descriptive name for this Pulsar app.

active boolean

Indicates whether or not this application is currently active and usable for traffic steering.

browserWaitMillis number

The amount of time (in milliseconds) the browser should wait before running measurements.

defaultConfig ApplicationDefaultConfigArgs

Default job configuration. If a field is present here and not on a specific job associated with this application, the default value specified here is used..

jobsPerTransaction number

Number of jobs to measure per user impression.

name string

Descriptive name for this Pulsar app.

active bool

Indicates whether or not this application is currently active and usable for traffic steering.

browser_wait_millis int

The amount of time (in milliseconds) the browser should wait before running measurements.

default_config ApplicationDefaultConfigArgs

Default job configuration. If a field is present here and not on a specific job associated with this application, the default value specified here is used..

jobs_per_transaction int

Number of jobs to measure per user impression.

name str

Descriptive name for this Pulsar app.

active Boolean

Indicates whether or not this application is currently active and usable for traffic steering.

browserWaitMillis Number

The amount of time (in milliseconds) the browser should wait before running measurements.

defaultConfig Property Map

Default job configuration. If a field is present here and not on a specific job associated with this application, the default value specified here is used..

jobsPerTransaction Number

Number of jobs to measure per user impression.

name String

Descriptive name for this Pulsar app.

Supporting Types

ApplicationDefaultConfig

Http bool

Indicates whether or not to use HTTP in measurements.

Https bool

Indicates whether or not to use HTTPS in measurements.

JobTimeoutMillis int

Maximum timeout per job 0, the primary NSONE Global Network. Normally, you should not have to worry about this.

RequestTimeoutMillis int

Maximum timeout per request.

StaticValues bool

Indicates whether or not to skip aggregation for this job's measurements

UseXhr bool

Whether to use XMLHttpRequest (XHR) when taking measurements.

Http bool

Indicates whether or not to use HTTP in measurements.

Https bool

Indicates whether or not to use HTTPS in measurements.

JobTimeoutMillis int

Maximum timeout per job 0, the primary NSONE Global Network. Normally, you should not have to worry about this.

RequestTimeoutMillis int

Maximum timeout per request.

StaticValues bool

Indicates whether or not to skip aggregation for this job's measurements

UseXhr bool

Whether to use XMLHttpRequest (XHR) when taking measurements.

http Boolean

Indicates whether or not to use HTTP in measurements.

https Boolean

Indicates whether or not to use HTTPS in measurements.

jobTimeoutMillis Integer

Maximum timeout per job 0, the primary NSONE Global Network. Normally, you should not have to worry about this.

requestTimeoutMillis Integer

Maximum timeout per request.

staticValues Boolean

Indicates whether or not to skip aggregation for this job's measurements

useXhr Boolean

Whether to use XMLHttpRequest (XHR) when taking measurements.

http boolean

Indicates whether or not to use HTTP in measurements.

https boolean

Indicates whether or not to use HTTPS in measurements.

jobTimeoutMillis number

Maximum timeout per job 0, the primary NSONE Global Network. Normally, you should not have to worry about this.

requestTimeoutMillis number

Maximum timeout per request.

staticValues boolean

Indicates whether or not to skip aggregation for this job's measurements

useXhr boolean

Whether to use XMLHttpRequest (XHR) when taking measurements.

http bool

Indicates whether or not to use HTTP in measurements.

https bool

Indicates whether or not to use HTTPS in measurements.

job_timeout_millis int

Maximum timeout per job 0, the primary NSONE Global Network. Normally, you should not have to worry about this.

request_timeout_millis int

Maximum timeout per request.

static_values bool

Indicates whether or not to skip aggregation for this job's measurements

use_xhr bool

Whether to use XMLHttpRequest (XHR) when taking measurements.

http Boolean

Indicates whether or not to use HTTP in measurements.

https Boolean

Indicates whether or not to use HTTPS in measurements.

jobTimeoutMillis Number

Maximum timeout per job 0, the primary NSONE Global Network. Normally, you should not have to worry about this.

requestTimeoutMillis Number

Maximum timeout per request.

staticValues Boolean

Indicates whether or not to skip aggregation for this job's measurements

useXhr Boolean

Whether to use XMLHttpRequest (XHR) when taking measurements.

Import

 $ pulumi import ns1:index/application:Application `ns1_application`

So for the example above

 $ pulumi import ns1:index/application:Application example terraform.example.io`

Package Details

Repository
NS1 pulumi/pulumi-ns1
License
Apache-2.0
Notes

This Pulumi package is based on the ns1 Terraform Provider.