You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/reference/cli/rad_resource-type_create.md
+16-17Lines changed: 16 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,36 +12,35 @@ Create or update a resource type
12
12
13
13
### Synopsis
14
14
15
-
Create or update a resource type from a resource type manifest.
16
-
17
-
Resource types are user defined types such as 'Mycompany.Messaging/plaid'.
18
-
19
-
Creating a resource type defines a new type that can be used in applications.
20
-
21
-
Input can be passed in using a JSON or YAML file using the --from-file option.
22
-
23
-
resource-type name argument is optional. If specified, only the specified type is created/updated.
24
-
If not specified, all resource types in the referenced file are created/updated.
25
-
15
+
Create or update a resource type from a resource type definition file.
16
+
17
+
Resource types define the resources that Radius can deploy and the API for those resources. They are defined by a name, one or more API versions, and an OpenAPI schema.
18
+
19
+
Input can be passed in using a JSON or YAML file using the --from-file option.
20
+
21
+
The resource type name argument is optional. If specified, only the specified type is created/updated. If not specified, all resource types in the referenced file are created/updated.
22
+
23
+
The resource type name argument is the simple name (e.g., 'testResources') not the fully qualified name.
24
+
26
25
27
26
```
28
-
rad resource-type create [input] [flags]
27
+
rad resource-type create [resource-type-name] [flags]
29
28
```
30
29
31
30
### Examples
32
31
33
32
```
34
33
35
-
# Create a resource type from YAML file
34
+
# Create a specific resource type from a YAML file
36
35
rad resource-type create myType --from-file /path/to/input.yaml
37
36
38
-
# Create a resource type from JSON file
37
+
# Create a specific resource type from a JSON file
39
38
rad resource-type create myType --from-file /path/to/input.json
40
39
41
-
# Create all resource types from YAML file
42
-
rad resource-type create --from-file /path/to/input.yaml
40
+
# Create all resource types from a YAML file
41
+
rad resource-type create --from-file /path/to/input.yaml
43
42
44
-
# Create all resource types from JSON file
43
+
# Create all resource types from a JSON file
45
44
rad resource-type create --from-file /path/to/input.json
Copy file name to clipboardExpand all lines: docs/content/reference/cli/rad_resource-type_delete.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,26 +8,27 @@ description: "Details on the rad resource-type delete Radius CLI command"
8
8
---
9
9
## rad resource-type delete
10
10
11
-
Delete resource type
11
+
Delete a resource type
12
12
13
13
### Synopsis
14
14
15
-
Delete resource type
16
-
17
-
Resource types are the entities that implement resource types such as 'Applications.Core/containers'. Each resource type can define multiple API versions, and each API version defines a schema that resource instances conform to. Resource providers can be created and deleted by users.
15
+
Delete a resource type
16
+
17
+
Deleting a resource type will delete the specified resource type. For example, deleting 'Applications.Core/containers' will delete that type (but not deployed instances of the type).
18
+
19
+
The resource type name argument must be a fully qualified resource type name in the format 'ResourceType.Namespace/resourceTypeName' (e.g., 'Radius.Compute/containers').
18
20
19
-
Deleting a resource type will delete all resources of the specified resource type. For example, deleting 'Applications.Core/containers' will delete all containers.
20
21
21
22
```
22
-
rad resource-type delete [resourcetype] [flags]
23
+
rad resource-type delete [resource-type-name] [flags]
23
24
```
24
25
25
26
### Examples
26
27
27
28
```
28
29
29
-
# Delete a resource type
30
-
rad resource-type delete Applications.Core/containers
30
+
# Delete a resource type (fully qualified name required)
31
+
rad resource-type delete Radius.Compute/containers
31
32
32
33
# Delete a resource type (bypass confirmation)
33
34
rad resource-type delete Applications.Core/containers --yes
0 commit comments