Property | Description |
|---|---|
Endpoint | /api/v2/consumer-accesses |
Method | POST |
Parameter | Description | Additional Information |
|---|---|---|
externalId | Optional. Enter a reference identifier for the consumer access that you want to create. | If you don't specify a reference identifier, Data Marketplace automatically assigns a unique value to the item. The reference identifier that Data Marketplace automatically generates contains a prefix. The administrator can specify the prefix of the automatically generated reference identifier in Metadata Command Center. If you want to specify a reference identifier, ensure that you enter a unique value. Ensure that you don't use the prefix value that is configured in Metadata Command Center. |
status | Optional. Specify a status for the consumer access. Enter one of the following values:
Default value is AVAILABLE. | - |
dataCollectionId | Required. Enter the system-generated unique identifier of the data collection to which the Data User was granted access. | For more information about how you can use an API to get the system-generated unique identifier of a data collection, see Retrieve all data collections. To get the system-generated unique identifier of a data collection from the Data Marketplace user interface, open the data collection. The data collection page's URL contains the unique identifier. For example, in the URL https://{{CDMP_URL}}/datacollection/25158afc-3dfb-44ef-8f3e-cec1e171d0f1?dtn=&tab=summary, the unique identifier is 25158afc-3dfb-44ef-8f3e-cec1e171d0f1. |
deliveryTargetId | Required. Enter the system-generated unique identifier of the delivery target that was used to deliver the data. | For more information about how you can use an API to get the system-generated unique identifier of a delivery target, see Retrieve all delivery targets. |
accessGrantedOn | Optional. Enter the date on which the Data User was granted access to the data collection. | To specify a date, use the YYYY-MM-DD format. The value that you specify is automatically converted and stored in the Coordinated Universal Time (UTC) time standard. |
consumerUserId | Required. Enter the system-generated unique identifier of the user account that was granted access to the data collection. | To get the system-generated unique identifier of a user account, navigate to My Services > Administrator > Users. On the Users page, click a user account. The user account page's URL contains the unique identifier. For example, in the URL /cloudUI/products/administer/main/usersAsset/0LH3xBJC9A6haZ26htGZyT, the unique identifier is 0LH3xBJC9A6haZ26htGZyT. |
usageContextId | Optional. Enter the system-generated unique identifier of the usage type used to specify the context in which the data is to be used as provided by the Data User that was granted access to the collection. | For more information about how you can use an API to get the system-generated unique identifier of a usage type, see Retrieve usage type. |
costCenter | Optional. Enter the cost center of the Data User that was granted access to the data collection. | - |
customAttributes | Specify the custom attribute values for the consumer access. | Whether you must enter a value or not enter a value in a custom attribute is determined by how the custom attribute was defined by your administrator in Metadata Command Center. Custom attributes are additional properties for Data Marketplace items that are defined by your administrator in Metadata Command Center. For more information about custom attributes, see the Create custom attributes for items topic in the Set Up Data Marketplace help. |
customAttributes > value | Enter a value in the custom attribute. | - |
customFields > id | Enter the system-generated unique identifier of the custom attribute. | For more information about how you can retrieve the system-generated unique identifier of a custom attribute, see Retrieve custom attributes. |
Parameter | Description |
|---|---|
id | System-generated unique identifier of the consumer access. |
externalId | Reference identifier of the consumer access. |
costCenter | Cost center of the Data User that was granted access to the data collection. |
status | Status of the consumer access. A consumer access can have the following statuses:
|
accessGrantedOn | Date on which the Data User was granted access to the data collection. |
consumer | Details about the Data User that was granted access to the data collection. |
assetGroups | Details of the asset group that is assigned to the category that contains the data collection that is associated with the consumer access. |
assetGroups > id | System-generated identifier of the asset group. |
assetGroups > name | Name of the asset group. |
assetGroups > isInherited | Indicates whether the asset group is directly assigned to the category or if the asset group is inherited from the category hierarchy. This parameter can have one of the following values:
|
Property | Description |
|---|---|
Endpoint | /api/v2/consumer-accesses/<consumerAccessId> <consumerAccessId>: Required. Enter the system-generated identifier of the consumer access for which you want to retrieve the details. For more information about how you can use an API to get the system-generated unique identifier of a consumer access, see Retrieve all consumer accesses. To get the system-generated unique identifier of a consumer access from the Data Marketplace user interface, open the consumer access. The consumer access page's URL contains the unique identifier. For example, in the URL https://{{CDMP_URL}}/access/e254491f-5795-49bd-be0b-385eb11d9d5a?dtn=Access~2e85, the unique identifier is e254491f-5795-49bd-be0b-385eb11d9d5a. |
Method | GET |
Parameter | Description | Additional Information |
|---|---|---|
segments | Optional. Specify the type of details that you want the API request to return. Enter one or more of the following values:
| By default, the parameter is assigned no value and the API response includes only the basic information about the consumer access such as status, cost center and so on. |
Parameter | Description |
|---|---|
id | System-generated unique identifier of the consumer access. |
externalId | Reference identifier of the consumer access. |
costCenter | Cost center of the Data User that was granted access to the data collection. |
status | Status of the consumer access. A consumer access can have the following statuses:
|
accessGrantedOn | Date on which the Data User was granted access to the data collection. |
consumer | Details about the Data User that was granted access to the data collection. |
assetGroups | Details of the asset group that is assigned to the category that contains the data collection that is associated with consumer access. |
assetGroups > id | System-generated identifier of the asset group. |
assetGroups > name | Name of the asset group. |
assetGroups > isInherited | Indicates whether the asset group is directly assigned to the category or if the asset group is inherited from the category hierarchy. This parameter can have one of the following values:
|
Property | Description |
|---|---|
Endpoint | /api/v2/consumer-accesses |
Method | GET |
Parameter | Description | Additional Information |
|---|---|---|
offset | Optional. Specify the starting index for the paginated results. | Default value is 0. |
limit | Optional. Specify the maximum number of results that are displayed on a page. | Default value is 20. Maximum value is 200. |
segments | Optional. Specify the type of details that you want the API request to return. Enter one or more of the following values:
| By default, the parameter is assigned no value and the API response includes only the basic information about the consumer access such as status, cost center and so on. |
sortBy | Optional. Specify the parameters to sort the search results. Enter one of the following values:
| Default value is modifiedOn. |
sortOrder | Optional. Set the sorting order of the search results. Enter one of the following values:
| Default value is desc. |
status | Optional. Specify the status of the consumer access. Enter one of the following values:
| - |
Parameter | Description |
|---|---|
pageInfo > offset | Starting index of the paginated results. |
pageInfo > limit | The maximum number of results that are displayed on a page. |
pageInfo > totalCount | Number of consumer accesses retrieved. |
links > self > href | The API that was invoked to generate this response. |
links > first > href | The API endpoint that you can use to retrieve the search results that are displayed on the first page. |
links > next > href | The API endpoint that you can use to retrieve the search results from the page following the one you currently have open. |
links > previous > href | The API endpoint that you can use to retrieve the search results from the page prior to the one you currently have open. |
links > last > href | The API endpoint that you can use to retrieve the search results that are displayed on the last page. |
id | System-generated unique identifier of the consumer access. |
externalId | Reference identifier of the consumer access. |
costCenter | Cost center of the Data User that was granted access to the data collection. |
status | Status of the consumer access. A consumer access can have the following statuses:
|
accessGrantedOn | Date on which the Data User was granted access to the data collection. |
consumer | Details about the Data User that was granted access to the data collection. |
assetGroups | Details of the asset group that is assigned to the category that contains the data collection that is associated with consumer access. |
assetGroups > id | System-generated identifier of the asset group. |
assetGroups > name | Name of the asset group. |
assetGroups > isInherited | Indicates whether the asset group is directly assigned to the category or if the asset group is inherited from the category hierarchy. This parameter can have one of the following values:
|
Property | Description |
|---|---|
Endpoint | /api/v2/consumer-accesses/<consumerAccessId> <consumerAccessId>: Required. Enter the system-generated identifier of the consumer access whose custom attributes you want to modify. For more information about how you can use an API to get the system-generated unique identifier of a consumer access, see Retrieve all consumer accesses. To get the system-generated unique identifier of a consumer access from the Data Marketplace user interface, open the consumer access. The consumer access page's URL contains the unique identifier. For example, in the URL https://{{CDMP_URL}}/access/e254491f-5795-49bd-be0b-385eb11d9d5a?dtn=Access~2e85, the unique identifier is e254491f-5795-49bd-be0b-385eb11d9d5a. |
Method | PATCH |
Parameter | Description | Additional Information |
|---|---|---|
customAttributes | Modify the custom attributes of the consumer access. | Whether you must enter a value in a custom attribute or not is determined by how the custom attribute was defined by your administrator in Metadata Command Center. Custom attributes are additional properties for Data Marketplace items that are defined by your administrator in Metadata Command Center. For more information about custom attributes, see the Create custom attributes for items topic in the Set Up Data Marketplace help. |
customAttributes > value | Enter the updated value for the custom attribute. | - |
customFields > id | Enter the system-generated unique identifier of the custom attribute that you want to modify. | For more information about how you can retrieve the system-generated unique identifier of a custom attribute, see Retrieve custom attributes. |
Property | Description |
|---|---|
Endpoint | /api/v2/consumer-accesses/<consumerAccessId>/request-withdrawal <consumerAccessId>: Required. Enter the system-generated identifier of the consumer access for which you want to request a withdrawal. For more information about how you can use an API to get the system-generated unique identifier of a consumer access, see Retrieve all consumer accesses. To get the system-generated unique identifier of a consumer access from the Data Marketplace user interface, open the consumer access. The consumer access page's URL contains the unique identifier. For example, in the URL https://{{CDMP_URL}}/access/e254491f-5795-49bd-be0b-385eb11d9d5a?dtn=Access~2e85, the unique identifier is e254491f-5795-49bd-be0b-385eb11d9d5a. Ensure that the consumer access that you specify is in the AVAILABLE state. |
Method | PATCH |
Parameter | Description |
|---|---|
comment | Optional. Enter a comment about the action taken. |
Property | Description |
|---|---|
Endpoint | /api/v2/consumer-accesses/<consumerAccessId>/withdraw <consumerAccessId>: Required. Enter the system-generated identifier of the consumer access that you want to withdraw. For more information about how you can use an API to get the system-generated unique identifier of a consumer access, see Retrieve all consumer accesses. To get the system-generated unique identifier of a consumer access from the Data Marketplace user interface, open the consumer access. The consumer access page's URL contains the unique identifier. For example, in the URL https://{{CDMP_URL}}/access/e254491f-5795-49bd-be0b-385eb11d9d5a?dtn=Access~2e85, the unique identifier is e254491f-5795-49bd-be0b-385eb11d9d5a. Ensure that the consumer access that you specify is in the AVAILABLE or PENDING_WITHDRAW state. |
Method | PATCH |
Parameter | Description |
|---|---|
comment | Optional. Enter a comment about the action taken. |
Property | Description |
|---|---|
Endpoint | /api/v2/consumer-accesses/<consumerAccessId>/cancel-withdrawal <consumerAccessId>: Required. Enter the system-generated identifier of the consumer access for which you want to cancel the withdrawal request. For more information about how you can use an API to get the system-generated unique identifier of a consumer access, see Retrieve all consumer accesses. To get the system-generated unique identifier of a consumer access from the Data Marketplace user interface, open the consumer access. The consumer access page's URL contains the unique identifier. For example, in the URL https://{{CDMP_URL}}/access/e254491f-5795-49bd-be0b-385eb11d9d5a?dtn=Access~2e85, the unique identifier is e254491f-5795-49bd-be0b-385eb11d9d5a. Ensure that the consumer access that you specify is in the PENDING_WITHDRAW state. |
Method | PATCH |
Parameter | Description |
|---|---|
comment | Optional. Enter a comment about the action taken. |
Property | Description |
|---|---|
Endpoint | /api/v2/consumer-accesses/<consumerAccessId> <consumerAccessId>: Required. Enter the system-generated identifier of the consumer access that you want to delete. For more information about how you can use an API to get the system-generated unique identifier of a consumer access, see Retrieve all consumer accesses. To get the system-generated unique identifier of a consumer access from the Data Marketplace user interface, open the consumer access. The consumer access page's URL contains the unique identifier. For example, in the URL https://{{CDMP_URL}}/access/e254491f-5795-49bd-be0b-385eb11d9d5a?dtn=Access~2e85, the unique identifier is e254491f-5795-49bd-be0b-385eb11d9d5a. |
Method | DELETE |