meraki.organizations.SwitchDevicesClone
Explore with Pulumi AI
~>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={
"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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SwitchDevicesClone resource accepts the following input properties:
- Organization
Id string - organizationId path parameter. Organization ID
- Parameters
Switch
Devices Clone Parameters
- Organization
Id string - organizationId path parameter. Organization ID
- Parameters
Switch
Devices Clone Parameters Args
- organization
Id String - organizationId path parameter. Organization ID
- parameters
Switch
Devices Clone Parameters
- organization
Id string - organizationId path parameter. Organization ID
- parameters
Switch
Devices Clone Parameters
- organization_
id str - organizationId path parameter. Organization ID
- parameters
Switch
Devices Clone Parameters Args
- organization
Id 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.
- Organization
Id string - organizationId path parameter. Organization ID
- Parameters
Switch
Devices Clone Parameters
- Organization
Id string - organizationId path parameter. Organization ID
- Parameters
Switch
Devices Clone Parameters Args
- organization
Id String - organizationId path parameter. Organization ID
- parameters
Switch
Devices Clone Parameters
- organization
Id string - organizationId path parameter. Organization ID
- parameters
Switch
Devices Clone Parameters
- organization_
id str - organizationId path parameter. Organization ID
- parameters
Switch
Devices Clone Parameters Args
- organization
Id String - organizationId path parameter. Organization ID
- parameters Property Map
Supporting Types
SwitchDevicesCloneParameters, SwitchDevicesCloneParametersArgs
- Source
Serial string - Serial number of the source switch (must be on a network not bound to a template)
- Target
Serials List<string> - Array of serial numbers of one or more target switches (must be on a network not bound to a template)
- Source
Serial string - Serial number of the source switch (must be on a network not bound to a template)
- Target
Serials []string - Array of serial numbers of one or more target switches (must be on a network not bound to a template)
- source
Serial String - Serial number of the source switch (must be on a network not bound to a template)
- target
Serials List<String> - Array of serial numbers of one or more target switches (must be on a network not bound to a template)
- source
Serial string - Serial number of the source switch (must be on a network not bound to a template)
- target
Serials 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)
- source
Serial String - Serial number of the source switch (must be on a network not bound to a template)
- target
Serials 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.