Class PermissionGroup
- Namespace
- Cloudflare.NET.ApiTokens.Models
- Assembly
- Cloudflare.NET.dll
Represents a permission group that can be assigned to API tokens.
Permission groups define what API operations a token can perform. Use GetAccountPermissionGroupsAsync(string, ListPermissionGroupsFilters?, CancellationToken) to discover available groups.
public record PermissionGroup : IEquatable<PermissionGroup>
- Inheritance
-
PermissionGroup
- Implements
- Inherited Members
Constructors
PermissionGroup(string, string, IReadOnlyList<string>)
Represents a permission group that can be assigned to API tokens.
Permission groups define what API operations a token can perform. Use GetAccountPermissionGroupsAsync(string, ListPermissionGroupsFilters?, CancellationToken) to discover available groups.
public PermissionGroup(string Id, string Name, IReadOnlyList<string> Scopes)
Parameters
IdstringPermission group identifier.
NamestringHuman-readable permission group name.
ScopesIReadOnlyList<string>API scopes this permission group grants access to.
Properties
Id
Permission group identifier.
[JsonPropertyName("id")]
public string Id { get; init; }
Property Value
Name
Human-readable permission group name.
[JsonPropertyName("name")]
public string Name { get; init; }
Property Value
Scopes
API scopes this permission group grants access to.
[JsonPropertyName("scopes")]
public IReadOnlyList<string> Scopes { get; init; }