1. Packages
  2. Juniper Mist
  3. API Docs
  4. org
  5. DeviceprofileAssign
Juniper Mist v0.0.27 published on Friday, Sep 27, 2024 by Pulumi

junipermist.org.DeviceprofileAssign

Explore with Pulumi AI

junipermist logo
Juniper Mist v0.0.27 published on Friday, Sep 27, 2024 by Pulumi

    This resourceis used to assign/unassign a device profile to one or multiple devices The junipermist.org.DeviceprofileGateway resource can be assigned to GatewaysThe junipermist.org.DeviceprofileAp resource can be assigned the Wireless Access Points

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as junipermist from "@pulumi/juniper-mist";
    
    const deviceprofileAssign = new junipermist.org.DeviceprofileAssign("deviceprofile_assign", {
        orgId: terraformTest.id,
        deviceprofileId: hubOne.id,
        macs: [
            "4c9614000000",
            "4c9614000001",
        ],
    });
    
    import pulumi
    import pulumi_juniper_mist as junipermist
    
    deviceprofile_assign = junipermist.org.DeviceprofileAssign("deviceprofile_assign",
        org_id=terraform_test["id"],
        deviceprofile_id=hub_one["id"],
        macs=[
            "4c9614000000",
            "4c9614000001",
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-junipermist/sdk/go/junipermist/org"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := org.NewDeviceprofileAssign(ctx, "deviceprofile_assign", &org.DeviceprofileAssignArgs{
    			OrgId:           pulumi.Any(terraformTest.Id),
    			DeviceprofileId: pulumi.Any(hubOne.Id),
    			Macs: pulumi.StringArray{
    				pulumi.String("4c9614000000"),
    				pulumi.String("4c9614000001"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using JuniperMist = Pulumi.JuniperMist;
    
    return await Deployment.RunAsync(() => 
    {
        var deviceprofileAssign = new JuniperMist.Org.DeviceprofileAssign("deviceprofile_assign", new()
        {
            OrgId = terraformTest.Id,
            DeviceprofileId = hubOne.Id,
            Macs = new[]
            {
                "4c9614000000",
                "4c9614000001",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.junipermist.org.DeviceprofileAssign;
    import com.pulumi.junipermist.org.DeviceprofileAssignArgs;
    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 deviceprofileAssign = new DeviceprofileAssign("deviceprofileAssign", DeviceprofileAssignArgs.builder()
                .orgId(terraformTest.id())
                .deviceprofileId(hubOne.id())
                .macs(            
                    "4c9614000000",
                    "4c9614000001")
                .build());
    
        }
    }
    
    resources:
      deviceprofileAssign:
        type: junipermist:org:DeviceprofileAssign
        name: deviceprofile_assign
        properties:
          orgId: ${terraformTest.id}
          deviceprofileId: ${hubOne.id}
          macs:
            - 4c9614000000
            - 4c9614000001
    

    Create DeviceprofileAssign Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DeviceprofileAssign(name: string, args: DeviceprofileAssignArgs, opts?: CustomResourceOptions);
    @overload
    def DeviceprofileAssign(resource_name: str,
                            args: DeviceprofileAssignArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def DeviceprofileAssign(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            deviceprofile_id: Optional[str] = None,
                            macs: Optional[Sequence[str]] = None,
                            org_id: Optional[str] = None)
    func NewDeviceprofileAssign(ctx *Context, name string, args DeviceprofileAssignArgs, opts ...ResourceOption) (*DeviceprofileAssign, error)
    public DeviceprofileAssign(string name, DeviceprofileAssignArgs args, CustomResourceOptions? opts = null)
    public DeviceprofileAssign(String name, DeviceprofileAssignArgs args)
    public DeviceprofileAssign(String name, DeviceprofileAssignArgs args, CustomResourceOptions options)
    
    type: junipermist:org:DeviceprofileAssign
    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 DeviceprofileAssignArgs
    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 DeviceprofileAssignArgs
    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 DeviceprofileAssignArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DeviceprofileAssignArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DeviceprofileAssignArgs
    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 deviceprofileAssignResource = new JuniperMist.Org.DeviceprofileAssign("deviceprofileAssignResource", new()
    {
        DeviceprofileId = "string",
        Macs = new[]
        {
            "string",
        },
        OrgId = "string",
    });
    
    example, err := org.NewDeviceprofileAssign(ctx, "deviceprofileAssignResource", &org.DeviceprofileAssignArgs{
    	DeviceprofileId: pulumi.String("string"),
    	Macs: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	OrgId: pulumi.String("string"),
    })
    
    var deviceprofileAssignResource = new DeviceprofileAssign("deviceprofileAssignResource", DeviceprofileAssignArgs.builder()
        .deviceprofileId("string")
        .macs("string")
        .orgId("string")
        .build());
    
    deviceprofile_assign_resource = junipermist.org.DeviceprofileAssign("deviceprofileAssignResource",
        deviceprofile_id="string",
        macs=["string"],
        org_id="string")
    
    const deviceprofileAssignResource = new junipermist.org.DeviceprofileAssign("deviceprofileAssignResource", {
        deviceprofileId: "string",
        macs: ["string"],
        orgId: "string",
    });
    
    type: junipermist:org:DeviceprofileAssign
    properties:
        deviceprofileId: string
        macs:
            - string
        orgId: string
    

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

    DeviceprofileId string
    Macs List<string>
    OrgId string
    DeviceprofileId string
    Macs []string
    OrgId string
    deviceprofileId String
    macs List<String>
    orgId String
    deviceprofileId string
    macs string[]
    orgId string
    deviceprofile_id str
    macs Sequence[str]
    org_id str
    deviceprofileId String
    macs List<String>
    orgId String

    Outputs

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

    Get an existing DeviceprofileAssign 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?: DeviceprofileAssignState, opts?: CustomResourceOptions): DeviceprofileAssign
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            deviceprofile_id: Optional[str] = None,
            macs: Optional[Sequence[str]] = None,
            org_id: Optional[str] = None) -> DeviceprofileAssign
    func GetDeviceprofileAssign(ctx *Context, name string, id IDInput, state *DeviceprofileAssignState, opts ...ResourceOption) (*DeviceprofileAssign, error)
    public static DeviceprofileAssign Get(string name, Input<string> id, DeviceprofileAssignState? state, CustomResourceOptions? opts = null)
    public static DeviceprofileAssign get(String name, Output<String> id, DeviceprofileAssignState 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:
    DeviceprofileId string
    Macs List<string>
    OrgId string
    DeviceprofileId string
    Macs []string
    OrgId string
    deviceprofileId String
    macs List<String>
    orgId String
    deviceprofileId string
    macs string[]
    orgId string
    deviceprofile_id str
    macs Sequence[str]
    org_id str
    deviceprofileId String
    macs List<String>
    orgId String

    Package Details

    Repository
    junipermist pulumi/pulumi-junipermist
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the mist Terraform Provider.
    junipermist logo
    Juniper Mist v0.0.27 published on Friday, Sep 27, 2024 by Pulumi