FwupdPlugin.SecurityAttrs.get_by_appstream_id

### Method

# FwupdPlugin SecurityAttrsget_by_appstream_id

since: 1.7.2

#### Declaration [src]

    FwupdSecurityAttr*
    fu_security_attrs_get_by_appstream_id (
      FuSecurityAttrs* self,
      const gchar* appstream_id
    )

#### Description [src]

Gets a specific `FwupdSecurityAttr` from the array.

Available since: 1.7.2

#### Parameters

`appstream_id`

  Type: `const gchar*`

  An ID, e.g. `FWUPD_SECURITY_ATTR_ID_ENCRYPTED_RAM`.

  The data is owned by the caller of the function.
  The value is a NUL terminated UTF-8 string.

#### Return value

Type: `FwupdSecurityAttr`

A `FwupdSecurityAttr` or `NULL`.

The caller of the method takes ownership of the data, and is responsible for freeing it.