diff --git a/spec/openapi.yaml b/spec/openapi.yaml index 071dd34..60f08f3 100644 --- a/spec/openapi.yaml +++ b/spec/openapi.yaml @@ -191,6 +191,62 @@ components: inheritedFromOrganizationName: type: string type: object + ApiAutoPolicyWaiverDTO: + properties: + autoPolicyWaiverId: + type: string + createTime: + format: date-time + type: string + creatorId: + type: string + creatorName: + type: string + ownerId: + type: string + pathForward: + type: boolean + reachable: + type: boolean + threatLevel: + format: int32 + type: integer + type: object + ApiAutoPolicyWaiverRevocationDTO: + properties: + associatedPackageUrl: + type: string + autoPolicyWaiverId: + type: string + autoPolicyWaiverRevocationId: + type: string + createTime: + format: date-time + type: string + creatorId: + type: string + creatorName: + type: string + hash: + type: string + ownerId: + type: string + scanId: + type: string + type: object + ApiAutoPolicyWaiverStatusDTO: + properties: + autoPolicyWaiverId: + type: string + autoPolicyWaiverOwnerId: + type: string + autoPolicyWaiverOwnerName: + type: string + isAutoWaiverEnabled: + type: boolean + isInherited: + type: boolean + type: object ApiComponentChangeActionDTO: properties: component: @@ -557,6 +613,11 @@ components: type: string policyViolationId: type: string + reachabilityStatus: + enum: + - REACHABLE + - NON_REACHABLE + type: string stageData: additionalProperties: $ref: '#/components/schemas/StageData' @@ -1047,6 +1108,22 @@ components: username: type: string type: object + ApiMalwareComponentEvaluationRequest: + properties: + hash: + type: string + packageUrl: + type: string + type: object + ApiMalwareComponentEvaluationRequestList: + properties: + components: + items: + $ref: '#/components/schemas/ApiMalwareComponentEvaluationRequest' + type: array + format: + type: string + type: object ApiMatchStateSummaryDTOV2: properties: knownComponentCount: @@ -1143,6 +1220,25 @@ components: ownerType: type: string type: object + ApiPageResultPrioritizedComponent: + properties: + page: + format: int32 + type: integer + pageCount: + format: int64 + type: integer + pageSize: + format: int32 + type: integer + results: + items: + $ref: '#/components/schemas/PrioritizedComponent' + type: array + total: + format: int64 + type: integer + type: object ApiPolicyDTO: properties: id: @@ -1155,6 +1251,9 @@ components: enum: - APPLICATION - ORGANIZATION + - REPOSITORY_CONTAINER + - REPOSITORY_MANAGER + - REPOSITORY type: string policyType: type: string @@ -1383,6 +1482,10 @@ components: $ref: '#/components/schemas/ApiDependencyDataDTO' displayName: type: string + filenames: + items: + type: string + type: array hash: type: string identificationSource: @@ -2455,46 +2558,6 @@ components: templateName: type: string type: object - BodyPart: - properties: - contentDisposition: - $ref: '#/components/schemas/ContentDisposition' - entity: - type: object - headers: - additionalProperties: - items: - type: string - type: array - type: object - mediaType: - properties: - parameters: - additionalProperties: - type: string - type: object - subtype: - type: string - type: - type: string - wildcardSubtype: - type: boolean - wildcardType: - type: boolean - type: object - messageBodyWorkers: - $ref: '#/components/schemas/MessageBodyWorkers' - parameterizedHeaders: - additionalProperties: - items: - $ref: '#/components/schemas/ParameterizedHeader' - type: array - type: object - parent: - $ref: '#/components/schemas/MultiPart' - providers: - type: object - type: object ComponentDisplayName: properties: name: @@ -2579,6 +2642,8 @@ components: $ref: '#/components/schemas/ValidationResult' repoPrivate: $ref: '#/components/schemas/ValidationResult' + repoPublic: + $ref: '#/components/schemas/ValidationResult' sshConfiguration: $ref: '#/components/schemas/ValidationResult' tokenPermissions: @@ -2597,29 +2662,6 @@ components: operatorName: type: string type: object - ContentDisposition: - properties: - creationDate: - format: date-time - type: string - fileName: - type: string - modificationDate: - format: date-time - type: string - parameters: - additionalProperties: - type: string - type: object - readDate: - format: date-time - type: string - size: - format: int64 - type: integer - type: - type: string - type: object CweId: properties: id: @@ -2628,53 +2670,14 @@ components: format: uri type: string type: object - FormDataBodyPart: + DevelopmentPrioritizationResults: properties: - contentDisposition: - $ref: '#/components/schemas/ContentDisposition' - entity: - type: object - formDataContentDisposition: - $ref: '#/components/schemas/FormDataContentDisposition' - headers: - additionalProperties: - items: - type: string - type: array - type: object - mediaType: - properties: - parameters: - additionalProperties: - type: string - type: object - subtype: - type: string - type: - type: string - wildcardSubtype: - type: boolean - wildcardType: - type: boolean - type: object - messageBodyWorkers: - $ref: '#/components/schemas/MessageBodyWorkers' - name: - type: string - parameterizedHeaders: - additionalProperties: - items: - $ref: '#/components/schemas/ParameterizedHeader' - type: array - type: object - parent: - $ref: '#/components/schemas/MultiPart' - providers: - type: object - simple: - type: boolean - value: - type: string + additionalPriorities: + $ref: '#/components/schemas/ApiPageResultPrioritizedComponent' + topPriorities: + items: + $ref: '#/components/schemas/PrioritizedComponent' + type: array type: object FormDataContentDisposition: properties: @@ -2701,56 +2704,6 @@ components: type: type: string type: object - FormDataMultiPart: - properties: - bodyParts: - items: - $ref: '#/components/schemas/BodyPart' - type: array - contentDisposition: - $ref: '#/components/schemas/ContentDisposition' - entity: - type: object - fields: - additionalProperties: - items: - $ref: '#/components/schemas/FormDataBodyPart' - type: array - type: object - headers: - additionalProperties: - items: - type: string - type: array - type: object - mediaType: - properties: - parameters: - additionalProperties: - type: string - type: object - subtype: - type: string - type: - type: string - wildcardSubtype: - type: boolean - wildcardType: - type: boolean - type: object - messageBodyWorkers: - $ref: '#/components/schemas/MessageBodyWorkers' - parameterizedHeaders: - additionalProperties: - items: - $ref: '#/components/schemas/ParameterizedHeader' - type: array - type: object - parent: - $ref: '#/components/schemas/MultiPart' - providers: - type: object - type: object GroupingByDTO: properties: additionalInfo: @@ -2873,60 +2826,23 @@ components: format: int32 type: integer type: object - MessageBodyWorkers: + MalwareDefenseData: + properties: + hash: + type: string + isMalicious: + type: boolean + matchState: + type: string + packageUrl: + type: string type: object - MultiPart: + MalwareDefenseResponseList: properties: - bodyParts: + componentList: items: - $ref: '#/components/schemas/BodyPart' + $ref: '#/components/schemas/MalwareDefenseData' type: array - contentDisposition: - $ref: '#/components/schemas/ContentDisposition' - entity: - type: object - headers: - additionalProperties: - items: - type: string - type: array - type: object - mediaType: - properties: - parameters: - additionalProperties: - type: string - type: object - subtype: - type: string - type: - type: string - wildcardSubtype: - type: boolean - wildcardType: - type: boolean - type: object - messageBodyWorkers: - $ref: '#/components/schemas/MessageBodyWorkers' - parameterizedHeaders: - additionalProperties: - items: - $ref: '#/components/schemas/ParameterizedHeader' - type: array - type: object - parent: - $ref: '#/components/schemas/MultiPart' - providers: - type: object - type: object - ParameterizedHeader: - properties: - parameters: - additionalProperties: - type: string - type: object - value: - type: string type: object PolicyAlert: properties: @@ -3026,6 +2942,47 @@ components: tagId: type: string type: object + PrioritizedComponent: + properties: + action: + type: string + componentHash: + type: string + componentIdentifier: + $ref: '#/components/schemas/ComponentIdentifier' + dependencyType: + type: string + displayName: + type: string + hasFailActionOnComponent: + type: boolean + highestReachableThreat: + format: int32 + type: integer + highestThreat: + format: int32 + type: integer + highestThreatPolicyConstraintName: + type: string + highestThreatPolicyName: + type: string + priority: + format: int32 + type: integer + remediationType: + enum: + - next-no-violations + - next-non-failing + - next-no-violations-with-dependencies + - next-non-failing-with-dependencies + - recommended-non-breaking + - recommended-non-breaking-with-dependencies + type: string + remediationVersion: + type: string + securityReachable: + type: boolean + type: object ReferenceLink: properties: referenceType: @@ -3060,6 +3017,12 @@ components: type: string displayName: type: string + fileCoordinateId: + type: string + filenames: + items: + type: string + type: array hash: type: string licenses: @@ -3067,6 +3030,8 @@ components: $ref: '#/components/schemas/License' type: array uniqueItems: true + matchStateId: + type: string name: type: string packageUrl: @@ -3074,6 +3039,9 @@ components: percentageAnnotated: format: double type: number + policyViolationCount: + format: int32 + type: integer version: type: string vulnerabilitySeverityCriticalCount: @@ -3475,7 +3443,7 @@ components: type: http info: title: Sonatype Lifecycle Public REST API - version: 1.182.0-01 + version: 1.184.0-01 openapi: 3.0.1 paths: /api/v2/applicationCategories/application: @@ -3746,16 +3714,24 @@ paths: - Application Categories /api/v2/applications: get: + description: 'Use this method to retrieve the application details for the applicationId(s) + provided. + + + Permissions required: View IQ Elements' operationId: getApplications parameters: - - in: query + - description: Enter the applicationId. + in: query name: publicId schema: items: type: string type: array uniqueItems: true - - in: query + - description: Set this parameter to `true` to obtain the application tags (application + categories) in the response. + in: query name: includeCategories schema: default: false @@ -3770,73 +3746,110 @@ paths: tags: - Applications post: + description: 'Use this method to create an application under an organization. + Use the Organization REST API to obtain organizationId. + + + Permissions required: Add Application (on parent organization)' operationId: addApplication requestBody: content: application/json: schema: $ref: '#/components/schemas/ApiApplicationDTO' + description: Specify the applicationId, application name and the organizationId + under which the application should be created. `contactUserName` corresponds + to the 'contact' field in the UI and represents the user name. If LDAP is + used for authentication, you can use LDAP usernames.`tagId` is the internal + identifier for the Application Category that you want to apply to the application. + Use the Application Categories REST API for the available categories and + the corresponding tagIds. responses: - default: + '200': content: application/json: schema: $ref: '#/components/schemas/ApiApplicationDTO' - description: default response + description: The response contains application details for the application + created using this method. tags: - Applications /api/v2/applications/organization/{organizationId}: get: + description: 'Use this method to retrieve application details for all applications + under the organizationId provided. + + + Permissions required: View IQ Elements' operationId: getApplicationsByOrganizationId parameters: - - in: path + - description: Enter the organizationId. + in: path name: organizationId required: true schema: type: string responses: - default: + '200': content: application/json: schema: $ref: '#/components/schemas/ApiApplicationListDTO' - description: default response + description: The response contains the details of all applications found + under the organizationId provided. tags: - Applications /api/v2/applications/{applicationId}: delete: + description: 'Use this method to permanently delete an existing application + and all data associated with it. This action cannot be un-done. Before deleting, + confirm that the application being deleted does not impact any integrations + that could depend on it. + + + Permissions required: Edit IQ Elements' operationId: deleteApplication parameters: - - in: path + - description: Enter the applicationId to be deleted. + in: path name: applicationId required: true schema: type: string responses: - default: - content: - '*/*': {} - description: default response + '200': + description: Application deleted successfully tags: - Applications get: + description: 'Use this method to retrieve the application details, by providing + the applicationId. + + + Permissions required: View IQ Elements' operationId: getApplication parameters: - - in: path + - description: Enter the applicationId. + in: path name: applicationId required: true schema: type: string responses: - default: + '200': content: application/json: schema: $ref: '#/components/schemas/ApiApplicationDTO' - description: default response + description: The response contains the details of the application corresponding + to the applicationId. tags: - Applications put: + description: "Use this method to update the application name, application tags\ + \ or the contact user name for an existing application by providing the applicationId.\ + \ \n\nNOTE: This method cannot be used to change the organizationId of an\ + \ application.\n\nPermissions required: Edit IQ Elements" operationId: updateApplication parameters: - in: path @@ -3849,36 +3862,63 @@ paths: application/json: schema: $ref: '#/components/schemas/ApiApplicationDTO' + description: Specify the applicationId, application name and the organizationId + under which the application exists. `contactUserName` corresponds to the + 'contact' field in the UI and represents the user name. If LDAP is used + for authentication, you can use LDAP usernames.`tagId` is the internal identifier + for the Application Category that you want to apply to the application. + . Use the Application Categories REST API for the available categories and + the corresponding tagIds. responses: - default: + '200': content: application/json: schema: $ref: '#/components/schemas/ApiApplicationDTO' - description: default response + description: The response contains the updated application name, contact + user name and application tags, for the applicationId provided tags: - Applications /api/v2/applications/{applicationId}/move/organization/{organizationId}: post: + description: 'Use this method to move an application from one organization to + another. + + + Permissions required: Edit IQ Elements' operationId: moveApplication parameters: - - in: path + - description: Enter the applicationId of the application to be moved. + in: path name: applicationId required: true schema: type: string - - in: path + - description: Enter the organizationId of the destination organization. + in: path name: organizationId required: true schema: type: string responses: - default: + '200': content: application/json: schema: $ref: '#/components/schemas/ApiMoveApplicationResponseDTOV2' - description: default response + description: Application moved successfully, with/without warnings. Warnings, + if any, will appear in the response body. + '404': + description: Moving the application failed because either an application + with the provided applicationId or the organizationId for the organization + where it is to be moved is not found. + '409': + content: + application/json: + schema: + $ref: '#/components/schemas/ApiMoveApplicationResponseDTOV2' + description: Moving the application failed due to conflicts between the + organizations. tags: - Applications /api/v2/applications/{applicationPublicId}/reports/policyViolations/diff: @@ -4081,110 +4121,513 @@ paths: - Application Report Data /api/v2/applications/{sourceApplicationId}/clone: post: + description: 'Use this method to clone an existing application. + + + Permissions required: Add Application (on the parent organization)' operationId: cloneApplication parameters: - - in: path + - description: Enter the applicationId for the application to be cloned. + in: path name: sourceApplicationId required: true schema: type: string - - in: query + - description: Enter the application name for the new cloned application. + in: query name: clonedApplicationName schema: type: string - - in: query + - description: Enter the applicationPublicId for the cloned application. + in: query name: clonedApplicationPublicId schema: type: string responses: - default: + '200': content: application/json: schema: $ref: '#/components/schemas/ApiApplicationDTO' - description: default response + description: The response contains application details of the cloned application. tags: - Applications /api/v2/auditLogs: get: + description: 'Use this method to retrieve the audit events for the specified + time period. + + + Permissions required: Access Audit Log' operationId: getAuditLogs parameters: - - in: query + - description: Enter the start UTC date in the format (yyyy-mm-dd). + in: query name: startUtcDate schema: type: string - - in: query + - description: Enter the end UTC date in the format (yyyy-mm-dd). + in: query name: endUtcDate schema: type: string responses: - default: + '200': content: text/plain: {} - description: default response + description: The response text contains lines of audit events in chronologically + ascending order. tags: - Audit Logs + /api/v2/autoPolicyWaiverRevocations/{ownerType}/{ownerId}: + post: + description: 'Use this method to create an auto policy waiver revocation for + a specified auto policy waiver. + + + Permissions required: Waive Policy Violations' + operationId: addAutoPolicyWaiverRevocation + parameters: + - description: Enter the ownerType to specify the scope. + in: path + name: ownerType + required: true + schema: + enum: + - application + - organization + - repository_container + - repository_manager + - repository + - global + pattern: application|organization + type: string + - description: Enter the corresponding id for the ownerType specified above. + in: path + name: ownerId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ApiAutoPolicyWaiverRevocationDTO' + description: The request JSON can include the fields
  1. autoPolicyWaiverId
  2. hash
  3. scanId
