1. Packages
  2. Cisco Meraki
  3. API Docs
  4. organizations
  5. SwitchDevicesClone
Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi

meraki.organizations.SwitchDevicesClone

Explore with Pulumi AI

meraki logo
Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi

    ~>Warning: This resource does not represent a real-world entity in Meraki Dashboard, therefore changing or deleting this resource on its own has no immediate effect. Instead, it is a task part of a Meraki Dashboard workflow. It is executed in Meraki without any additional verification. It does not check if it was executed before or if a similar configuration or action already existed previously.

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.meraki.organizations.SwitchDevicesClone;
    import com.pulumi.meraki.organizations.SwitchDevicesCloneArgs;
    import com.pulumi.meraki.organizations.inputs.SwitchDevicesCloneParametersArgs;
    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 example = new SwitchDevicesClone("example", SwitchDevicesCloneArgs.builder()
                .organizationId("string")
                .parameters(SwitchDevicesCloneParametersArgs.builder()
                    .source_serial("Q234-ABCD-5678")
                    .target_serials(                
                        "Q234-ABCD-0001",
                        "Q234-ABCD-0002",
                        "Q234-ABCD-0003")
                    .build())
                .build());
    
            ctx.export("merakiOrganizationsSwitchDevicesCloneExample", example);
        }
    }
    
    resources:
      example:
        type: meraki:organizations:SwitchDevicesClone
        properties:
          organizationId: string
          parameters:
            source_serial: Q234-ABCD-5678
            target_serials:
              - Q234-ABCD-0001
              - Q234-ABCD-0002
              - Q234-ABCD-0003
    outputs:
      merakiOrganizationsSwitchDevicesCloneExample: ${example}
    

    Create SwitchDevicesClone Resource

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

    Constructor syntax

    new SwitchDevicesClone(name: string, args: SwitchDevicesCloneArgs, opts?: CustomResourceOptions);
    @overload
    def SwitchDevicesClone(resource_name: str,
                           args: SwitchDevicesCloneArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def SwitchDevicesClone(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           organization_id: Optional[str] = None,
                           parameters: Optional[SwitchDevicesCloneParametersArgs] = None)
    func NewSwitchDevicesClone(ctx *Context, name string, args SwitchDevicesCloneArgs, opts ...ResourceOption) (*SwitchDevicesClone, error)
    public SwitchDevicesClone(string name, SwitchDevicesCloneArgs args, CustomResourceOptions? opts = null)
    public SwitchDevicesClone(String name, SwitchDevicesCloneArgs args)
    public SwitchDevicesClone(String name, SwitchDevicesCloneArgs args, CustomResourceOptions options)
    
    type: meraki:organizations:SwitchDevicesClone
    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 SwitchDevicesCloneArgs
    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 SwitchDevicesCloneArgs
    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 SwitchDevicesCloneArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SwitchDevicesCloneArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SwitchDevicesCloneArgs
    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 switchDevicesCloneResource = new Meraki.Organizations.SwitchDevicesClone("switchDevicesCloneResource", new()
    {
        OrganizationId = "string",
        Parameters = new Meraki.Organizations.Inputs.SwitchDevicesCloneParametersArgs
        {
            SourceSerial = "string",
            TargetSerials = new[]
            {
                "string",
            },
        },
    });
    
    example, err := organizations.NewSwitchDevicesClone(ctx, "switchDevicesCloneResource", &organizations.SwitchDevicesCloneArgs{
    	OrganizationId: pulumi.String("string"),
    	Parameters: &organizations.SwitchDevicesCloneParametersArgs{
    		SourceSerial: pulumi.String("string"),
    		TargetSerials: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    })
    
    var switchDevicesCloneResource = new SwitchDevicesClone("switchDevicesCloneResource", SwitchDevicesCloneArgs.builder()
        .organizationId("string")
        .parameters(SwitchDevicesCloneParametersArgs.builder()
            .sourceSerial("string")
            .targetSerials("string")
            .build())
        .build());
    
    switch_devices_clone_resource = meraki.organizations.SwitchDevicesClone("switchDevicesCloneResource",
        organization_id="string",
        parameters=meraki.organizations.SwitchDevicesCloneParametersArgs(
            source_serial="string",
            target_serials=["string"],
        ))
    
    const switchDevicesCloneResource = new meraki.organizations.SwitchDevicesClone("switchDevicesCloneResource", {
        organizationId: "string",
        parameters: {
            sourceSerial: "string",
            targetSerials: ["string"],
        },
    });
    
    type: meraki:organizations:SwitchDevicesClone
    properties:
        organizationId: string
        parameters:
            sourceSerial: string
            targetSerials:
                - string
    

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

    OrganizationId string
    organizationId path parameter. Organization ID
    Parameters SwitchDevicesCloneParameters
    OrganizationId string
    organizationId path parameter. Organization ID
    Parameters SwitchDevicesCloneParametersArgs
    organizationId String
    organizationId path parameter. Organization ID
    parameters SwitchDevicesCloneParameters
    organizationId string
    organizationId path parameter. Organization ID
    parameters SwitchDevicesCloneParameters
    organization_id str
    organizationId path parameter. Organization ID
    parameters SwitchDevicesCloneParametersArgs
    organizationId String
    organizationId path parameter. Organization ID
    parameters Property Map

    Outputs

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

    Get an existing SwitchDevicesClone 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?: SwitchDevicesCloneState, opts?: CustomResourceOptions): SwitchDevicesClone
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            organization_id: Optional[str] = None,
            parameters: Optional[SwitchDevicesCloneParametersArgs] = None) -> SwitchDevicesClone
    func GetSwitchDevicesClone(ctx *Context, name string, id IDInput, state *SwitchDevicesCloneState, opts ...ResourceOption) (*SwitchDevicesClone, error)
    public static SwitchDevicesClone Get(string name, Input<string> id, SwitchDevicesCloneState? state, CustomResourceOptions? opts = null)
    public static SwitchDevicesClone get(String name, Output<String> id, SwitchDevicesCloneState 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:
    OrganizationId string
    organizationId path parameter. Organization ID
    Parameters SwitchDevicesCloneParameters
    OrganizationId string
    organizationId path parameter. Organization ID
    Parameters SwitchDevicesCloneParametersArgs
    organizationId String
    organizationId path parameter. Organization ID
    parameters SwitchDevicesCloneParameters
    organizationId string
    organizationId path parameter. Organization ID
    parameters SwitchDevicesCloneParameters
    organization_id str
    organizationId path parameter. Organization ID
    parameters SwitchDevicesCloneParametersArgs
    organizationId String
    organizationId path parameter. Organization ID
    parameters Property Map

    Supporting Types

    SwitchDevicesCloneParameters, SwitchDevicesCloneParametersArgs

    SourceSerial string
    Serial number of the source switch (must be on a network not bound to a template)
    TargetSerials List<string>
    Array of serial numbers of one or more target switches (must be on a network not bound to a template)
    SourceSerial string
    Serial number of the source switch (must be on a network not bound to a template)
    TargetSerials []string
    Array of serial numbers of one or more target switches (must be on a network not bound to a template)
    sourceSerial String
    Serial number of the source switch (must be on a network not bound to a template)
    targetSerials List<String>
    Array of serial numbers of one or more target switches (must be on a network not bound to a template)
    sourceSerial string
    Serial number of the source switch (must be on a network not bound to a template)
    targetSerials string[]
    Array of serial numbers of one or more target switches (must be on a network not bound to a template)
    source_serial str
    Serial number of the source switch (must be on a network not bound to a template)
    target_serials Sequence[str]
    Array of serial numbers of one or more target switches (must be on a network not bound to a template)
    sourceSerial String
    Serial number of the source switch (must be on a network not bound to a template)
    targetSerials List<String>
    Array of serial numbers of one or more target switches (must be on a network not bound to a template)

    Package Details

    Repository
    meraki pulumi/pulumi-meraki
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the meraki Terraform Provider.
    meraki logo
    Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi