New-ITGlueConfigurationInterface
SYNOPSIS
Create a configuration interface / Create a configuration interface for a particular configuration
SYNTAX
Create (Default)
New-ITGlueConfigurationInterface -Data <Object> [-Raw] [-WhatIf] [-Confirm]
ByConfiguration
New-ITGlueConfigurationInterface [-ConfigurationId] <long> -Data <Object> [-Raw] [-WhatIf]
[-Confirm]
ALIASES
This cmdlet has the following aliases,
- None
DESCRIPTION
Parameter set [ Create ] - The New-ITGlueConfigurationInterface cmdlet invokes the POST method of the /configuration_interfaces endpoint (Create a configuration interface)
Creates a new configuration interface under the configuration specified in the ID parameter. Returns the created object if successful. Use the nested relationships route to add multiple configuration interfaces to a configuration in bulk.
The request body must contain a JSON object, for example:
{ “data”: { “type”: “configuration-interfaces”, “attributes”: { “primary”: true, “name”: “LAN”, “ip-address”: “10.10.2.209” } } }
To create multiple configuration interfaces, the JSON object will look something like:
{ “data”: [ { “type”: “configuration-interfaces”, “attributes”: { “primary”: true, “name”: “LAN”, “ip-address”: “10.10.2.209” } }, { “type”: “configuration-interfaces”, “attributes”: { “name”: “Public”, “ip-address”: “10.0.1.23” } }, { “type”: “configuration-interfaces”, “attributes”: { “name”: “Public”, “mac-address”:”D4:6A:91:13:2D:77” } } ] }
Parameter set [ ByConfiguration ] - The New-ITGlueConfigurationInterface cmdlet invokes the POST method of the /configurations/{configuration_id}/relationships/configuration_interfaces endpoint (Create a configuration interface for a particular configuration)
Creates a new configuration interface under the configuration specified in the ID parameter. Returns the created object if successful. Use the nested relationships route to add multiple configuration interfaces to a configuration in bulk.
The request body must contain a JSON object, for example:
{ “data”: { “type”: “configuration-interfaces”, “attributes”: { “primary”: true, “name”: “LAN”, “ip-address”: “10.10.2.209” } } }
To create multiple configuration interfaces, the JSON object will look something like:
{ “data”: [ { “type”: “configuration-interfaces”, “attributes”: { “primary”: true, “name”: “LAN”, “ip-address”: “10.10.2.209” } }, { “type”: “configuration-interfaces”, “attributes”: { “name”: “Public”, “ip-address”: “10.0.1.23” } }, { “type”: “configuration-interfaces”, “attributes”: { “name”: “Public”, “mac-address”:”D4:6A:91:13:2D:77” } } ] }
This is a write function. It changes data in ITGlue. Use -WhatIf to see the request without sending it
EXAMPLES
EXAMPLE 1
New-ITGlueConfigurationInterface -Data @{} -WhatIf
Shows the POST request to the /configuration_interfaces endpoint without sending it
EXAMPLE 2
New-ITGlueConfigurationInterface -ConfigurationId 12345 -Data @{} -WhatIf
Shows the POST request to the /configurations/{configuration_id}/relationships/configuration_interfaces endpoint without sending it
PARAMETERS
-ConfigurationId
Only required for nested relationships route.
Notes: Must be a valid configuration ID in your account.
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases:
- configuration_id
ParameterSets:
- Name: ByConfiguration
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- cf
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Data
Defines the data of the JSON:API request body. Accepts a hashtable, an object, or a JSON string
The value is sent as the data property of the request body, such as @{ type = ‘organizations’; attributes = @{ name = ‘Example’ } }. An object with a single data property & a JSON string are sent as is
Body properties:
- type (string) - configuration_interfaces
- attributes (object):
- configuration_id (integer) - Not required when using nested relationship routes
- id (integer) - Required identifier for bulk updates
- ip_address (string) - IP4 and IP6 are supported
- mac_address (string) - Must be a valid MAC address
- name (string)
- notes (string)
- primary (boolean)
Type: System.Object
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByConfiguration
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Create
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Raw
Returns the full API response (data, meta, links, & included) instead of only the data
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-WhatIf
Runs the command in a mode that only reports what would happen without performing the actions.
Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- wi
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
System.Int64
OUTPUTS
NOTES
Endpoint : POST /configuration_interfaces Endpoint : POST /configurations/{configuration_id}/relationships/configuration_interfaces