jfrog_create_permission_target
Define and manage access permissions for resources in the JFrog Platform by creating a new permission target. Specify user and group actions, including READ, WRITE, and MANAGE, for artifacts, builds, and release bundles.
Instructions
Create a new permission target in the JFrog platform
Input Schema
Name | Required | Description | Default |
---|---|---|---|
created_by | No | ||
modified_by | No | ||
name | Yes | ||
resources | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"created_by": {
"type": "string"
},
"modified_by": {
"type": "string"
},
"name": {
"type": "string"
},
"resources": {
"additionalProperties": false,
"properties": {
"artifact": {
"additionalProperties": false,
"properties": {
"actions": {
"additionalProperties": false,
"properties": {
"groups": {
"additionalProperties": {
"items": {
"enum": [
"READ",
"WRITE",
"ANNOTATE",
"DELETE",
"DISTRIBUTE",
"MANAGE"
],
"type": "string"
},
"type": "array"
},
"default": {},
"description": "The actions that the group can perform on the resource",
"type": "object"
},
"users": {
"additionalProperties": {
"items": {
"enum": [
"READ",
"WRITE",
"ANNOTATE",
"DELETE",
"DISTRIBUTE",
"MANAGE"
],
"type": "string"
},
"type": "array"
},
"type": "object"
}
},
"required": [
"users"
],
"type": "object"
},
"targets": {
"additionalProperties": {
"additionalProperties": false,
"properties": {
"exclude_patterns": {
"items": {
"type": "string"
},
"type": "array"
},
"include_patterns": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"include_patterns",
"exclude_patterns"
],
"type": "object"
},
"type": "object"
}
},
"required": [
"actions",
"targets"
],
"type": "object"
},
"build": {
"additionalProperties": false,
"properties": {
"actions": {
"$ref": "#/properties/resources/properties/artifact/properties/actions"
},
"targets": {
"additionalProperties": {
"$ref": "#/properties/resources/properties/artifact/properties/targets/additionalProperties"
},
"type": "object"
}
},
"required": [
"actions",
"targets"
],
"type": "object"
},
"release_bundle": {
"additionalProperties": false,
"properties": {
"actions": {
"$ref": "#/properties/resources/properties/artifact/properties/actions"
},
"targets": {
"additionalProperties": {
"$ref": "#/properties/resources/properties/artifact/properties/targets/additionalProperties"
},
"type": "object"
}
},
"required": [
"actions",
"targets"
],
"type": "object"
}
},
"type": "object"
}
},
"required": [
"name",
"resources"
],
"type": "object"
}