Documentation
¶
Overview ¶
Package security provides read-only access to Azure DevOps security namespaces and access control lists at the organization level.
Index ¶
Constants ¶
const Name = "security"
Name is the toolset name for this area.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccessControlList ¶
type AccessControlList struct {
InheritPermissions bool `json:"inheritPermissions"`
Token string `json:"token,omitempty"`
AcesDictionary any `json:"acesDictionary,omitempty"`
}
AccessControlList is the set of access control entries (ACEs) that apply to a single token within a security namespace.
type ListAccessControlListsInput ¶
type ListAccessControlListsInput struct {
NamespaceID string `json:"namespaceId" jsonschema:"security namespace ID"`
Token string `json:"token,omitempty" jsonschema:"security token to filter the ACLs (optional)"`
IncludeExtendedInfo bool `json:"includeExtendedInfo,omitempty" jsonschema:"include extended permission info (optional)"`
Descriptors string `json:"descriptors,omitempty" jsonschema:"comma-separated list of identity descriptors to filter the ACEs (optional)"`
Recurse bool `json:"recurse,omitempty" jsonschema:"recurse down the token hierarchy (optional)"`
}
ListAccessControlListsInput selects the access control lists to return.
type ListNamespacesInput ¶
type ListNamespacesInput struct {
NamespaceID string `json:"namespaceId,omitempty" jsonschema:"security namespace ID to filter by (optional)"`
}
ListNamespacesInput optionally filters security namespaces by ID.
type RemoveAccessControlListsInput ¶
type RemoveAccessControlListsInput struct {
NamespaceID string `json:"namespaceId" jsonschema:"security namespace ID"`
Tokens string `json:"tokens" jsonschema:"one or more comma-separated security tokens whose ACLs should be removed"`
Recurse bool `` /* 129-byte string literal not displayed */
}
RemoveAccessControlListsInput selects the ACLs to remove by token.
type SecurityNamespace ¶
type SecurityNamespace struct {
NamespaceID string `json:"namespaceId"`
Name string `json:"name"`
DisplayName string `json:"displayName,omitempty"`
Actions any `json:"actions,omitempty"`
}
SecurityNamespace describes a security namespace, which groups a set of related permissions (actions) under a stable namespace identifier.
type SetAccessControlEntriesInput ¶
type SetAccessControlEntriesInput struct {
NamespaceID string `json:"namespaceId" jsonschema:"security namespace ID"`
Body map[string]any `json:"body" jsonschema:"request body with {token: string, merge: bool, accessControlEntries: array of ACEs}"`
}
SetAccessControlEntriesInput passes through the access control entries to set.