openapi: 3.2.0 info: title: 'Automation Hub Ansible: Collections API' version: v3 description: Fetch, Upload, Organize, and Distribute Ansible Collections contact: name: Automation Hub Team email: ansible-galaxy-team@redhat.com url: https://www.ansible.com/products/automation-hub license: name: GPLv2+ url: https://raw.githubusercontent.com/ansible/galaxy_ng/main/LICENSE x-logo: url: https://pulp.plan.io/attachments/download/517478/pulp_logo_word_rectangle.svg x-pulp-app-versions: core: 3.49.40 galaxy: 4.12.0dev ansible: 0.25.1 container: 2.19.5 certguard: 3.49.40 file: 3.49.40 x-pulp-domain-enabled: false servers: - url: http://automation-hub-backend-cwa.automation-hub-prod.svc.cluster.local:8000/ tags: - name: 'Ansible: Collections' paths: /ansible/collections/: post: operationId: upload_collection description: Create an artifact and trigger an asynchronous task to create Collection content from it. summary: Upload a collection tags: - 'Ansible: Collections' requestBody: content: multipart/form-data: schema: $ref: '#/components/schemas/CollectionOneShot' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/CollectionOneShot' required: true deprecated: true responses: '202': content: application/json: schema: $ref: '#/components/schemas/AsyncOperationResponse' description: '' /api/automation-hub/pulp/api/v3/ansible/collections/: get: operationId: ansible_collections_list description: Viewset for Ansible Collections. summary: List collections parameters: - name: limit required: false in: query description: Number of results to return per page. schema: type: integer - in: query name: name schema: type: string - in: query name: namespace schema: type: string - name: offset required: false in: query description: The initial index from which to return the results. schema: type: integer - in: query name: ordering schema: type: array items: type: string enum: - -name - -namespace - -pk - -pulp_created - -pulp_id - -pulp_last_updated - name - namespace - pk - pulp_created - pulp_id - pulp_last_updated description: 'Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `namespace` - Namespace * `-namespace` - Namespace (descending) * `name` - Name * `-name` - Name (descending) * `pk` - Pk * `-pk` - Pk (descending)' explode: false style: form - in: query name: pulp_href__in schema: type: array items: type: string description: Multiple values may be separated by commas. explode: false style: form - in: query name: pulp_id__in schema: type: array items: type: string format: uuid description: Multiple values may be separated by commas. explode: false style: form - in: query name: q schema: type: string - in: query name: fields schema: type: array items: type: string description: A list of fields to include in the response. - in: query name: exclude_fields schema: type: array items: type: string description: A list of fields to exclude from the response. tags: - 'Ansible: Collections' responses: '200': content: application/json: schema: $ref: '#/components/schemas/Paginatedansible.CollectionResponseList' description: '' /api/automation-hub/pulp/api/v3/ansible/collections/{pulp_id}/: get: operationId: ansible_collections_read description: Viewset for Ansible Collections. summary: Inspect a collection parameters: - in: path name: pulp_id schema: type: string format: uuid description: A UUID string identifying this collection. required: true - in: query name: fields schema: type: array items: type: string description: A list of fields to include in the response. - in: query name: exclude_fields schema: type: array items: type: string description: A list of fields to exclude from the response. tags: - 'Ansible: Collections' responses: '200': content: application/json: schema: $ref: '#/components/schemas/ansible.CollectionResponse' description: '' /api/automation-hub/pulp/api/v3/ansible/collections/{pulp_id}/add_role/: post: operationId: ansible_collections_add_role description: Add a role for this object to users/groups. summary: Add a role parameters: - in: path name: pulp_id schema: type: string format: uuid description: A UUID string identifying this collection. required: true tags: - 'Ansible: Collections' requestBody: content: application/json: schema: $ref: '#/components/schemas/NestedRole' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/NestedRole' multipart/form-data: schema: $ref: '#/components/schemas/NestedRole' required: true responses: '201': content: application/json: schema: $ref: '#/components/schemas/NestedRoleResponse' description: '' /api/automation-hub/pulp/api/v3/ansible/collections/{pulp_id}/list_roles/: get: operationId: ansible_collections_list_roles description: List roles assigned to this object. summary: List roles parameters: - in: path name: pulp_id schema: type: string format: uuid description: A UUID string identifying this collection. required: true - in: query name: fields schema: type: array items: type: string description: A list of fields to include in the response. - in: query name: exclude_fields schema: type: array items: type: string description: A list of fields to exclude from the response. tags: - 'Ansible: Collections' responses: '200': content: application/json: schema: $ref: '#/components/schemas/ObjectRolesResponse' description: '' /api/automation-hub/pulp/api/v3/ansible/collections/{pulp_id}/my_permissions/: get: operationId: ansible_collections_my_permissions description: List permissions available to the current user on this object. summary: List user permissions parameters: - in: path name: pulp_id schema: type: string format: uuid description: A UUID string identifying this collection. required: true - in: query name: fields schema: type: array items: type: string description: A list of fields to include in the response. - in: query name: exclude_fields schema: type: array items: type: string description: A list of fields to exclude from the response. tags: - 'Ansible: Collections' responses: '200': content: application/json: schema: $ref: '#/components/schemas/MyPermissionsResponse' description: '' /api/automation-hub/pulp/api/v3/ansible/collections/{pulp_id}/remove_role/: post: operationId: ansible_collections_remove_role description: Remove a role for this object from users/groups. summary: Remove a role parameters: - in: path name: pulp_id schema: type: string format: uuid description: A UUID string identifying this collection. required: true tags: - 'Ansible: Collections' requestBody: content: application/json: schema: $ref: '#/components/schemas/NestedRole' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/NestedRole' multipart/form-data: schema: $ref: '#/components/schemas/NestedRole' required: true responses: '201': content: application/json: schema: $ref: '#/components/schemas/NestedRoleResponse' description: '' components: schemas: ObjectRolesResponse: type: object properties: roles: type: array items: $ref: '#/components/schemas/NestedRoleResponse' required: - roles NestedRole: type: object description: 'Serializer to add/remove object roles to/from users/groups. This is used in conjunction with ``pulpcore.app.viewsets.base.RolesMixin`` and requires the underlying object to be passed as ``content_object`` in the context.' properties: users: type: array items: type: string minLength: 1 description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. default: [] groups: type: array items: type: string minLength: 1 default: [] role: type: string minLength: 1 required: - role MyPermissionsResponse: type: object properties: permissions: type: array items: type: string required: - permissions CollectionOneShot: type: object description: A serializer for the Collection One Shot Upload API. properties: file: type: string format: binary description: The Collection tarball. sha256: type: string minLength: 1 description: An optional sha256 checksum of the uploaded file. expected_namespace: type: string minLength: 1 description: The expected 'namespace' of the Collection to be verified against the metadata during import. expected_name: type: string minLength: 1 description: The expected 'name' of the Collection to be verified against the metadata during import. expected_version: type: string minLength: 1 description: The expected version of the Collection to be verified against the metadata during import. required: - file NestedRoleResponse: type: object description: 'Serializer to add/remove object roles to/from users/groups. This is used in conjunction with ``pulpcore.app.viewsets.base.RolesMixin`` and requires the underlying object to be passed as ``content_object`` in the context.' properties: users: type: array items: type: string description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. default: [] groups: type: array items: type: string default: [] role: type: string required: - role ansible.CollectionResponse: type: object description: A serializer for Ansible Collections. properties: name: type: string description: The name of the Collection. namespace: type: string description: The namespace of the Collection. required: - name - namespace Paginatedansible.CollectionResponseList: type: object required: - count - results properties: count: type: integer example: 123 next: type: - string - 'null' format: uri example: http://api.example.org/accounts/?offset=400&limit=100 previous: type: - string - 'null' format: uri example: http://api.example.org/accounts/?offset=200&limit=100 results: type: array items: $ref: '#/components/schemas/ansible.CollectionResponse' AsyncOperationResponse: type: object description: Serializer for asynchronous operations. properties: task: type: string format: uri description: The href of the task. required: - task