GetAFAttributeTemplate Class
- Last UpdatedDec 15, 2025
- 3 minute read
Get an AF Attribute Template
The Get-AFAttributeTemplate cmdlet gets an existing AF Attribute Template. The AF Attribute Template can be on an existing Element Template, or a Sub Attribute Template.
Inheritance Hierarchy
InternalCommand
Cmdlet
PSCmdlet
OSIsoft.PowerShellOSICmdletBase
OSIsoft.PowerShellGetAFAttributeTemplate
Namespace: OSIsoft.PowerShell
Assembly: OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 3.1.1.0 (3.1.1.466)
Syntax
[CmdletAttribute("Get", "AFAttributeTemplate", DefaultParameterSetName = "ElementName", SupportsShouldProcess = true)] public class GetAFAttributeTemplate : OSICmdletBase
<CmdletAttribute("Get", "AFAttributeTemplate", DefaultParameterSetName := "ElementName", SupportsShouldProcess := true)> Public Class GetAFAttributeTemplate Inherits OSICmdletBase Dim instance As GetAFAttributeTemplate
[CmdletAttribute(L"Get", L"AFAttributeTemplate", DefaultParameterSetName = L"ElementName", SupportsShouldProcess = true)] public ref class GetAFAttributeTemplate : public OSICmdletBase
[<CmdletAttribute("Get", "AFAttributeTemplate", DefaultParameterSetName = "ElementName", SupportsShouldProcess = true)>] type GetAFAttributeTemplate = class inherit OSICmdletBase end
The GetAFAttributeTemplate type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| GetAFAttributeTemplate |
Properties
| Name | Description | |
|---|---|---|
| AFAttributeTemplate | Parent AF Attribute Template from which to get AF Sub Attribute Template | |
| AFElementTemplate | AF Element Template from which to get AF Attribute Template | |
| ID | ID of the AF Attribute Template to get | |
| Index | Index of the AF Attribute Template to get | |
| Name | Name of the AF Attribute Template to get | |
| Refresh | Refresh container before accessing |
Examples
Get-AFAttributeTemplate -Name "Temperature" -AFElementTemplate $afEleTemplateWhere:
$afEleTemplate = Get-AFElementTemplate -Name "Oven" -AFDatabase (Get-AFDatabase -Name "AFDatabase1" -AFServer (Get-AFServer -Name "PIAF1"))
Gets the AF Attribute Template "Temperature" on the element template "Oven" on the database "AFDatabase1" on the AF Server "PIAF1".
Examples
Get-AFAttributeTemplate -Name "Fahrenheit" -AFAttributeTemplate $afAttTemplateWhere:
$afEleTemplate = Get-AFElementTemplate -Name "Anneal Oven 1" -AFDatabase (Get-AFDatabase -Name "AFDatabase1" -AFServer (Get-AFServer -Name "PIAF1"))
$afAttTemplate = Get-AFAttributeTemplate -Name "Inner Temperature" -AFElementTemplate $afElement
Gets the child AF Attribute Template "Fahrenheit" of the AF Attribute Template "Inner Temperature" on the element template "Oven" on the database "AFDatabase1" on the AF Server "PIAF1".