New-ITGlueFlexibleAssetType
SYNOPSIS
Create a flexible asset type
SYNTAX
__AllParameterSets
New-ITGlueFlexibleAssetType [-Data] <Object> [-Raw] [-WhatIf] [-Confirm]
ALIASES
This cmdlet has the following aliases,
- None
DESCRIPTION
The New-ITGlueFlexibleAssetType cmdlet invokes the POST method of the /flexible_asset_types endpoint (Create a flexible asset type)
Creates a new flexible asset type in your account. Returns the created object if successful. Use the nested relationships route to add multiple flexible asset fields to a flexible asset type in bulk.
The request body must contain a JSON object, for example:
{ “data”: { “type”: “flexible_asset_types”, “attributes”: { “name”: “Email”, “description”: “Email Platform Information”, “icon”: “envelope”, “show-in-menu”: true }, “relationships”: { “flexible-asset-fields”: { “data”: [ { “type”: “flexible_asset_fields”, “attributes”: { “order”: 1, “name”: “Domains”, “kind”: “Tag”, “hint”: “Tag accepted domains for this email system”, “tag-type”: “Domains”, “required”: true, “show-in-list”: true } }, { “type”: “flexible_asset_fields”, “attributes”: { “order”: 2, “name”: “Type”, “kind”: “Select”, “hint”: “Select the email platform”, “default-value”: “Office 365\nExchange 2016\nExchange 2013\nGoogle Apps\nPOP/IMAP”, “required”: true, “use-for-title”: true, “show-in-list”: true } }, { “type”: “flexible_asset_fields”, “attributes”: { “order”: 3, “name”: “Email Servers”, “kind”: “Tag”, “hint”: “Tag server(s) participating in email delivery”, “tag-type”: “Configurations”, “show-in-list”: true } }, { “type”: “flexible_asset_fields”, “attributes”: { “order”: 4, “name”: “Location”, “kind”: “Select”, “hint”: “Where is the email hosted”, “default-value”: “Cloud\nOn-Premises” } }, { “type”: “flexible_asset_fields”, “attributes”: { “order”: 5, “name”: “Inbound Delivery”, “kind”: “Select”, “hint”: “How is inbound email delivered”, “default-value”: “Office 365\nGoogle\nProofpoint\nMimecast\nReflexion”, “show-in-list”: true } }, { “type”: “flexible_asset_fields”, “attributes”: { “order”: 6, “name”: “Webmail URL”, “kind”: “Text”, “show-in-list”: true } } ] } } } }
This is a write function. It changes data in ITGlue. Use -WhatIf to see the request without sending it
EXAMPLES
EXAMPLE 1
New-ITGlueFlexibleAssetType -Data @{} -WhatIf
Shows the POST request to the /flexible_asset_types endpoint without sending it
PARAMETERS
-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) - flexible_asset_types
- attributes (object):
- description (string)
- enabled (boolean)
- fields (object) - List of fields for this flexible asset type; each flexible asset type must have at least one field and at least one field with show_in_list set to true
- icon (string) - icon image name
- id (integer) - Required identifier for bulk updates
- name (string)
Type: System.Object
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
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
OUTPUTS
NOTES
Endpoint : POST /flexible_asset_types