Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

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 Pulumi;
using Ns1 = Pulumi.Ns1;

class MyStack : Stack
{
    public MyStack()
    {
        // Create a new pulsar application with default config
        var ns1App = new Ns1.Application("ns1App", new Ns1.ApplicationArgs
        {
            DefaultConfig = new Ns1.Inputs.ApplicationDefaultConfigArgs
            {
                Http = true,
                Https = false,
                Job_timeout_millis = 100,
                Request_timeout_millis = 100,
                Static_values = true,
            },
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-ns1/sdk/v2/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: &ApplicationDefaultConfigArgs{
				Http:                   pulumi.Bool(true),
				Https:                  pulumi.Bool(false),
				Job_timeout_millis:     100,
				Request_timeout_millis: 100,
				Static_values:          true,
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
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("ns1_app", {
    defaultConfig: {
        http: true,
        https: false,
        job_timeout_millis: 100,
        request_timeout_millis: 100,
        static_values: true,
    },
});

Create a 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)
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.

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
-(Optional) 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
-(Optional) 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
-(Optional) 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
-(Optional) 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
-(Optional) 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
-(Optional) 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
-(Optional) 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
-(Optional) Number of jobs to measure per user impression.
name str
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 str
The provider-assigned unique ID for this managed resource.

Look up an 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)
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.

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
-(Optional) 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
-(Optional) 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
-(Optional) 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
-(Optional) 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
-(Optional) 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
-(Optional) 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
-(Optional) 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
-(Optional) Number of jobs to measure per user impression.
name str
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 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.

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
https://github.com/pulumi/pulumi-ns1
License
Apache-2.0
Notes
This Pulumi package is based on the ns1 Terraform Provider.