Table of Contents

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

Id string

Permission group identifier.

Name string

Human-readable permission group name.

Scopes IReadOnlyList<string>

API scopes this permission group grants access to.

Properties

Id

Permission group identifier.

[JsonPropertyName("id")]
public string Id { get; init; }

Property Value

string

Name

Human-readable permission group name.

[JsonPropertyName("name")]
public string Name { get; init; }

Property Value

string

Scopes

API scopes this permission group grants access to.

[JsonPropertyName("scopes")]
public IReadOnlyList<string> Scopes { get; init; }

Property Value

IReadOnlyList<string>