panos.DeviceGroupParent
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as panos from "@pulumi/panos";
const parent = new panos.DeviceGroup("parent", {location: {
panorama: {},
}});
const child = new panos.DeviceGroup("child", {location: {
panorama: {},
}});
const example = new panos.DeviceGroupParent("example", {
location: {
panorama: {},
},
deviceGroup: child.name,
parent: parent.name,
});
import pulumi
import pulumi_panos as panos
parent = panos.DeviceGroup("parent", location={
"panorama": {},
})
child = panos.DeviceGroup("child", location={
"panorama": {},
})
example = panos.DeviceGroupParent("example",
location={
"panorama": {},
},
device_group=child.name,
parent=parent.name)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/panos/v2/panos"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
parent, err := panos.NewDeviceGroup(ctx, "parent", &panos.DeviceGroupArgs{
Location: &panos.DeviceGroupLocationArgs{
Panorama: &panos.DeviceGroupLocationPanoramaArgs{},
},
})
if err != nil {
return err
}
child, err := panos.NewDeviceGroup(ctx, "child", &panos.DeviceGroupArgs{
Location: &panos.DeviceGroupLocationArgs{
Panorama: &panos.DeviceGroupLocationPanoramaArgs{},
},
})
if err != nil {
return err
}
_, err = panos.NewDeviceGroupParent(ctx, "example", &panos.DeviceGroupParentArgs{
Location: &panos.DeviceGroupParentLocationArgs{
Panorama: &panos.DeviceGroupParentLocationPanoramaArgs{},
},
DeviceGroup: child.Name,
Parent: parent.Name,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Panos = Pulumi.Panos;
return await Deployment.RunAsync(() =>
{
var parent = new Panos.DeviceGroup("parent", new()
{
Location = new Panos.Inputs.DeviceGroupLocationArgs
{
Panorama = null,
},
});
var child = new Panos.DeviceGroup("child", new()
{
Location = new Panos.Inputs.DeviceGroupLocationArgs
{
Panorama = null,
},
});
var example = new Panos.DeviceGroupParent("example", new()
{
Location = new Panos.Inputs.DeviceGroupParentLocationArgs
{
Panorama = null,
},
DeviceGroup = child.Name,
Parent = parent.Name,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.panos.DeviceGroup;
import com.pulumi.panos.DeviceGroupArgs;
import com.pulumi.panos.inputs.DeviceGroupLocationArgs;
import com.pulumi.panos.inputs.DeviceGroupLocationPanoramaArgs;
import com.pulumi.panos.DeviceGroupParent;
import com.pulumi.panos.DeviceGroupParentArgs;
import com.pulumi.panos.inputs.DeviceGroupParentLocationArgs;
import com.pulumi.panos.inputs.DeviceGroupParentLocationPanoramaArgs;
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 parent = new DeviceGroup("parent", DeviceGroupArgs.builder()
.location(DeviceGroupLocationArgs.builder()
.panorama()
.build())
.build());
var child = new DeviceGroup("child", DeviceGroupArgs.builder()
.location(DeviceGroupLocationArgs.builder()
.panorama()
.build())
.build());
var example = new DeviceGroupParent("example", DeviceGroupParentArgs.builder()
.location(DeviceGroupParentLocationArgs.builder()
.panorama()
.build())
.deviceGroup(child.name())
.parent(parent.name())
.build());
}
}
resources:
parent:
type: panos:DeviceGroup
properties:
location:
panorama: {}
child:
type: panos:DeviceGroup
properties:
location:
panorama: {}
example:
type: panos:DeviceGroupParent
properties:
location:
panorama: {}
deviceGroup: ${child.name}
parent: ${parent.name}
Create DeviceGroupParent Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DeviceGroupParent(name: string, args: DeviceGroupParentArgs, opts?: CustomResourceOptions);
@overload
def DeviceGroupParent(resource_name: str,
args: DeviceGroupParentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DeviceGroupParent(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[DeviceGroupParentLocationArgs] = None,
device_group: Optional[str] = None,
parent: Optional[str] = None)
func NewDeviceGroupParent(ctx *Context, name string, args DeviceGroupParentArgs, opts ...ResourceOption) (*DeviceGroupParent, error)
public DeviceGroupParent(string name, DeviceGroupParentArgs args, CustomResourceOptions? opts = null)
public DeviceGroupParent(String name, DeviceGroupParentArgs args)
public DeviceGroupParent(String name, DeviceGroupParentArgs args, CustomResourceOptions options)
type: panos:DeviceGroupParent
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 DeviceGroupParentArgs
- 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 DeviceGroupParentArgs
- 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 DeviceGroupParentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DeviceGroupParentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DeviceGroupParentArgs
- 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 deviceGroupParentResource = new Panos.DeviceGroupParent("deviceGroupParentResource", new()
{
Location = new Panos.Inputs.DeviceGroupParentLocationArgs
{
Panorama = new Panos.Inputs.DeviceGroupParentLocationPanoramaArgs
{
PanoramaDevice = "string",
},
},
DeviceGroup = "string",
Parent = "string",
});
example, err := panos.NewDeviceGroupParent(ctx, "deviceGroupParentResource", &panos.DeviceGroupParentArgs{
Location: &panos.DeviceGroupParentLocationArgs{
Panorama: &panos.DeviceGroupParentLocationPanoramaArgs{
PanoramaDevice: pulumi.String("string"),
},
},
DeviceGroup: pulumi.String("string"),
Parent: pulumi.String("string"),
})
var deviceGroupParentResource = new DeviceGroupParent("deviceGroupParentResource", DeviceGroupParentArgs.builder()
.location(DeviceGroupParentLocationArgs.builder()
.panorama(DeviceGroupParentLocationPanoramaArgs.builder()
.panoramaDevice("string")
.build())
.build())
.deviceGroup("string")
.parent("string")
.build());
device_group_parent_resource = panos.DeviceGroupParent("deviceGroupParentResource",
location={
"panorama": {
"panorama_device": "string",
},
},
device_group="string",
parent="string")
const deviceGroupParentResource = new panos.DeviceGroupParent("deviceGroupParentResource", {
location: {
panorama: {
panoramaDevice: "string",
},
},
deviceGroup: "string",
parent: "string",
});
type: panos:DeviceGroupParent
properties:
deviceGroup: string
location:
panorama:
panoramaDevice: string
parent: string
DeviceGroupParent 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 DeviceGroupParent resource accepts the following input properties:
- Location
Device
Group Parent Location - The location of this object.
- Device
Group string - The device group whose parent is being set
- Parent string
- The parent device group. Leaving it empty moves 'device-group' under 'shared'.
- Location
Device
Group Parent Location Args - The location of this object.
- Device
Group string - The device group whose parent is being set
- Parent string
- The parent device group. Leaving it empty moves 'device-group' under 'shared'.
- location
Device
Group Parent Location - The location of this object.
- device
Group String - The device group whose parent is being set
- parent String
- The parent device group. Leaving it empty moves 'device-group' under 'shared'.
- location
Device
Group Parent Location - The location of this object.
- device
Group string - The device group whose parent is being set
- parent string
- The parent device group. Leaving it empty moves 'device-group' under 'shared'.
- location
Device
Group Parent Location Args - The location of this object.
- device_
group str - The device group whose parent is being set
- parent str
- The parent device group. Leaving it empty moves 'device-group' under 'shared'.
- location Property Map
- The location of this object.
- device
Group String - The device group whose parent is being set
- parent String
- The parent device group. Leaving it empty moves 'device-group' under 'shared'.
Outputs
All input properties are implicitly available as output properties. Additionally, the DeviceGroupParent 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 DeviceGroupParent Resource
Get an existing DeviceGroupParent 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?: DeviceGroupParentState, opts?: CustomResourceOptions): DeviceGroupParent
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
device_group: Optional[str] = None,
location: Optional[DeviceGroupParentLocationArgs] = None,
parent: Optional[str] = None) -> DeviceGroupParent
func GetDeviceGroupParent(ctx *Context, name string, id IDInput, state *DeviceGroupParentState, opts ...ResourceOption) (*DeviceGroupParent, error)
public static DeviceGroupParent Get(string name, Input<string> id, DeviceGroupParentState? state, CustomResourceOptions? opts = null)
public static DeviceGroupParent get(String name, Output<String> id, DeviceGroupParentState state, CustomResourceOptions options)
resources: _: type: panos:DeviceGroupParent 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.
- Device
Group string - The device group whose parent is being set
- Location
Device
Group Parent Location - The location of this object.
- Parent string
- The parent device group. Leaving it empty moves 'device-group' under 'shared'.
- Device
Group string - The device group whose parent is being set
- Location
Device
Group Parent Location Args - The location of this object.
- Parent string
- The parent device group. Leaving it empty moves 'device-group' under 'shared'.
- device
Group String - The device group whose parent is being set
- location
Device
Group Parent Location - The location of this object.
- parent String
- The parent device group. Leaving it empty moves 'device-group' under 'shared'.
- device
Group string - The device group whose parent is being set
- location
Device
Group Parent Location - The location of this object.
- parent string
- The parent device group. Leaving it empty moves 'device-group' under 'shared'.
- device_
group str - The device group whose parent is being set
- location
Device
Group Parent Location Args - The location of this object.
- parent str
- The parent device group. Leaving it empty moves 'device-group' under 'shared'.
- device
Group String - The device group whose parent is being set
- location Property Map
- The location of this object.
- parent String
- The parent device group. Leaving it empty moves 'device-group' under 'shared'.
Supporting Types
DeviceGroupParentLocation, DeviceGroupParentLocationArgs
- Panorama
Device
Group Parent Location Panorama - Located in a specific Panorama.
- Panorama
Device
Group Parent Location Panorama - Located in a specific Panorama.
- panorama
Device
Group Parent Location Panorama - Located in a specific Panorama.
- panorama
Device
Group Parent Location Panorama - Located in a specific Panorama.
- panorama
Device
Group Parent Location Panorama - Located in a specific Panorama.
- panorama Property Map
- Located in a specific Panorama.
DeviceGroupParentLocationPanorama, DeviceGroupParentLocationPanoramaArgs
- Panorama
Device string - The Panorama device.
- Panorama
Device string - The Panorama device.
- panorama
Device String - The Panorama device.
- panorama
Device string - The Panorama device.
- panorama_
device str - The Panorama device.
- panorama
Device String - The Panorama device.
Package Details
- Repository
- panos paloaltonetworks/terraform-provider-panos
- License
- Notes
- This Pulumi package is based on the
panos
Terraform Provider.