Variable resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
//
// Creates a variable in as-number format
//
const scmVariableAsn = new scm.Variable("scm_variable_asn", {
folder: "All",
name: "$scm_variable_asn",
description: "Managed by Pulumi",
type: "as-number",
value: "65535",
});
//
// Creates a variable in count format
//
const scmVariableCount = new scm.Variable("scm_variable_count", {
folder: "All",
name: "$scm_variable_count",
description: "Managed by Pulumi",
type: "count",
value: "15",
});
//
// Creates a variable in fqdn format
//
const scmVariableFqdn = new scm.Variable("scm_variable_fqdn", {
folder: "All",
name: "$scm_variable_fqdn",
description: "Managed by Pulumi",
type: "fqdn",
value: "scm.example.com",
});
//
// Creates a variable in group-id format
//
const scmVariableGroupId = new scm.Variable("scm_variable_group_id", {
folder: "All",
name: "$scm_variable_group_id",
description: "Managed by Pulumi",
type: "group-id",
value: "10",
});
//
// Creates a variable in ip-range format
//
const scmVariableIprange = new scm.Variable("scm_variable_iprange", {
folder: "All",
name: "$scm_variable_iprange",
description: "Managed by Pulumi",
type: "ip-range",
value: "198.18.1.1-198.18.1.100",
});
//
// Creates a variable in ip-netmask format
//
const scmVariableIpaddr = new scm.Variable("scm_variable_ipaddr", {
folder: "All",
name: "$scm_variable_ipaddr",
description: "Managed by Pulumi",
type: "ip-netmask",
value: "198.18.2.0/24",
});
//
// Creates a variable in ip-wildcard format
//
const scmVariableIpwildcard = new scm.Variable("scm_variable_ipwildcard", {
folder: "All",
name: "$scm_variable_ipwildcard",
description: "Managed by Pulumi",
type: "ip-wildcard",
value: "198.18.1.0/0.255.255.255",
});
//
// Creates a variable in percent format
//
const scmVariablePercent = new scm.Variable("scm_variable_percent", {
folder: "All",
name: "$scm_variable_percent",
description: "Managed by Pulumi",
type: "percent",
value: "10",
});
//
// Creates a variable in router-id format
//
const scmVariableRouterId = new scm.Variable("scm_variable_router_id", {
folder: "All",
name: "$scm_variable_router_id",
description: "Managed by Pulumi",
type: "router-id",
value: "198.18.1.1",
});
//
// Creates a variable in timer format
//
const scmVariableTimer = new scm.Variable("scm_variable_timer", {
folder: "All",
name: "$scm_variable_timer",
description: "Managed by Pulumi",
type: "timer",
value: "1440",
});
//
// Creates a variable in zone format
//
const scmVariableZone = new scm.Variable("scm_variable_zone", {
folder: "All",
name: "$scm_variable_zone",
description: "Managed by Pulumi",
type: "zone",
value: "internet",
});
import pulumi
import pulumi_scm as scm
#
# Creates a variable in as-number format
#
scm_variable_asn = scm.Variable("scm_variable_asn",
folder="All",
name="$scm_variable_asn",
description="Managed by Pulumi",
type="as-number",
value="65535")
#
# Creates a variable in count format
#
scm_variable_count = scm.Variable("scm_variable_count",
folder="All",
name="$scm_variable_count",
description="Managed by Pulumi",
type="count",
value="15")
#
# Creates a variable in fqdn format
#
scm_variable_fqdn = scm.Variable("scm_variable_fqdn",
folder="All",
name="$scm_variable_fqdn",
description="Managed by Pulumi",
type="fqdn",
value="scm.example.com")
#
# Creates a variable in group-id format
#
scm_variable_group_id = scm.Variable("scm_variable_group_id",
folder="All",
name="$scm_variable_group_id",
description="Managed by Pulumi",
type="group-id",
value="10")
#
# Creates a variable in ip-range format
#
scm_variable_iprange = scm.Variable("scm_variable_iprange",
folder="All",
name="$scm_variable_iprange",
description="Managed by Pulumi",
type="ip-range",
value="198.18.1.1-198.18.1.100")
#
# Creates a variable in ip-netmask format
#
scm_variable_ipaddr = scm.Variable("scm_variable_ipaddr",
folder="All",
name="$scm_variable_ipaddr",
description="Managed by Pulumi",
type="ip-netmask",
value="198.18.2.0/24")
#
# Creates a variable in ip-wildcard format
#
scm_variable_ipwildcard = scm.Variable("scm_variable_ipwildcard",
folder="All",
name="$scm_variable_ipwildcard",
description="Managed by Pulumi",
type="ip-wildcard",
value="198.18.1.0/0.255.255.255")
#
# Creates a variable in percent format
#
scm_variable_percent = scm.Variable("scm_variable_percent",
folder="All",
name="$scm_variable_percent",
description="Managed by Pulumi",
type="percent",
value="10")
#
# Creates a variable in router-id format
#
scm_variable_router_id = scm.Variable("scm_variable_router_id",
folder="All",
name="$scm_variable_router_id",
description="Managed by Pulumi",
type="router-id",
value="198.18.1.1")
#
# Creates a variable in timer format
#
scm_variable_timer = scm.Variable("scm_variable_timer",
folder="All",
name="$scm_variable_timer",
description="Managed by Pulumi",
type="timer",
value="1440")
#
# Creates a variable in zone format
#
scm_variable_zone = scm.Variable("scm_variable_zone",
folder="All",
name="$scm_variable_zone",
description="Managed by Pulumi",
type="zone",
value="internet")
package main
import (
"github.com/pulumi/pulumi-scm/sdk/go/scm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Creates a variable in as-number format
_, err := scm.NewVariable(ctx, "scm_variable_asn", &scm.VariableArgs{
Folder: pulumi.String("All"),
Name: pulumi.String("$scm_variable_asn"),
Description: pulumi.String("Managed by Pulumi"),
Type: pulumi.String("as-number"),
Value: pulumi.String("65535"),
})
if err != nil {
return err
}
// Creates a variable in count format
_, err = scm.NewVariable(ctx, "scm_variable_count", &scm.VariableArgs{
Folder: pulumi.String("All"),
Name: pulumi.String("$scm_variable_count"),
Description: pulumi.String("Managed by Pulumi"),
Type: pulumi.String("count"),
Value: pulumi.String("15"),
})
if err != nil {
return err
}
// Creates a variable in fqdn format
_, err = scm.NewVariable(ctx, "scm_variable_fqdn", &scm.VariableArgs{
Folder: pulumi.String("All"),
Name: pulumi.String("$scm_variable_fqdn"),
Description: pulumi.String("Managed by Pulumi"),
Type: pulumi.String("fqdn"),
Value: pulumi.String("scm.example.com"),
})
if err != nil {
return err
}
// Creates a variable in group-id format
_, err = scm.NewVariable(ctx, "scm_variable_group_id", &scm.VariableArgs{
Folder: pulumi.String("All"),
Name: pulumi.String("$scm_variable_group_id"),
Description: pulumi.String("Managed by Pulumi"),
Type: pulumi.String("group-id"),
Value: pulumi.String("10"),
})
if err != nil {
return err
}
// Creates a variable in ip-range format
_, err = scm.NewVariable(ctx, "scm_variable_iprange", &scm.VariableArgs{
Folder: pulumi.String("All"),
Name: pulumi.String("$scm_variable_iprange"),
Description: pulumi.String("Managed by Pulumi"),
Type: pulumi.String("ip-range"),
Value: pulumi.String("198.18.1.1-198.18.1.100"),
})
if err != nil {
return err
}
// Creates a variable in ip-netmask format
_, err = scm.NewVariable(ctx, "scm_variable_ipaddr", &scm.VariableArgs{
Folder: pulumi.String("All"),
Name: pulumi.String("$scm_variable_ipaddr"),
Description: pulumi.String("Managed by Pulumi"),
Type: pulumi.String("ip-netmask"),
Value: pulumi.String("198.18.2.0/24"),
})
if err != nil {
return err
}
// Creates a variable in ip-wildcard format
_, err = scm.NewVariable(ctx, "scm_variable_ipwildcard", &scm.VariableArgs{
Folder: pulumi.String("All"),
Name: pulumi.String("$scm_variable_ipwildcard"),
Description: pulumi.String("Managed by Pulumi"),
Type: pulumi.String("ip-wildcard"),
Value: pulumi.String("198.18.1.0/0.255.255.255"),
})
if err != nil {
return err
}
// Creates a variable in percent format
_, err = scm.NewVariable(ctx, "scm_variable_percent", &scm.VariableArgs{
Folder: pulumi.String("All"),
Name: pulumi.String("$scm_variable_percent"),
Description: pulumi.String("Managed by Pulumi"),
Type: pulumi.String("percent"),
Value: pulumi.String("10"),
})
if err != nil {
return err
}
// Creates a variable in router-id format
_, err = scm.NewVariable(ctx, "scm_variable_router_id", &scm.VariableArgs{
Folder: pulumi.String("All"),
Name: pulumi.String("$scm_variable_router_id"),
Description: pulumi.String("Managed by Pulumi"),
Type: pulumi.String("router-id"),
Value: pulumi.String("198.18.1.1"),
})
if err != nil {
return err
}
// Creates a variable in timer format
_, err = scm.NewVariable(ctx, "scm_variable_timer", &scm.VariableArgs{
Folder: pulumi.String("All"),
Name: pulumi.String("$scm_variable_timer"),
Description: pulumi.String("Managed by Pulumi"),
Type: pulumi.String("timer"),
Value: pulumi.String("1440"),
})
if err != nil {
return err
}
// Creates a variable in zone format
_, err = scm.NewVariable(ctx, "scm_variable_zone", &scm.VariableArgs{
Folder: pulumi.String("All"),
Name: pulumi.String("$scm_variable_zone"),
Description: pulumi.String("Managed by Pulumi"),
Type: pulumi.String("zone"),
Value: pulumi.String("internet"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;
return await Deployment.RunAsync(() =>
{
//
// Creates a variable in as-number format
//
var scmVariableAsn = new Scm.Variable("scm_variable_asn", new()
{
Folder = "All",
Name = "$scm_variable_asn",
Description = "Managed by Pulumi",
Type = "as-number",
Value = "65535",
});
//
// Creates a variable in count format
//
var scmVariableCount = new Scm.Variable("scm_variable_count", new()
{
Folder = "All",
Name = "$scm_variable_count",
Description = "Managed by Pulumi",
Type = "count",
Value = "15",
});
//
// Creates a variable in fqdn format
//
var scmVariableFqdn = new Scm.Variable("scm_variable_fqdn", new()
{
Folder = "All",
Name = "$scm_variable_fqdn",
Description = "Managed by Pulumi",
Type = "fqdn",
Value = "scm.example.com",
});
//
// Creates a variable in group-id format
//
var scmVariableGroupId = new Scm.Variable("scm_variable_group_id", new()
{
Folder = "All",
Name = "$scm_variable_group_id",
Description = "Managed by Pulumi",
Type = "group-id",
Value = "10",
});
//
// Creates a variable in ip-range format
//
var scmVariableIprange = new Scm.Variable("scm_variable_iprange", new()
{
Folder = "All",
Name = "$scm_variable_iprange",
Description = "Managed by Pulumi",
Type = "ip-range",
Value = "198.18.1.1-198.18.1.100",
});
//
// Creates a variable in ip-netmask format
//
var scmVariableIpaddr = new Scm.Variable("scm_variable_ipaddr", new()
{
Folder = "All",
Name = "$scm_variable_ipaddr",
Description = "Managed by Pulumi",
Type = "ip-netmask",
Value = "198.18.2.0/24",
});
//
// Creates a variable in ip-wildcard format
//
var scmVariableIpwildcard = new Scm.Variable("scm_variable_ipwildcard", new()
{
Folder = "All",
Name = "$scm_variable_ipwildcard",
Description = "Managed by Pulumi",
Type = "ip-wildcard",
Value = "198.18.1.0/0.255.255.255",
});
//
// Creates a variable in percent format
//
var scmVariablePercent = new Scm.Variable("scm_variable_percent", new()
{
Folder = "All",
Name = "$scm_variable_percent",
Description = "Managed by Pulumi",
Type = "percent",
Value = "10",
});
//
// Creates a variable in router-id format
//
var scmVariableRouterId = new Scm.Variable("scm_variable_router_id", new()
{
Folder = "All",
Name = "$scm_variable_router_id",
Description = "Managed by Pulumi",
Type = "router-id",
Value = "198.18.1.1",
});
//
// Creates a variable in timer format
//
var scmVariableTimer = new Scm.Variable("scm_variable_timer", new()
{
Folder = "All",
Name = "$scm_variable_timer",
Description = "Managed by Pulumi",
Type = "timer",
Value = "1440",
});
//
// Creates a variable in zone format
//
var scmVariableZone = new Scm.Variable("scm_variable_zone", new()
{
Folder = "All",
Name = "$scm_variable_zone",
Description = "Managed by Pulumi",
Type = "zone",
Value = "internet",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scm.Variable;
import com.pulumi.scm.VariableArgs;
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) {
//
// Creates a variable in as-number format
//
var scmVariableAsn = new Variable("scmVariableAsn", VariableArgs.builder()
.folder("All")
.name("$scm_variable_asn")
.description("Managed by Pulumi")
.type("as-number")
.value("65535")
.build());
//
// Creates a variable in count format
//
var scmVariableCount = new Variable("scmVariableCount", VariableArgs.builder()
.folder("All")
.name("$scm_variable_count")
.description("Managed by Pulumi")
.type("count")
.value("15")
.build());
//
// Creates a variable in fqdn format
//
var scmVariableFqdn = new Variable("scmVariableFqdn", VariableArgs.builder()
.folder("All")
.name("$scm_variable_fqdn")
.description("Managed by Pulumi")
.type("fqdn")
.value("scm.example.com")
.build());
//
// Creates a variable in group-id format
//
var scmVariableGroupId = new Variable("scmVariableGroupId", VariableArgs.builder()
.folder("All")
.name("$scm_variable_group_id")
.description("Managed by Pulumi")
.type("group-id")
.value("10")
.build());
//
// Creates a variable in ip-range format
//
var scmVariableIprange = new Variable("scmVariableIprange", VariableArgs.builder()
.folder("All")
.name("$scm_variable_iprange")
.description("Managed by Pulumi")
.type("ip-range")
.value("198.18.1.1-198.18.1.100")
.build());
//
// Creates a variable in ip-netmask format
//
var scmVariableIpaddr = new Variable("scmVariableIpaddr", VariableArgs.builder()
.folder("All")
.name("$scm_variable_ipaddr")
.description("Managed by Pulumi")
.type("ip-netmask")
.value("198.18.2.0/24")
.build());
//
// Creates a variable in ip-wildcard format
//
var scmVariableIpwildcard = new Variable("scmVariableIpwildcard", VariableArgs.builder()
.folder("All")
.name("$scm_variable_ipwildcard")
.description("Managed by Pulumi")
.type("ip-wildcard")
.value("198.18.1.0/0.255.255.255")
.build());
//
// Creates a variable in percent format
//
var scmVariablePercent = new Variable("scmVariablePercent", VariableArgs.builder()
.folder("All")
.name("$scm_variable_percent")
.description("Managed by Pulumi")
.type("percent")
.value("10")
.build());
//
// Creates a variable in router-id format
//
var scmVariableRouterId = new Variable("scmVariableRouterId", VariableArgs.builder()
.folder("All")
.name("$scm_variable_router_id")
.description("Managed by Pulumi")
.type("router-id")
.value("198.18.1.1")
.build());
//
// Creates a variable in timer format
//
var scmVariableTimer = new Variable("scmVariableTimer", VariableArgs.builder()
.folder("All")
.name("$scm_variable_timer")
.description("Managed by Pulumi")
.type("timer")
.value("1440")
.build());
//
// Creates a variable in zone format
//
var scmVariableZone = new Variable("scmVariableZone", VariableArgs.builder()
.folder("All")
.name("$scm_variable_zone")
.description("Managed by Pulumi")
.type("zone")
.value("internet")
.build());
}
}
resources:
#
# Creates a variable in as-number format
#
scmVariableAsn:
type: scm:Variable
name: scm_variable_asn
properties:
folder: All
name: $scm_variable_asn
description: Managed by Pulumi
type: as-number
value: '65535'
#
# Creates a variable in count format
#
scmVariableCount:
type: scm:Variable
name: scm_variable_count
properties:
folder: All
name: $scm_variable_count
description: Managed by Pulumi
type: count
value: '15'
#
# Creates a variable in fqdn format
#
scmVariableFqdn:
type: scm:Variable
name: scm_variable_fqdn
properties:
folder: All
name: $scm_variable_fqdn
description: Managed by Pulumi
type: fqdn
value: scm.example.com
#
# Creates a variable in group-id format
#
scmVariableGroupId:
type: scm:Variable
name: scm_variable_group_id
properties:
folder: All
name: $scm_variable_group_id
description: Managed by Pulumi
type: group-id
value: '10'
#
# Creates a variable in ip-range format
#
scmVariableIprange:
type: scm:Variable
name: scm_variable_iprange
properties:
folder: All
name: $scm_variable_iprange
description: Managed by Pulumi
type: ip-range
value: 198.18.1.1-198.18.1.100
#
# Creates a variable in ip-netmask format
#
scmVariableIpaddr:
type: scm:Variable
name: scm_variable_ipaddr
properties:
folder: All
name: $scm_variable_ipaddr
description: Managed by Pulumi
type: ip-netmask
value: 198.18.2.0/24
#
# Creates a variable in ip-wildcard format
#
scmVariableIpwildcard:
type: scm:Variable
name: scm_variable_ipwildcard
properties:
folder: All
name: $scm_variable_ipwildcard
description: Managed by Pulumi
type: ip-wildcard
value: 198.18.1.0/0.255.255.255
#
# Creates a variable in percent format
#
scmVariablePercent:
type: scm:Variable
name: scm_variable_percent
properties:
folder: All
name: $scm_variable_percent
description: Managed by Pulumi
type: percent
value: '10'
#
# Creates a variable in router-id format
#
scmVariableRouterId:
type: scm:Variable
name: scm_variable_router_id
properties:
folder: All
name: $scm_variable_router_id
description: Managed by Pulumi
type: router-id
value: 198.18.1.1
#
# Creates a variable in timer format
#
scmVariableTimer:
type: scm:Variable
name: scm_variable_timer
properties:
folder: All
name: $scm_variable_timer
description: Managed by Pulumi
type: timer
value: '1440'
#
# Creates a variable in zone format
#
scmVariableZone:
type: scm:Variable
name: scm_variable_zone
properties:
folder: All
name: $scm_variable_zone
description: Managed by Pulumi
type: zone
value: internet
Create Variable Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Variable(name: string, args: VariableArgs, opts?: CustomResourceOptions);@overload
def Variable(resource_name: str,
args: VariableArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Variable(resource_name: str,
opts: Optional[ResourceOptions] = None,
type: Optional[str] = None,
value: Optional[str] = None,
description: Optional[str] = None,
device: Optional[str] = None,
folder: Optional[str] = None,
name: Optional[str] = None,
overridden: Optional[bool] = None,
snippet: Optional[str] = None)func NewVariable(ctx *Context, name string, args VariableArgs, opts ...ResourceOption) (*Variable, error)public Variable(string name, VariableArgs args, CustomResourceOptions? opts = null)
public Variable(String name, VariableArgs args)
public Variable(String name, VariableArgs args, CustomResourceOptions options)
type: scm:Variable
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 VariableArgs
- 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 VariableArgs
- 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 VariableArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VariableArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VariableArgs
- 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 variableResource = new Scm.Variable("variableResource", new()
{
Type = "string",
Value = "string",
Description = "string",
Device = "string",
Folder = "string",
Name = "string",
Overridden = false,
Snippet = "string",
});
example, err := scm.NewVariable(ctx, "variableResource", &scm.VariableArgs{
Type: pulumi.String("string"),
Value: pulumi.String("string"),
Description: pulumi.String("string"),
Device: pulumi.String("string"),
Folder: pulumi.String("string"),
Name: pulumi.String("string"),
Overridden: pulumi.Bool(false),
Snippet: pulumi.String("string"),
})
var variableResource = new Variable("variableResource", VariableArgs.builder()
.type("string")
.value("string")
.description("string")
.device("string")
.folder("string")
.name("string")
.overridden(false)
.snippet("string")
.build());
variable_resource = scm.Variable("variableResource",
type="string",
value="string",
description="string",
device="string",
folder="string",
name="string",
overridden=False,
snippet="string")
const variableResource = new scm.Variable("variableResource", {
type: "string",
value: "string",
description: "string",
device: "string",
folder: "string",
name: "string",
overridden: false,
snippet: "string",
});
type: scm:Variable
properties:
description: string
device: string
folder: string
name: string
overridden: false
snippet: string
type: string
value: string
Variable 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 Variable resource accepts the following input properties:
- Type string
- The variable type
- Value string
- The value of the variable
- Description string
- The description of the variable
- Device string
- The device in which the resource is defined
- Folder string
- The folder in which the resource is defined
- Name string
- The name of the variable
- Overridden bool
- Is the variable overridden?
- Snippet string
- The snippet in which the resource is defined
- Type string
- The variable type
- Value string
- The value of the variable
- Description string
- The description of the variable
- Device string
- The device in which the resource is defined
- Folder string
- The folder in which the resource is defined
- Name string
- The name of the variable
- Overridden bool
- Is the variable overridden?
- Snippet string
- The snippet in which the resource is defined
- type String
- The variable type
- value String
- The value of the variable
- description String
- The description of the variable
- device String
- The device in which the resource is defined
- folder String
- The folder in which the resource is defined
- name String
- The name of the variable
- overridden Boolean
- Is the variable overridden?
- snippet String
- The snippet in which the resource is defined
- type string
- The variable type
- value string
- The value of the variable
- description string
- The description of the variable
- device string
- The device in which the resource is defined
- folder string
- The folder in which the resource is defined
- name string
- The name of the variable
- overridden boolean
- Is the variable overridden?
- snippet string
- The snippet in which the resource is defined
- type str
- The variable type
- value str
- The value of the variable
- description str
- The description of the variable
- device str
- The device in which the resource is defined
- folder str
- The folder in which the resource is defined
- name str
- The name of the variable
- overridden bool
- Is the variable overridden?
- snippet str
- The snippet in which the resource is defined
- type String
- The variable type
- value String
- The value of the variable
- description String
- The description of the variable
- device String
- The device in which the resource is defined
- folder String
- The folder in which the resource is defined
- name String
- The name of the variable
- overridden Boolean
- Is the variable overridden?
- snippet String
- The snippet in which the resource is defined
Outputs
All input properties are implicitly available as output properties. Additionally, the Variable resource produces the following output properties:
Look up Existing Variable Resource
Get an existing Variable 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?: VariableState, opts?: CustomResourceOptions): Variable@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
device: Optional[str] = None,
folder: Optional[str] = None,
name: Optional[str] = None,
overridden: Optional[bool] = None,
snippet: Optional[str] = None,
tfid: Optional[str] = None,
type: Optional[str] = None,
value: Optional[str] = None) -> Variablefunc GetVariable(ctx *Context, name string, id IDInput, state *VariableState, opts ...ResourceOption) (*Variable, error)public static Variable Get(string name, Input<string> id, VariableState? state, CustomResourceOptions? opts = null)public static Variable get(String name, Output<String> id, VariableState state, CustomResourceOptions options)resources: _: type: scm:Variable 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.
- Description string
- The description of the variable
- Device string
- The device in which the resource is defined
- Folder string
- The folder in which the resource is defined
- Name string
- The name of the variable
- Overridden bool
- Is the variable overridden?
- Snippet string
- The snippet in which the resource is defined
- Tfid string
- Type string
- The variable type
- Value string
- The value of the variable
- Description string
- The description of the variable
- Device string
- The device in which the resource is defined
- Folder string
- The folder in which the resource is defined
- Name string
- The name of the variable
- Overridden bool
- Is the variable overridden?
- Snippet string
- The snippet in which the resource is defined
- Tfid string
- Type string
- The variable type
- Value string
- The value of the variable
- description String
- The description of the variable
- device String
- The device in which the resource is defined
- folder String
- The folder in which the resource is defined
- name String
- The name of the variable
- overridden Boolean
- Is the variable overridden?
- snippet String
- The snippet in which the resource is defined
- tfid String
- type String
- The variable type
- value String
- The value of the variable
- description string
- The description of the variable
- device string
- The device in which the resource is defined
- folder string
- The folder in which the resource is defined
- name string
- The name of the variable
- overridden boolean
- Is the variable overridden?
- snippet string
- The snippet in which the resource is defined
- tfid string
- type string
- The variable type
- value string
- The value of the variable
- description str
- The description of the variable
- device str
- The device in which the resource is defined
- folder str
- The folder in which the resource is defined
- name str
- The name of the variable
- overridden bool
- Is the variable overridden?
- snippet str
- The snippet in which the resource is defined
- tfid str
- type str
- The variable type
- value str
- The value of the variable
- description String
- The description of the variable
- device String
- The device in which the resource is defined
- folder String
- The folder in which the resource is defined
- name String
- The name of the variable
- overridden Boolean
- Is the variable overridden?
- snippet String
- The snippet in which the resource is defined
- tfid String
- type String
- The variable type
- value String
- The value of the variable
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scmTerraform Provider.