+ required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ApiAutoPolicyWaiverRevocationDTO' + description: Auto policy waiver revocation has been created successfully. + tags: + - Auto Policy Waiver Revocations + /api/v2/autoPolicyWaiverRevocations/{ownerType}/{ownerId}/{autoPolicyWaiverRevocationId}: + delete: + description: 'Use this method to delete an auto policy waiver revocation, specified + by the autoPolicyWaiverRevocationId. + + + Permissions required: Waive Policy Violations' + operationId: deleteAutoPolicyWaiverRevocation + parameters: + - description: Enter the ownerType to specify the scope. A waiver revocation + corresponding to the autoPolicyWaiverRevocationId provided and within the + scope specified will be deleted. + in: path + name: ownerType + required: true + schema: + enum: + - application + - organization + - repository_container + - repository_manager + - repository + - global + pattern: application|organization + type: string + - description: Enter the corresponding id for the ownerType specified above. + in: path + name: ownerId + required: true + schema: + type: string + - description: Enter the autoPolicyWaiverId to be deleted + in: path + name: autoPolicyWaiverRevocationId + required: true + schema: + type: string + responses: + '204': + description: Auto policy waiver revocation has been deleted successfully. + tags: + - Auto Policy Waiver Revocations + /api/v2/autoPolicyWaivers/{ownerType}/{ownerId}: + get: + description: 'Use this method to retrieve waiver details for all auto policy + waivers for the scope specified. You can specify the scope by using the parameters + ownerType and ownerId. + + + Permissions required: View IQ Elements' + operationId: getAutoPolicyWaivers + parameters: + - description: Enter the ownerType to specify the scope. The response will contain + waivers that are within the scope specified. + in: path + name: ownerType + required: true + schema: + enum: + - application + - organization + - repository_container + - repository_manager + - repository + - global + pattern: application|organization + type: string + - description: Enter the corresponding id for the ownerType specified above. + in: path + name: ownerId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ApiAutoPolicyWaiverDTO' + type: array + description: The response contains waiver details for the specified ownerType + and the corresponding ownerId, grouped by the autoPolicyWaiverId. + tags: + - Auto Policy Waivers + post: + description: 'Use this method to create an auto policy waiver configuration. + Only one configuration can exist at a time for a given application or organization. + + + Permissions required: Waive Policy Violations' + operationId: addAutoPolicyWaiver + parameters: + - description: Enter the ownerType to specify the scope. The response will contain + the details for waivers within the scope. + in: path + name: ownerType + required: true + schema: + enum: + - application + - organization + - repository_container + - repository_manager + - repository + - global + pattern: application|organization + type: string + - description: Enter the corresponding id for the ownerType specified above. + in: path + name: ownerId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ApiAutoPolicyWaiverDTO' + description: The request JSON can include the fields
  1. threatLevel
  2. pathForward
  3. reachable
  4. durationInDays
+ required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ApiAutoPolicyWaiverDTO' + description: Auto waiver has been created successfully. + tags: + - Auto Policy Waivers + /api/v2/autoPolicyWaivers/{ownerType}/{ownerId}/status: + get: + description: 'Use this method to retrieve status details for any auto policy + waiver enabled for the scope specified. You can specify the scope by using + the parameters ownerType and ownerId. + + + Permissions required: View IQ Elements' + operationId: getAutoPolicyWaiverStatus + parameters: + - description: Enter the ownerType to specify the scope. The response will contain + status details for the active auto policy waiver, if any, that is within + the scope specified. + in: path + name: ownerType + required: true + schema: + enum: + - application + - organization + - repository_container + - repository_manager + - repository + - global + pattern: application|organization + type: string + - description: Enter the corresponding id for the ownerType specified above. + in: path + name: ownerId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ApiAutoPolicyWaiverStatusDTO' + description: The response contains auto policy waiver status details for + the specified ownerType and the corresponding ownerId. + tags: + - Auto Policy Waivers + /api/v2/autoPolicyWaivers/{ownerType}/{ownerId}/{autoPolicyWaiverId}: + delete: + description: 'Use this method to delete an auto policy waiver, specified by + the autoPolicyWaiverId. + + + Permissions required: Waive Policy Violations' + operationId: deleteAutoPolicyWaiver + parameters: + - description: Enter the ownerType to specify the scope. A waiver corresponding + to the autoPolicyWaiverId provided and within the scope specified will be + deleted. + in: path + name: ownerType + required: true + schema: + enum: + - application + - organization + - repository_container + - repository_manager + - repository + - global + pattern: application|organization + type: string + - description: Enter the corresponding id for the ownerType specified above. + in: path + name: ownerId + required: true + schema: + type: string + - description: Enter the autoPolicyWaiverId to be deleted + in: path + name: autoPolicyWaiverId + required: true + schema: + type: string + responses: + '204': + description: Auto Policy Waiver has been deleted successfully. + tags: + - Auto Policy Waivers + get: + description: 'Use this method to retrieve auto policy waiver details for the + autoPolicyWaiverId specified. + + + Permissions required: View IQ Elements' + operationId: getAutoPolicyWaiver + parameters: + - description: Enter the ownerType to specify the scope. The response will contain + the details for waivers within the scope. + in: path + name: ownerType + required: true + schema: + enum: + - application + - organization + - repository_container + - repository_manager + - repository + - global + pattern: application|organization + type: string + - description: Enter the corresponding id for the ownerType specified above. + in: path + name: ownerId + required: true + schema: + type: string + - description: Enter the autoPolicyWaiverId for which you want to retrieve the + auto policy waiver details. + in: path + name: autoPolicyWaiverId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ApiAutoPolicyWaiverDTO' + description: The response contains waiver details corresponding to the auto + policy waiver id specified. + tags: + - Auto Policy Waivers + put: + description: 'Use this method to update an auto policy waiver, specified by + the autoPolicyWaiverId. + + + Permissions required: Write IQ Elements' + operationId: updateAutoPolicyWaiver + parameters: + - description: Enter the ownerType to specify the scope. The response will contain + the details for waivers within the scope. + in: path + name: ownerType + required: true + schema: + enum: + - application + - organization + - repository_container + - repository_manager + - repository + - global + pattern: application|organization + type: string + - description: Enter the corresponding id for the ownerType specified above. + in: path + name: ownerId + required: true + schema: + type: string + - description: Enter the autoPolicyWaiverId to be updated. + in: path + name: autoPolicyWaiverId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ApiAutoPolicyWaiverDTO' + description: The request JSON can include the fields
  1. autoPolicyWaiverId
  2. threatLevel
  3. pathForward
  4. reachable
  5. durationInDays
+ required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ApiAutoPolicyWaiverDTO' + description: Auto Policy Waiver has been updated successfully. + tags: + - Auto Policy Waivers /api/v2/claim/components: get: + description: 'Use this method to retrieve details of all claimed components. + + + Permissions required: Claim components' operationId: getAll responses: - default: + '200': content: application/json: schema: $ref: '#/components/schemas/ApiHashComponentIdentifiersDTO' - description: default response + description: The response contains the truncated SHA1 hash of each component, + the datetime when the component was published (not the time it was claimed), + the format and coordinates of the claimed component (componentIdentifier) + and the package URL of the claimed component. tags: - - Claim + - Claim Components post: + description: 'Use this method to claim a component, or update the component + details for a previously claimed component. + + + Permissions required: Claim components' operationId: set requestBody: content: application/json: schema: $ref: '#/components/schemas/ApiHashComponentIdentifierDTO' + description: Specify the hash (required), comment (optional), createTime (optional), + and the component identifier/package URL (required) with non-null/non-empty + format and coordinates, for the component to be claimed. + required: true responses: - default: + '200': content: application/json: schema: $ref: '#/components/schemas/ApiHashComponentIdentifierDTO' - description: default response + description: The response shows the new/updated details for the claimed + component. tags: - - Claim + - Claim Components /api/v2/claim/components/{hash}: delete: + description: 'Use this method to delete a claim on a previously claimed component + by providing its hash. + + + Permissions required: Claim components' operationId: delete parameters: - - in: path + - description: Enter the SHA1 hash for the component. + in: path name: hash required: true schema: type: string responses: - default: - content: - '*/*': {} - description: default response + '404': + description: Component Claim for this hash does not exist. tags: - - Claim + - Claim Components get: + description: 'Use this method to retrieve details of a claimed component by + specifying its hash. + + + Permissions required: Claim components' operationId: get parameters: - - in: path + - description: The hash of the claimed component. + in: path name: hash required: true schema: type: string responses: - default: + '200': content: application/json: schema: $ref: '#/components/schemas/ApiHashComponentIdentifierDTO' - description: default response + description: The response contains the truncated SHA1 hash of the component, + the datetime when the component was published (not the time it was claimed), + the format and coordinates of the claimed component (componentIdentifier) + and the package URL of the claimed component. + '404': + description: Component Claim for this hash does not exist. tags: - - Claim + - Claim Components /api/v2/components/details: post: description: Use this method to retrieve data related to a component. @@ -4398,9 +4841,17 @@ paths: - Components /api/v2/compositeSourceControl/{ownerType}/{internalOwnerId}: get: + description: 'Use this method to retrieve the composite source control management + (SCM) configuration settings. + + + Permissions required: View IQ Elements' operationId: getCompositeSourceControlByOwner parameters: - - in: path + - description: Select the ownerType of the entity (organization or application) + for which you want to retrieve the composite source control configuration + settings. + in: path name: ownerType required: true schema: @@ -4413,43 +4864,76 @@ paths: - global pattern: application|organization type: string - - in: path + - description: Enter the id of the application or organization for which you + want to retrieve the composite source control configuration settings + in: path name: internalOwnerId required: true schema: type: string responses: - default: + '200': content: application/json: schema: $ref: '#/components/schemas/ApiCompositeSourceControlDTO' - description: default response + description: The response contains values for the SCM configuration. For + each value, the corresponding parent value will be shown, if applicable.