Skip to content

Support /projects/:id/job_token_scope/allowlist #2762

Closed
@Sjord

Description

@Sjord

I would like to access the job token allow list through the Gitlab API.

Docs:

API endpoint:

GET/POST/DELETE /projects/:id/job_token_scope/allowlist

I currently have the following manager to access the job token scope allow list:

class ProjectJobTokenScopeAllowlistManager(
    gitlab.mixins.ListMixin,
    gitlab.mixins.CreateMixin,
    gitlab.mixins.DeleteMixin,
    gitlab.base.RESTManager,
):
    _path = "/projects/{project_id}/job_token_scope/allowlist"
    _obj_cls = gitlab.v4.objects.Project
    _from_parent_attrs = {"project_id": "id"}
    _create_attrs = gitlab.types.RequiredOptional(required=("target_project_id",))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions