blueprints/{blueprint-id}/usage
Use this resource to retrieve information about where a specific blueprint is used.
Method summary
| HTTP Method | Path | Description |
|---|---|---|
| GET | /bwl/blueprints/{blueprint-id}/usage | Returns information about where a specific blueprint is used. You must have access to this blueprint. |
GET /blueprints/{blueprint-id}/usage
- Description
- Use this method to return the details of where a specific blueprint is used.
- Resource information
-
Requirements Description Response format JSON Requires authentication Yes Supports OAuth 2 client credentials Yes using a User Service ID containing Artifact Reporting Category
- Parameters
-
Name Location Description Required Type X-IBM-API-Version Header The version of this API. If you are programming against the API, you MUST include the version. If omitted, the latest version of the API is used, which might be incompatible with prior versions. The current value is
1.0.0.No String X-On-Behalf-Of Header The user context. The value must be a username in the account. The user must have permission to perform the action in the account and in the specified parent space, if any. Required if Service ID OAuth credentials are used. Not required when using User Service ID OAuth credential. String blueprint-id Path The identifier of the blueprint to retrieve. Yes String
- Response
-
- Example input
-
GET the details of where a specific blueprint is used:
- Using OAuth 2 client
credentials:
curl -i -H "Authorization: Bearer access_token" "https://your_server_url/bwl/blueprints/250012/usage"
- Using OAuth 2 client
credentials:
- Example output
-
GET the details of where a specific blueprint is used:
{ "target-artifact-name": "MyBlueprint", "target-artifact-id": "250012", "usage-count": 1, "used-by-artifacts": [ { "id": "250036", "name": "AnotherBlueprint", "type": "blueprint", "space-ids": [ "250006" ], "space-names": [ "MySpace" ], "archived-state": "active", "published-state": "unpublished", "last-modified-date": "2017-02-03T22:41:41.384+0000", "last-modified-by-user": { "id": "50029", "full-name": "Edith Editor", "email-address": "edith" }, "created-date": "2017-02-01T22:41:41.260+0000", "created-by-user": { "id": "50029", "full-name": "Edith Editor", "email-address": "edith" }, "blueprint-items": [ { "type": "activity", "id": "25003e", "name": "Linked to MyBlueprint" } ] } ] }
- Response messages
-
HTTP code Reason 200 The request was completed successfully.
400 There is an error processing the request. Required parameters were missing or contained invalid values.
401 This user didn't pass authentication. This response could appear for the following reasons:- An invalid username or password was provided.
- This user belongs to multiple accounts and an account wasn't specified in the request.
403 Access is forbidden because you have insufficient permissions for the specified blueprint.
404 The blueprint-id parameter identifies a blueprint that does not exist in this account.
For more information, see OpenAPI specification.